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
brew install gshuf |
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
// style.css | |
#bg-loading-parent{ | |
position: relative; | |
width: 100%; | |
height: 100%; | |
} | |
.bg-loading-container{ | |
display: none; |
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
// 16:9 aspect ratio (9/16 = 56.25%), use 75% for 4:3 | |
// you can also add padding-top to add some extra space | |
.image-wrapper { | |
background-color: #000; | |
width: 100%; | |
padding-bottom: 56.25%; | |
position: relative; | |
} | |
.image-wrapper img { |
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
AddType application/octet-stream .csv | |
AddType application/octet-stream .xls | |
AddType application/octet-stream .doc | |
AddType application/octet-stream .avi | |
AddType application/octet-stream .mpg | |
AddType application/octet-stream .mov | |
AddType application/octet-stream .pdf |
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
# add this export to your bash_profile | |
export LC_ALL="en_US.utf8" |
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 apt-get update | |
sudo apt-get install curl | |
\curl -L https://get.rvm.io | bash -s stable | |
# restart bash | |
rvm requirements | |
rvm install ruby | |
rvm rubygems current | |
gem install rails |
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
# Current ufw status and list of rules | |
ufw status | |
# Starts ufw daemon | |
ufw enable | |
# Add new rule (allow incoming HTTP connections -> port 80) | |
ufw allow http | |
# Remove an existing rule |
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
# https://help.ubuntu.com/10.04/serverguide/user-management.html | |
# adding a user without assistant | |
sudo useradd <username> | |
# adding a user WITH assistant | |
sudo adduser <username> | |
# deleting a user | |
sudo userdel <username> |
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 aptitude remove --purge $(dpkg -l apache* | grep ii | awk '{print $2}') |
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
rsync -zrp /local-path user@domain:/remote-path --progress |
OlderNewer