start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
#!/bin/bash | |
# If you're reading this on the GitHub gist, scroll down for instructions. | |
# If not, go to https://gist.github.com/1071034 | |
icon_url="http://shaun.boyblack.co.za/blog/wp-content/uploads/2009/05/maceclipse4.zip" | |
eclipse_bin="#!/bin/sh | |
export ECLIPSE_HOME='/opt/eclipse' | |
\$ECLIPSE_HOME/eclipse \$*" |
// Only count bytes inserted as values, not counting keys... | |
(function() { | |
localStorage.clear(); | |
var nbBytes = 5000, // about 0.5Mb | |
oneByte = 'x', | |
i = 0, | |
totalBytesInserted = 0; | |
function repeat(string, length) { |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
# put this in your .bash_profile | |
if [ $ITERM_SESSION_ID ]; then | |
export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND"; | |
fi | |
# Piece-by-Piece Explanation: | |
# the if condition makes sure we only screw with $PROMPT_COMMAND if we're in an iTerm environment | |
# iTerm happens to give each session a unique $ITERM_SESSION_ID we can use, $ITERM_PROFILE is an option too | |
# the $PROMPT_COMMAND environment variable is executed every time a command is run | |
# see: ss64.com/bash/syntax-prompt.html |
tell application "iTerm" | |
if the transparency of the current session of the current terminal > 0 then | |
set the transparency of the current session of the current terminal to 0 | |
else | |
set the transparency of the current session of the current terminal to 0.2 | |
end if | |
end tell |
/** | |
* IE 5.5+, Firefox, Opera, Chrome, Safari XHR object | |
* | |
* @param string url | |
* @param object callback | |
* @param mixed data | |
* @param null x | |
*/ | |
function ajax(url, callback, data, x) { | |
try { |
# http://boxstarter.org/package/url? | |
##################### | |
# BEGIN CONFIGURATION | |
##################### | |
#region Initial Windows Config | |
Install-WindowsUpdate -AcceptEula | |
Update-ExecutionPolicy Unrestricted |
https://github.com/rogerwang/node-webkit | |
https://github.com/atom/atom-shell | |
https://github.com/adobe/brackets-shell/ | |
http://documentup.com/arturadib/node-qt | |
http://deskshell.org/demo-docs/tutorials/start.htm | |
http://www.sencha.com/blog/using-native-apis-in-sencha-desktop-packager | |
http://blogs.telerik.com/kendoui/posts/12-12-04/desktop_apps_the_final_frontier_for_html5 | |
http://www.tidesdk.org/ | |
http://www.awesomium.com/ | |
https://developers.pokki.com/ |