This file contains hidden or 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
| tail -f mongodb.log | grep "^SOME_KEY:" |
This file contains hidden or 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
| sass -E UTF-8 --style compressed --watch scss:css |
This file contains hidden or 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
| find . -type d -exec chmod 755 {} \+ | |
| find . -type f -exec chmod 644 {} \+ |
This file contains hidden or 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
| for file in $(find . -type f -name '*.php'); do sed s/OLD/NEW/g $file > ../temp/test.php; mv ../temp/test.php $file; done; |
This file contains hidden or 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
| #Create server key | |
| openssl genrsa -des3 -out server.key 4096 | |
| #Remove password | |
| openssl rsa -in server.key -out server.pem | |
| #Create certificate | |
| openssl req -new -key server.key -out server.csr | |
| #Sign certificate |
This file contains hidden or 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
| tar -czf zipped_files.tar.gz file1 file2 file3 | |
| tar -zxvf zipped_files.tar.gz |
This file contains hidden or 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 mount -t nfs -o resvport,soft,intr,rsize=8192,wsize=8192,timeo=900,retrans=3,proto=tcp hostname:/shared_dir /local_dir |
This file contains hidden or 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
| # Need this installed to use `add-apt-repository` | |
| sudo apt-get install python-software-properties | |
| sudo add-apt-repository ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install oracle-java7-installer | |
| sudo update-java-alternatives -s java-7-oracle | |
| # Download and install Hadoop 1.1 from one of the mirrors. | |
| wget http://apache.mirrors.tds.net/hadoop/common/hadoop-1.1.2/hadoop_1.1.2-1_x86_64.deb |
This file contains hidden or 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
| javac -classpath /full/path/to/file.jar -d class/output/dir src/*.java | |
| jar -cvf outdir/program.jar -C class/output/dir/ . |
This file contains hidden or 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
| from xml.sax.saxutils import escape | |
| from datetime import datetime | |
| from bs4 import BeautifulSoup | |
| headerXml = """<?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export3.dtd"> | |
| <en-export application="Evernote" version="Evernote Mac">""" | |
| footerXml = "</en-export>" |
OlderNewer