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
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
<? | |
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
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' |
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
{ | |
"key": "ctrl+alt+w", | |
"command": "workbench.action.closeAllEditors" | |
}, | |
{ | |
"key": "ctrl+alt+q", | |
"command": "workbench.files.action.collapseExplorerFolders" | |
}, | |
{ | |
"key": "ctrl+shift+t", |
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 | |
$finder = Symfony\Component\Finder\Finder::create() | |
->exclude('vendor') | |
->exclude('bootstrap') | |
->exclude('storage') | |
->in(__DIR__) | |
->name('*.php') | |
->notName('*.blade.php'); |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
NewerOlder