Skip to content

Instantly share code, notes, and snippets.

View sirLisko's full-sized avatar
👹

Luca Lischetti sirLisko

👹
View GitHub Profile
### Keybase proof
I hereby claim:
* I am sirlisko on github.
* I am sirlisko (https://keybase.io/sirlisko) on keybase.
* I have a public key ASC_lzwml6Q5_fvMZvFLTM3piZ0ueli5LvyfkNhtyyJINQo
To claim this, I am signing this object:
[ ] asakusa a mornington crescent
echo "Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs)"
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
echo "Enable subpixel font rendering on non-Apple LCDs"
defaults write NSGlobalDomain AppleFontSmoothing -int 2
echo "Enable the 2D Dock"
defaults write com.apple.dock no-glass -bool true
echo "Make Dock icons of hidden applications translucent"
@sirLisko
sirLisko / gist:5138911
Created March 11, 2013 23:31
How to enable access for specific folder and subdomain in webfaction
#!/bin/bash
wrong_input () {
echo "Usage: sh access.sh secondary_username application [-ln]"
echo " -ln: creates an application's symbolic link in the secondary_username home folder."
exit 1;
}
if [ $# -lt 2 ]; then
wrong_input
@sirLisko
sirLisko / .bash_profile
Last active October 4, 2015 23:58
terminal settings
alias sbl='open -a "Sublime Text"'
alias jsc='/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc'
PATH=/opt/local/bin:$PATH
PATH=/opt/local/sbin:$PATH
export PATH
export HISTCONTROL=erasedups
export HISTSIZE=10000
PS1="\W: $ "
@sirLisko
sirLisko / extend.js
Created May 10, 2012 13:13
Extend - JavaScript function to extend Objects
var extend = function (obj, extObj) {
if (arguments.length > 2) {
for (var a = 1; a < arguments.length; a++) {
this.extend(obj, arguments[a]);
}
} else {
for (var i in extObj) {
obj[i] = extObj[i];
}
}