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
<div id="slider1" class="slider"> | |
<img src="http://www.schrankmonster.de/content/binary/astronomy_day.jpg"></img> | |
<img src="http://imagenes.publico.es/resources/archivos/2011/12/5/1323109544448planetadn.jpg"></img> | |
<img src="http://img.ehowcdn.com/article-new/ehow/images/a04/t9/al/astronomy-science-fair-ideas-800x800.jpg"></img> | |
</div> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> | |
<script src="slideshow.js"></script> | |
<script> |
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
# /etc/logrotate.conf | |
# this is the logrotate main file, see: include /etc/logrotate.d | |
# see "man logrotate" for details | |
# rotate log files weekly | |
weekly | |
# keep 4 weeks worth of backlogs | |
rotate 4 |
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
#/etc/nginx/vhosts/app1.conf | |
upstream unicorn_app1 { | |
server unix:/home/user1/app1/shared/system/unicorn.sock; | |
} | |
server { | |
server_name domain.name.com, domain.name2.com; | |
# server_name _; |
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
# Direct log messages to stdout | |
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | |
log4j.appender.stdout.Target=System.out | |
log4j.appender.stdout.layout=org.apache.log4j.TTCCLayout | |
log4j.appender.stdout.layout.DateFormat=ISO8601 | |
# File appender | |
log4j.appender.P=org.apache.log4j.DailyRollingFileAppender | |
log4j.appender.P.File=/var/log/app/app.log | |
#log4j.appender.P.MaxFileSize=10000KB |
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
# run ./buid_html from commandline | |
haml -f html5 index.haml > index.html |
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
0 - no access to the file whatsoever | |
1 - execute permissions only | |
2 - write permissions only | |
3 - write and execute permissions | |
4 - read permissions only | |
5 - read and execute permissions | |
6 - read and write permissions | |
7 - read, write and execute permissions (full permissions) | |
Owner / UserGroupOther/ Everyone |
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
/** | |
* Accompanies the video "Visual Demonstration of the QuickSort Algorithm" | |
* http://www.youtube.com/watch?v=Z5nSXTnD1I4 | |
**/ | |
function profileQuickSort(a){ | |
var comparisons = 0; | |
var swaps = 0; | |
var func_calls = 0; | |
/** |
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
#on windows: show routing table | |
tracert -d google.com | |
#check if port 8000 inuse | |
sudo lsof -iTCP:8000 -sTCP:LISTEN | |
#on osx | |
traceroute -d 162.218.208.138 |
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
# run on the guest(vm) to allow access permissions for the shared mac folder on ubuntu | |
#The sharename(fe) is the name chosen above. | |
#For example I've shared the Mac directory /Users/dherron/fe with the sharename of fe. | |
#The mountpoint(sf_fe/) is the directory within the guest system to mount this share | |
#- See more at: http://tutorials.davidherron.com/2008/06/virtualbox-running-ubuntu-accessing.html | |
#drwxrwx--- 1 root vboxsf 476 ינו 2 19:51 sf_fe | |
sudo mount -t vboxsf -o uid=1000,gid=1000 fe sf_fe/ | |
#drwxr-xr-x 1 git git 476 ינו 2 19:51 sf_fe |
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
## PART 1: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/ | |
# install | |
brew install mongodb | |
#create path | |
mkdir -p /data/db | |
#launch mongodb | |
mongod |
OlderNewer