This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list_all_branches() { | |
for k in `git branch -a | perl -pe 's/^..(.*?)( ->.*)?$/\1/'`; do echo -e `git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k -- | head -n 1`\\t$k; done | sort -r | |
} | |
git_purge() { | |
# have any arguments been passed? | |
if [ $# -gt 0 ];then | |
BRANCH=$1 | |
echo $BRANCH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://stevenharman.net/git-clean-delete-already-merged-branches | |
git_purge() { | |
# have any arguments been passed? | |
if [ $# -gt 0 ];then | |
BRANCH=$1 | |
echo $BRANCH | |
git checkout $BRANCH | |
git branch --merged $BRANCH | grep -v "\* $BRANCH" | xargs -n 1 git branch -d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put this in your .bashrc file (or wherever you register aliases) | |
# Modify the path to point to your local dockerfile; you must use an absolute path | |
# The name of the function can be changed to suit your local setup | |
eoa_ops() { | |
cd /home/ryan/Workbench/firebrand/eoa | |
./ops.sh ${*:-ps} | |
cd $OLDPWD | |
} | |
alias eoa=eoa_ops |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /home partition | |
# https://help.ubuntu.com/community/Partitioning/Home/Moving | |
# Basics | |
sudo apt update | |
sudo apt install curl vim git libpng-dev | |
sudo apt remove apache2 | |
# Remove snapd | |
# https://askubuntu.com/questions/1035915/how-to-remove-snap-store-from-ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /home/forge/www.example.com | |
# Fetch the latest version of the code | |
git pull origin deploy | |
# Ensure we have access to mix | |
if ! [ -x "$(command -v mix)" ]; then | |
echo 'Error: Elixir is not installed.' >&2 | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Flight extends Model | |
{ | |
/** | |
* The table associated with the model. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
foreach($this->parser->getRecords() as $ref => $record) { | |
echo "'{$ref}' => [\n"; | |
foreach($record as $key => $value) { | |
if (is_float($value)) { | |
echo " '{$key}' => {$value},\n"; | |
} else { | |
echo " '{$key}' => '{$value}',\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Day8 do | |
@input "22022222022220021222222102222222222222222202012220222121222012222212222122222222222222222222202222222221222220222222222212220222222222221222200222222222222222222222022222222122222222222222222212002220222021222222222202222222222222222222222222212222222222222222222222222202221222222222220222202222222222012222022222021222222202222222222222222212012221222221222202222202222222222222222222222222212222222222222221222222222202222222222222222222200222222222112222122220220222222022222222222222222202212221222122222202222202222122222222222222222222212222222222222220222222222212222222222222220222202222222222222222122221020222222202222222222222222222212222222121222202222222222122222222222222222222212222222220222220222222222202222222222222221222211222222222212222122221020222222212222222222222222210122222222220222012222202222222222222220222222222202222222221222220222222222222220222222222222222222222222222012222122221020222222122222222022222222211012220222020222202222222222122222222221222222222202 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Via http://christoph-rumpel.com/2014/02/how-to-laravel-series-lets-talk-gulp/ | |
$ node -v | |
v0.10.28 | |
$ npm -v | |
1.4.24 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'aws-sdk', '3.0.1' | |
gem 'irb', '1.0.0' | |
gem 'rake', '12.3.1' | |
gem 'tilt', '2.0.8' |
NewerOlder