Skip to main content

Engelbert Tejeda

Engelbert Tejeda's Public Library

about 4 hours ago

gls*sed substring regex
"How about using egrep?
echo "This is 02G05 a test string 20-Jul-2012" | egrep -o '[0-9]+G[0-9]+'"

about 19 hours ago

gls*site:gist.github.com "^[\w]" "hostname"

about 19 hours ago

gls*site:gist.github.com "import requests" "cookies.txt"
"import cookielib
import requests"

May 25, 16

gls*"how far behind" "git rev-list"
"git for-each-ref --format="%(refname:short) %(upstream:short)" refs/heads | \
while read local remote
do
[ -z "$remote" ] && continue
git rev-list --left-right ${local}...${remote} -- 2>/dev/null >/tmp/git_upstream_status_delta || continue
LEFT_AHEAD=$(grep -c '^<' /tmp/git_upstream_status_delta)
RIGHT_AHEAD=$(grep -c '^>' /tmp/git_upstream_status_delta)
echo "$local (ahead $LEFT_AHEAD) | (behind $RIGHT_AHEAD) $remote"
done"

May 25, 16

kwd:{regex
"match_urls = re.compile(r'\b(([\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^%s\s]|/)))')"

May 25, 16

gls*site:gist.github.com "jira.issue"
"Quick jira integration with python."

May 25, 16

gls*coffeescript regex tester
kwd:{annotated regex
kwd:{annotated regular expression
kwd:{regex
"emailPattern = /// ^ #begin of line
([\w.-]+) #one or more letters, numbers, _ . or -
@ #followed by an @ sign
([\w.-]+) #then one or more letters, numbers, _ . or -
\. #followed by a period
([a-zA-Z.]{2,6}) #followed by 2 to 6 letters or periods
$ ///i #end of line and ignore case

if "john.smith@gmail.com".match emailPattern
console.log "E-mail is valid"
else
console.log "E-mail is invalid""

May 25, 16

gls*"User id required instead of user name in HUBOT_AUTH_ADMIN"
"When using the user name with hubot-auth for the HUBOT_AUTH_ADMIN environment variable (like HUBOT_AUTH_ADMIN=jun the script doesn't correctly recognise me as admin and I need to use the Mongo _id field and then it works..."

May 25, 16

gls*"echo export PATH" "bashrc"
"source /etc/environment && export PATH"

May 25, 16

see:gls*pure nexus 5x
see:http://forum.xda-developers.com/nexus-5x/development/rom-pure-nexus-layers-fi-wifi-calling-t3244601

1 - 20 of 26203 Next › Last »
20 items/page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo