Skip to content

Instantly share code, notes, and snippets.

@flores
flores / gist:3853688
Created October 8, 2012 17:14
js.la 10/25 copy
Hi. Thanks for your RSVP for our October meetup in Downtown Los Angeles. We're excited to see you.
We'll be meeting at The Hub at 7pm, with talks starting around 7:20pm.
Their address is 830 Traction Ave, Ste. 3A in Los Angeles, 90013.
You can find a map and directions here: http://goo.gl/maps/wQ39t
There is meter parking and several pay lots available on the nearby streets.
#!/bin/bash
for i in scripts/*; do
echo "running $i..."
#readlink -f $i
$i
if test $? -ne 0; then
echo "^[[0;31;40m
@flores
flores / hastebin.sh
Created September 8, 2012 00:39
hastebin shell client
#!/bin/bash
server='hastebin.com';
usage="$0 pastes into $server
usage: $0 something
example: '$0 pie' or 'ps aufx |$0'"
if [ -z $1 ]; then
str=`cat /dev/stdin`;
@flores
flores / ec_<3_vagrant.md
Created August 27, 2012 18:14
ec loves vagrant stickers

Hayes!

Derek!

Seth!

Brian!

Victor!

require "socket"
urls = IO.readlines("waclist")
urls.each do |url|
puts "testing #{url}"
if (url =~ /http:\/\/(.+?)\/(.+)$/)
uri = $2
host = $1
end
@flores
flores / gist:3419610
Created August 21, 2012 21:34 — forked from garann/gist:3353532
Crowdsourced career mentorship for female developers

I was inspired by Selena Deckelmann's list of Career Resources for Women (http://www.chesnok.com/daily/career-resources-for-women/), but couldn't think of much to contribute. So I thought maybe those of us already in the field and in a position to mentor could work on creating more. Please fork or comment and add your own!

Also: there is a wealth of info online and elsewhere dating back to the first time it occurred to our species to exchange labor for currency on these topics in general. What I hope we can provide here is our take as individuals. What we would say to someone if we were sitting across from her acting as a mentor. I don't think we should worry about being objectively "right", or about duplicating topics. I add this bit of anti-editorializing in hopes that women will contribute without feeling pressured to be experts, which I worry might prevent them from doing so. TY. :)

Applying for jobs

@flores
flores / gist:3382823
Created August 17, 2012 21:22
45rpm shopping list | 20120817
James, Etta - All I Could Do Was Cry/Boy Of My Dreams - EX8
Hall, Dora - Hang On Sloopy/I Got You Babe - EX8
Young Rascals - Groovin'/I Ain't Gonna Eat Out My Heart Anymore (re-issue) - EX8
Fred, John & His Playboy Band - Judy In Disguise (With Glasses)/When The Lights Go Out (with original company sleeve) - NM9
Friends Of Distinction - It Don't Matter To Me/Down I Go - EX8
Fun And Games - The Grooviest Girl In The World/It Must Have Been The Wind (bb) - NM9
Jay & The Americans - Come A Little Bit Closer/Goodbye Boys Goodbye - NM9
Jay & The Americans - Sunday And Me/Through This Doorway (with United Artists company sleeve) - NM9
Carnival - Son Of A Preacher Man/Walk On By - NM9
Sinatra, Nancy - These Boots Are Made For Walkin'/Sugar Town - EX8
@flores
flores / gist:3363433
Created August 15, 2012 20:40
js.la 8/30 rsvp
:subject => "You've confirmed one seat for js.la on Thursday, August 30th, at 7pm",
:body => "
Hi. Thanks for your RSVP for our August meetup in Santa Monica. We're excited to see you.
We'll be meeting at Yahoo! at 7pm, with talks starting around 7:20pm.
Their address is 2400 Broadway Street, Santa Monica, CA 90404
You can find a map and directions here: http://goo.gl/maps/889v1
# sh check_master_autoheal.sh fe
killing pid 2358 for the port 8820 listener
sleeping to see if the mama recovers the child
responded on port 8820. pass
killing pid 2357 for the port 8821 listener
sleeping to see if the mama recovers the child
responded on port 8821. pass
# echo $?
0
@flores
flores / kick_monit.sh
Created August 6, 2012 18:33
sometimes autoheals spin out of control...
#!/bin/bash
# sometimes autoheals spin out of control...
# process we're checking
PROCESS=$1
if [ -z $PROCESS ]; then
echo "makes monit try to restart a process every s"
echo "usage $0 <process controlled by monit>"
exit 1