This is now an actual repo:
### | |
# @file CakePHP cake console bash completion script | |
# @author nojimage | |
# @original tclineks http://bin.cakephp.org/saved/21917 | |
# @license mit | |
_cake() | |
{ | |
local cur prev opts base | |
COMPREPLY=() |
# From http://navaneethkn.wordpress.com/2010/12/19/simple-egg-timer-on-linux-for-pomodoro-technique/ | |
#!/bin/bash | |
counter=0 | |
limit=$1 | |
summary=$2 | |
startmessage=$3 | |
endmessage=$4 | |
notify-send -u critical -i appointment -t 600 "$summary" "$startmessage" | |
echo | |
while [ $counter != $limit ]; do |
I have always struggled with getting all the various share buttons from Facebook, Twitter, Google Plus, Pinterest, etc to align correctly and to not look like a tacky explosion of buttons. Seeing a number of sites rolling their own share buttons with counts, for example The Next Web I decided to look into the various APIs on how to simply return the share count.
If you want to roll up all of these into a single jQuery plugin check out Sharrre
Many of these API calls and methods are undocumented, so anticipate that they will change in the future. Also, if you are planning on rolling these out across a site I would recommend creating a simple endpoint that periodically caches results from all of the APIs so that you are not overloading the services will requests.
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
Are you dashing? Are you hot? Then you need the Dashing Hotness Widget!
See the blog post for more details.
This widget is similar to the basic Number widget, except that the entire widget changes colour based on the value displayed. It is designed to draw attention to
2015-01-29 Unofficial Relay FAQ
Compilation of questions and answers about Relay from React.js Conf.
Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.
Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).
#!/bin/sh | |
sudo mount -o remount,exec /tmp | |
if [ -x /usr/local/nixstrap/proot-x86_64 ] && [ -h ~/.nix-profile ]; then | |
echo "Launching shell with nix-* tools!" | |
exec /usr/local/nixstrap/proot-x86_64 -b /usr/local/nixstrap/nix-1.8-x86_64-linux:/nix bash --init-file ~/.nix-profile/etc/profile.d/nix.sh | |
fi | |
set -e |