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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: btsync | |
# Required-Start: $local_fs $remote_fs | |
# Required-Stop: $local_fs $remote_fs | |
# Should-Start: $network | |
# Should-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Multi-user daemonized version of btsync. |
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
--- cplatname 2013-05-02 17:50:01.000000000 -0700 | |
+++ cplatname.new 2014-04-05 11:43:21.676624274 -0700 | |
@@ -114,13 +114,13 @@ | |
distName=`cat /etc/issue | cut -f1 -d" "` | |
version=`cat /etc/issue | cut -f2 -d" " | cut -f1-2 -d"."` | |
proc=`uname -m` | |
- if [ "$distName" = "Ubuntu" -a "$version" = "11.04" -a "$proc" = "x86_64" ] ; then | |
+ if [ "$distName" = "Ubuntu" -a "$proc" = "x86_64" ] ; then | |
plat="lnxsusex64" | |
fi |
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
var rawSites = { | |
'programming': [ | |
'http://blog.codinghorror.com/', | |
'http://thedailywtf.com/', | |
'http://www.hanselman.com/blog/', | |
'http://code.tutsplus.com', | |
'https://news.ycombinator.com/', | |
'http://www.reddit.com/r/programming/', | |
'http://codebetter.com', | |
'http://android-developers.blogspot.com/', |
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
#include %occReference | |
#if $$$comClassDefined("%Library.Object") | |
#define jsonClassIsLatestVersion $classIsLatestVersion | |
//usage: obj.$$$jsonClassIsLatestVersion() | |
#define jsonExtends $extends | |
//usage: {}.$$$jsonExtends(classname) | |
#define jsonFromJSON $fromJSON | |
//usage: {}.$$$jsonFromJSON(string) | |
#define jsonGetIterator $getIterator | |
//usage: obj.$$$jsonGetIterator() |
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/python | |
""" | |
This script reverse the pages of a PDF document and save it to a new file. | |
Dependancy : | |
- "PDFRW" | |
Usage : | |
- `pip install pdfrw` | |
- `python reverse.py file.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
Class AOC.Y2017 Extends %RegisteredObject | |
{ | |
/* | |
ADVENT OF CODE 2017 | |
Built With... | |
_ |