gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
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
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
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
# Install numix theme | |
sudo add-apt-repository ppa:numix/ppa | |
sudo apt-get update && sudo apt-get install numix-gtk-theme | |
# After install numix, maybe using tweak ubuntu to change it, http://ubuntu-tweak.com/ | |
# Remove windows's titlebar | |
# Ref: http://askubuntu.com/questions/289940/remove-title-bar-of-all-maximized-gnome-3-8-windows | |
sudo vi /usr/share/themes/Numix/metacity-1/metacity-theme-3.xml | |
# Change frame_geometry name="max" to frame_geometry name="max" has_title="false" |
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
#!/usr/bin/env bash | |
# Wayback machine downloader | |
#TODO: Remove redundancy (download only newest files in given time period - not all of them and then write over them) | |
############################ | |
clear | |
#Enter domain without http:// and www. | |
domain="google.com" | |
#Set matchType to "prefix" if you have multiple subdomains, or "exact" if you want only one page | |
matchType="domain" |
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
#!/usr/bin/env bash | |
# Wayback machine downloader | |
#TODO: Remove redundancy (download only newest files in given time period - not all of them and then write over them) | |
############################ | |
clear | |
#Enter domain without http:// and www. | |
domain="google.com" | |
#Set matchType to "prefix" if you have multiple subdomains, or "exact" if you want only one page | |
matchType="domain" |
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
# Check http version or apache2 version | |
httpd -v # apache2 -v | |
# Building mod_proxy_wstunnel.so for httpd 2.2.x | |
# Check apache version (should be 2.2.20 as of writing, if not adjust the next step) | |
dpkg -s apache2 | |
# Checkout apache source | |
svn checkout http://svn.apache.org/repos/asf/httpd/httpd/tags/2.2.x/ httpd-2.2.x |
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
sudo add-apt-repository ppa:nilarimogard/webupd8 | |
sudo apt-get update | |
sudo apt-get install freshplayerplugin | |
This will install pepper flash(google chrome's flash player) to firefox. |
NewerOlder