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
#!/usr/bin/env node | |
var fs = require('fs'); | |
var exec = require('child_process').exec; | |
/* | |
* lesswatch usage: | |
* | |
* `lesswatch` to watch the current directory |
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
Verifying my Blockstack ID is secured with the address 1GVKoZ6YR9qjeFGqxKqLmBCaydvtKYbr4h https://explorer.blockstack.org/address/1GVKoZ6YR9qjeFGqxKqLmBCaydvtKYbr4h |
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
#!/bin/bash | |
FILE=$1 | |
if [ -d $FILE ]; then | |
DIR=$FILE | |
else | |
DIR=`dirname $FILE` | |
fi | |
function parse_git_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
<select size="1" name="phone_number_country_code"> | |
<option value="1" selected="">United States and Canada (+ 001)</option> | |
<option value="93">Afghanistan (+ 093)</option> | |
<option value="355">Albania (+ 355)</option> | |
<option value="213">Algeria (+ 213)</option> | |
<option value="684">American Samoa (+ 684)</option> | |
<option value="376">Andorra (+ 376)</option> | |
<option value="244">Angola (+ 244)</option> | |
<option value="1">Anguilla (+ 001)</option> | |
<option value="672">Antarctica (+ 672)</option> |
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
Error: Could not apply complete catalog: Found 1 dependency cycle: | |
(File[/Users/idris/src/our-boxen/script/boxen-git-credential] => File[/opt/boxen/bin/boxen-git-credential] => Repository[/opt/boxen/homebrew] => Class[Homebrew] => Class[Main] => Node[default] => File[/Users/idris/src/our-boxen] => File[/Users/idris/src/our-boxen/script/boxen-git-credential]) | |
Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz |
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
#!/bin/bash | |
function parse_git_branch { | |
local branch=`cd $DIR;git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
if [ "$branch" == "" ]; then | |
exit 1 | |
else | |
echo $branch | |
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
/******************************************************************** | |
* fix-theme-slugs-mongo.js | |
* | |
* To run, replace localhost/db_name with your connection info and | |
* run this command: | |
* | |
* mongo localhost/db_name --quiet fix-layout-slugs-mongo.js | |
* | |
*/ |
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
function parse_git_branch { | |
local branch=`git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
if [ "$branch" == "" ] | |
then | |
echo "" | |
else | |
echo \($branch\)\ | |
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
.*iPhone|iPod|BlackBerry|Android|webOS|Windows CE|IEMobile|Symbian|Opera Mini|Opera Mobi|Nokia|HTC|LG-CU920|SAMSUNG-SGH-A687|SAMSUNG-SGH-A867.* |
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
#!/bin/sh -x | |
# git name-rev is fail | |
CURRENT=`git branch | grep '\*' | awk '{print $2}'` | |
git checkout master | |
git pull origin master | |
git checkout ${CURRENT} | |
git rebase master | |
git checkout master | |
git merge ${CURRENT} | |
git push origin master |
NewerOlder