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
| #!/usr/bin/env python | |
| print "="*80 | |
| #import sys | |
| b = 24 | |
| a = 32 | |
| for i in range(1, min(a, b)): | |
| if (a % i == 0 and b % i == 0): | |
| gcd = i | |
| #print "Found common divisor" + str(gcd) |
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
| server { | |
| server_name tkbodycode.dev; | |
| root /home/lape/workspace/tkbodycode/wordpress; | |
| index index.php; | |
| location / { | |
| try_files $uri $uri/ /index.php; | |
| } |
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
| #!/usr/bin/env /usr/bin/python | |
| import os, errno, shutil, sys | |
| from pipes import quote | |
| script_dir = os.path.realpath(os.path.dirname(__file__)) | |
| output_dir = script_dir + "/outerr" | |
| tmp_dir = script_dir + "/tmppppppp" | |
| book_dir = os.path.realpath(sys.argv[1]) | |
| book_name = os.path.basename(book_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
| #!/usr/bin/python | |
| import gamin | |
| import time | |
| from os.path import expanduser | |
| import threading | |
| import thread | |
| import os | |
| import Queue |
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
| #!/bin/bash | |
| # Syncs new lines in a remote log file to a local file. | |
| # Downloads remote file, and prints all lines that are | |
| # not yet printed | |
| source=$1 | |
| # Find the name for the locally copied file | |
| hash=`echo "$source" | md5sum | cut -d " " -f 1` |
NewerOlder