As configured in my dotfiles.
start new:
tmux
start new with session name:
void setup() { | |
pinMode(10, OUTPUT); | |
} | |
void loop() { | |
// play e4 | |
delay(600); | |
tone(10, 329.63, 300); |
As configured in my dotfiles.
start new:
tmux
start new with session name:
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.Locale; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.database.AbstractCursor; | |
import android.database.Cursor; | |
import android.support.v4.app.FragmentActivity; | |
import android.text.TextUtils; |
#!/bin/bash | |
MONGO_DATABASE="your_db_name" | |
APP_NAME="your_app_name" | |
MONGO_HOST="127.0.0.1" | |
MONGO_PORT="27017" | |
TIMESTAMP=`date +%F-%H%M` | |
MONGODUMP_PATH="/usr/bin/mongodump" | |
BACKUPS_DIR="/home/username/backups/$APP_NAME" |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
# Create empty orphan branch for code review | |
git checkout --orphan code-review | |
git rm -rf . | |
git ci --allow-empty -m 'Code review - nuke all' | |
git push --set-upstream origin code-review |
$ sudo npm install -g hexo-cli
$ hexo -v
hexo-cli: 0.1.9
node --harmony test |
echo "151.101.84.133 raw.githubusercontent.com" | sudo tee -a /etc/hosts |