I hereby claim:
- I am olssonm on github.
- I am olssonm (https://keybase.io/olssonm) on keybase.
- I have a public key ASCzC811GvJdvWmN0-mAQKbO6LG3DHz0paOzwnfef4rVfwo
To claim this, I am signing this object:
var allowPaste = function(e){ | |
e.stopImmediatePropagation(); | |
return true; | |
}; | |
document.addEventListener('paste', allowPaste, true); |
"require": { | |
"my/package": "dev-master", | |
}, | |
"repositories": [ | |
{ | |
"type": "path", | |
"url": "../packages/my/package", | |
"options": { | |
"symlink": true | |
} |
# Via https://stackoverflow.com/questions/215718/reset-or-revert-a-specific-file-to-a-specific-revision-using-git | |
git checkout c5f567 -- file1/to/restore file2/to/restore | |
# ~1 denotes commits before hash | |
git checkout c5f567~1 -- file1/to/restore file2/to/restore |
#!/usr/bin/python | |
# 8th November, 2009 | |
# update manager failed, giving me the error: | |
# 'files list file for package 'xxx' is missing final newline' for every package. | |
# some Googling revealed that this problem was due to corrupt files(s) in /var/lib/dpkg/info/ | |
# looping though those files revealed that some did not have a final new line | |
# this script will resolve that problem by appending a newline to all files that are missing it | |
# NOTE: you will need to run this script as root, e.g. sudo python newline_fixer.py |
#Update package lists | |
sudo apt-get update | |
#Fetch language pack | |
sudo apt-get install language-pack-sv | |
#Check available languages, sv_SE.utf8 | |
locale -a | |
#Generate locale |
defaults write com.apple.dock size-immutable -bool true; killall Dock |
# BROWSER CACHE | |
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|htc|ico|png|xml|otf|ttf|eot|woff|woff2|svg|ico)$ { | |
expires 365d; | |
} |
I hereby claim:
To claim this, I am signing this object:
--- | |
ip: "192.168.10.20" | |
version: 0.3.3 | |
memory: 2048 | |
cpus: 1 | |
hostname: homestead56 | |
name: homestead56 | |
provider: virtualbox | |
authorize: ~/.ssh/id_rsa.pub | |
keys: |
function copykey() { | |
pbcopy < ~/.ssh/id_rsa.pub | |
echo "Key copied!" | |
} |