This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
Sample code on how to parse command line options with Mono.Options. | |
Mono.Options can be downloaded and compiled from: | |
https://github.com/mono/mono/tree/master/mcs/class/Mono.Options/Mono.Options |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
usr = "" | |
pwd = "" | |
driver = webdriver.Firefox() | |
# or you can use Chrome(executable_path="/usr/bin/chromedriver") | |
driver.get("http://www.facebook.org") | |
assert "Facebook" in driver.title |
Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.
Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!
#!/bin/bash | |
echo "" | |
echo "`date`: RUNNING: brew update" | |
/usr/local/bin/brew update | |
echo "`date`: FINISHED: brew update" | |
echo "" |
sudo openvpn --config *.opvn | |
apt-get update | |
apt-get install vim | |
wget http://d3kbcqa49mib13.cloudfront.net/spark-1.3.0-bin-hadoop2.4.tgz | tar zxf | |
hadoop fs -mkdir /spark | |
hadoop fs -put spark-1.3.0-bin-hadoop2.4.tgz /spark | |
hadoop fs -du -h /spark | |
cp spark-env.sh.template spark-env.sh | |
#!/bin/bash | |
# A script to set up a new mac. Uses bash, homebrew, etc. | |
# Focused for ruby/rails development. Includes many utilities and apps: | |
# - homebrew, rvm, node | |
# - quicklook plugins, terminal fonts | |
# - browsers: chrome, firefox | |
# - dev: iterm2, sublime text, postgres, chrome devtools, etc. | |
# - team: slack, dropbox, google drive, skype, etc |
Dockerfile
that is based on your production image and
simply install xdebug
into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |