{
"body": {
"key": {
"eldest_kid": "01011cfcdfa7fa75b1eb3d2975496712b8a5eed771265410c9ad1564ae7c4bf42ae30a",
"host": "keybase.io",
"kid": "0120a17480b5939cede66f957b5555f1a71ea44f6c516b2275b82ea4573132a7c2a10a",
"uid": "4fed4a5cb3b3651c24b2417a58eed919",
"username": "tr0n"
},
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#disable xdebug on vagrant | |
sudo php5dismod xdebug | |
#enable xdebug on vagrant | |
sudo php5enmod xdebug | |
# restart apache | |
sudo service apache2 restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f /swapfile ]; then | |
echo "The Swap file already exists." | |
else | |
sudo fallocate -l 4G /swapfile | |
sudo chmod 600 /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab' | |
sudo sh -c 'echo "vm.swappiness = 10" >> /etc/sysctl.conf' # 60 for desktops, closer to 0 for VPS (10?) | |
sudo sh -c 'echo "vm.vfs_cache_pressure = 50" >> /etc/sysctl.conf' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################ | |
# DELETE ALL BRANCHES THAT ALREADY ARE MERGED INTO MASTER (except develop) # | |
############################################################################ | |
# @source: http://stackoverflow.com/a/18143078/1126075 | |
# 1. checkout | |
git checkout master | |
# 2. echo all remote branches merged into origin/master except origin/master and origin/develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.vcard input').each(function (i) { | |
if(i < 99) { | |
$(this).trigger('click'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Changes the opacity of the element with fade | |
* -------------------------------------------- | |
* var mode : is string and can be 'in' or 'out' | |
* var time : the time of the fade in milliseconds | |
* var elementId : the id of the element | |
* var finalOpacity : de opacity we want at the end of the process, because sometimes we don't want full transparency or opacity | |
*/ | |
function fade (mode, elementId, time, finalOpacity) { | |
/* trick for setting a default value, just in case we don't set any value on the function call */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
var elements = document.getElementsByTagName('link'); | |
var feeds = []; | |
for (var i = 0; i < elements.length; ++i) { | |
if (elements[i].type == 'application/rss+xml' || elements[i].type == 'application/atom+xml') { | |
var aux = []; | |
aux['href'] = 'http://www.feedly.com/home#subscription/feed/' + elements[i].href; | |
aux['title'] = elements[i].title == '' ? 'Feed' : elements[i].title; |
NewerOlder