Append .sh to bin scripts
This help distinguish personal scripts from binaries in $PATH
This commit is contained in:
parent
66c6bdc7d8
commit
bf2c16dac3
|
@ -5,8 +5,9 @@
|
|||
|
||||
# Usage: 2png *.{psd,ai}
|
||||
|
||||
[ ! -d _png ] && mkdir -p _png;
|
||||
[[ ! -d _png ]] && mkdir -p _png;
|
||||
|
||||
for f in $1; do
|
||||
for f in $1
|
||||
do
|
||||
convert -resize 1200x1200 ${f}[0] _png/${f}.png
|
||||
done
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Script for encrypting and decrypting folders, using GPG and tar
|
||||
# Usage:
|
|
@ -1,14 +0,0 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
# Converts an html file (or website) to a pdf. It installs
|
||||
# the dependencies if they aren't available.
|
||||
#
|
||||
# Note: MAC ONLY!
|
||||
|
||||
if ! command -v "wkhtmltopdf" &> /dev/null; then
|
||||
# wkhtmltopdf > 0.9.9 has a habit of hanging after it completes, so we
|
||||
# install 0.9.9 explicitly instead.
|
||||
brew install https://raw.github.com/mxcl/homebrew/6e2d550cf4961129a790bfb0973f8e88704f439d/Library/Formula/wkhtmltopdf.rb
|
||||
fi
|
||||
|
||||
wkhtmltopdf "$1" "$2"
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
# Mac-only: run boris REPL with homebrewed PHP
|
||||
|
||||
/usr/local/bin/php /usr/local/bin/boris
|
|
@ -1,18 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Start taking screenshots every N seconds, until this script is
|
||||
# called again.
|
||||
|
||||
if [ ! -f ~/.ss ]; then
|
||||
dir="$1"
|
||||
if [ $# -eq 0 ]; then
|
||||
[ ! -d ~/Desktop/ss ] && mkdir -p ~/Desktop/ss
|
||||
dir=~/Desktop/ss
|
||||
fi
|
||||
echo "$dir" > ~/.ss
|
||||
echo "Timelapse, go!"
|
||||
i=1;while [ -f ~/.ss ];do screencapture -t jpg -x "$dir/$i.jpg"; let i++;sleep 5; done &
|
||||
else
|
||||
echo "Deactivating timelapse! Images in: $(cat ~/.ss)/"
|
||||
rm ~/.ss
|
||||
fi
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
ffmpeg -r 24 -i %d.jpg -b 16000k $1
|
46
bin/update
46
bin/update
|
@ -1,46 +0,0 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
set -e
|
||||
|
||||
indent() { sed 's/^/ /'; }
|
||||
up-to-date() {
|
||||
LOCAL=$(git rev-parse @)
|
||||
REMOTE=$(git rev-parse @{u})
|
||||
[[ "$LOCAL" == "$REMOTE" ]]
|
||||
}
|
||||
|
||||
(( $+commands[brew] )) && {
|
||||
echo "Updating homebrew"
|
||||
{ brew update; brew upgrade --all; brew cleanup } | indent
|
||||
}
|
||||
|
||||
[ -f "$HOME/.emacs.d/Makefile" ] && {
|
||||
echo -n "Updating emacs"
|
||||
cd "$HOME/.emacs.d" && make update | indent
|
||||
}
|
||||
|
||||
[ -d ~/.zsh/zgen ] && {
|
||||
echo "Updating zgen"
|
||||
{
|
||||
source "$HOME/.zgen/zgen.zsh"
|
||||
zgen selfupdate
|
||||
zgen update
|
||||
} 2>&1 | indent
|
||||
}
|
||||
|
||||
local env=(rb py)
|
||||
for i in $env
|
||||
do
|
||||
[ -d "$HOME/.${i}env" ] && {
|
||||
echo "Updating ${i}env"
|
||||
{
|
||||
for plugin in "$HOME"/.${i}env/plugins/*
|
||||
do
|
||||
cd "$plugin"
|
||||
echo "+ `basename ${plugin}`"
|
||||
git pull
|
||||
done
|
||||
} 2>&1 | indent
|
||||
}
|
||||
done
|
||||
|
Loading…
Reference in a new issue