As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/sh -e | |
| # | |
| # Usage: browser | |
| # pipe html to a browser | |
| # e.g. | |
| # $ echo '<h1>hi mom!</h1>' | browser | |
| # $ ron -5 man/rip.5.ron | browser | |
| if [ -t 0 ]; then | |
| if [ -n "$1" ]; then |
| /* | |
| As of version 1.1.2, Propane will load and execute the contents of | |
| ~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
| immediately following the execution of its own enhancer.js file. | |
| You can use this mechanism to add your own customizations to Campfire | |
| in Propane. | |
| Below you'll find two customization examples. |
| #! /bin/sh | |
| # Usage: ./prowl.sh priority(-2 to 2) app event description | |
| # Example: ./prowl.sh 0 "transmission" "torrent has finished" "Coen Brothers Compilation has finised downloading" | |
| priority=$1 | |
| app=$2 | |
| event=$3 | |
| description=$4 | |
| apikey=fill_in_your_API_key_here | |
| if [ $# -ne 4 ]; then |
| // peano.js - Javascript Peano Arithmetic from thin air | |
| // Developer: Dionysis "dionyziz" Zindros <[email protected]> | |
| // | |
| // This is an illustration of how it is possible to construct the system of arithmetic | |
| // on non-negative integers in Javascript without requiring any underlying arithmetic code by the host language. | |
| // The system is based purely on the underlying logic of the language; that is, "if", "and", "or", | |
| // "not" and the equals operator "==", as well as the logical constants true and false; | |
| // those logical constants, incidentally, can be obtained by issuing "null == null" and "!( null == null)" | |
| // respectively, so they are not required to be defined. Indeed, observe the following alternative: | |
| // |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/bin/bash | |
| logo="$(tput setaf 2) | |
| .~~. .~~. | |
| '. \ ' ' / .'$(tput setaf 1) | |
| .~ .~~~..~. $(tput sgr0) _ _ $(tput setaf 1) | |
| : .~.'~'.~. : $(tput sgr0) ___ ___ ___ ___| |_ ___ ___ ___ _ _ ___|_|$(tput setaf 1) | |
| ~ ( ) ( ) ~ $(tput sgr0) | _| .'|_ -| . | . | -_| _| _| | | | . | |$(tput setaf 1) | |
| ( : '~'.~.'~' : ) $(tput sgr0) |_| |__,|___| _|___|___|_| |_| |_ | | _|_|$(tput setaf 1) | |
| ~ .~ ( ) ~. ~ $(tput sgr0) |_| |___| |_| $(tput setaf 1) |
All target selectors start with @. The following character is the selector type. For example, @p means 'closest player'.
Target selectors may have additional, optional arguments. You can specify these in [ ], using the syntax a=0. For example, @p[a=0,b=5,c=-500].
There is a special short syntax for just specifying x, y, z and r arguments; simply list their values separated by a comma, without x=. For example: @p[100,64,-100,5] for 5 range, x=100, y=64 and z=-100. Each of these are optional and skippable by leaving them empty. For example, to just specify y coordinate: @p[,64].
x - X coordinate for search center. Default is senders coordinate, or 0.y - Y coordinate for search center. Default is senders coordinate, or 0.| # Oona Räisänen 2013 | |
| # http://windytan.com | |
| # ssh-keygen -l -f ~/.ssh/id_rsa.pub | perl emoji.pl | |
| @emoji = qw( 🌀 🌂 🌅 🌈 🌙 🌞 🌟 🌠 🌰 🌱 🌲 🌳 🌴 🌵 🌷 🌸 | |
| 🌹 🌺 🌻 🌼 🌽 🌾 🌿 🍀 🍁 🍂 🍃 🍄 🍅 🍆 🍇 🍈 | |
| 🍉 🍊 🍋 🍌 🍍 🍎 🍏 🍐 🍑 🍒 🍓 🍔 🍕 🍖 🍗 🍘 | |
| 🍜 🍝 🍞 🍟 🍠 🍡 🍢 🍣 🍤 🍥 🍦 🍧 🍨 🍩 🍪 🍫 | |
| 🍬 🍭 🍮 🍯 🍰 🍱 🍲 🍳 🍴 🍵 🍶 🍷 🍸 🍹 🍺 🍻 |
| package crappyBird; | |
| import java.awt.Graphics; | |
| import java.awt.Rectangle; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import java.awt.image.BufferedImage; | |
| import java.io.IOException; | |
| import java.net.URL; |
This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.
Most the credit for these changes go to Dave Holland.