Add these fun keyboard shortcuts to your system! Works especially well if you're writing @muan a lot (◍•ᴗ•◍)♡
Here's how on OS X:
Press cmd
+ space
and search and open System Preferences, then select Keyboard, then Text ヽ(´∇`)ノ
Note
#!/bin/bash -e | |
NAME=$1 | |
DM_DIR=~/.docker/machine/machines/$NAME | |
if [ "$2" != "" ]; then | |
unzip -qojd add2dm-tmp $2 | |
trap "rm -rf $(pwd)/add2dm-tmp" EXIT | |
pushd add2dm-tmp > /dev/null | |
fi |
# containers | |
cf.containers.create("new_container") | |
cf.containers.create("new_container", metadata: { "you're on your own here bud": "because you wanted all of the power" }) # Should we even offer metadata mutation at create time???? | |
container = cf.containers["my-test-dir"] | |
container.delete | |
# metadata (Hash-like protocol) | |
container.metadata # Return a Hash of the metadata less the X-Container-Meta- prefixes | |
container.metadata["price"] = "4.20" | |
container.metadata.delete("price") |
application:open-your-keymap | |
application:open-your-stylesheet | |
autocomplete:attach | |
autoflow:reflow-paragraph | |
bookmarks:clear-bookmarks | |
bookmarks:jump-to-next-bookmark | |
bookmarks:jump-to-previous-bookmark | |
bookmarks:toggle-bookmark | |
bookmarks:view-all | |
check:correct-misspelling |
#!/bin/sh | |
sudo /sbin/stop valkyribot | |
GIT_WORK_TREE=/var/valkyribot git checkout -f | |
# Perform any necessary migrations | |
git rev-parse --verify HEAD > /var/faceless-games/valkyribot/VERSION | |
cd /var/valkyribot | |
/usr/local/bin/alembic --config=/etc/chromabot/alembic.ini upgrade head | |
# Bump the server | |
sudo /sbin/start valkyribot |
#!/bin/bash | |
subdir=${1%/} | |
if [ ! $subdir ]; then | |
echo "Please specify an argument" | |
exit | |
fi | |
dir="${PWD}/$subdir" |
_complete_ssh_hosts () | |
{ | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
cut -f 1 -d ' ' | \ | |
sed -e s/,.*//g | \ | |
grep -v ^# | \ | |
uniq | \ | |
grep -v "\[" ; |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |