Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
#!/bin/sh | |
# | |
# This hook does two things: | |
# | |
# 1. update the "info" files that allow the list of references to be | |
# queries over dumb transports such as http | |
# | |
# 2. if this repository looks like it is a non-bare repository, and | |
# the checked-out branch is pushed to, then update the working copy. | |
# This makes "push" function somewhat similarly to darcs and bzr. |
(function($){ | |
$.fn.scrollFixed = function(params){ | |
params = $.extend( {appearAfterDiv: 0, hideBeforeDiv: 0}, params); | |
var element = $(this); | |
if(params.appearAfterDiv) | |
var distanceTop = element.offset().top + $(params.appearAfterDiv).outerHeight(true) + element.outerHeight(true); | |
else | |
var distanceTop = element.offset().top; | |
function checkHash(backButton) { | |
if(window.location.hash) { | |
backButton = true; | |
} else { | |
backButton = false; | |
} | |
return backButton; |
#!/bin/bash | |
# This is a draft but it works | |
# FIRST (I don't even know if it works but we'll assume yes) | |
# sudo launchctl list | |
# sudo launchctl disable system/netbiosd | |
# sudo launchctl disable system/parsecd | |
# sudo launchctl disable system/parentalcontrols.check | |
# sudo launchctl disable system/airportd |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Getting zsh to work in ubuntu is weird, since sh
does not understand the source
command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
and then you change your shell to zsh
chsh -s `which zsh`
and then restart
var script, | |
scripts = document.getElementsByTagName('script')[0], | |
scriptList = { | |
'plusone' : '//apis.google.com/js/plusone.js', | |
'twitter' : '//platform.twitter.com/widgets.js', | |
'someother': '//s.widgetsite.com/widget.js' | |
}; | |
for (var id in scriptList) { | |
script = document.createElement('script'); |
//install phpmyadmin | |
sudo apt-get install phpmyadmin | |
//After the installation has completed, add phpmyadmin to the apache configuration. | |
sudo nano /etc/apache2/apache2.conf | |
//add phpmyadmin to config file | |
Include /etc/phpmyadmin/apache.conf |
rsync /var/lib/mysql root@destination.server.com:/var/lib/ -a | |
Or: | |
//Export Database | |
mysqldump -uUsername -p Database > db_backup.sql | |
//Export Multiple databases | |
mysqldump -uUsername -p --databases db_name1 [db_name2 ...] > db_backup.sql |
find /full_path -path '*/.*' -prune -o -type f -print | zip ~/file.zip -@ |