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/bash | |
## | |
## Download the RSS feed of a podcast | |
## Args: $1 -- destination file | |
## $2 -- URL for podcast feed | |
## TODO: | |
## - validate parameters | |
## - ensure log location exists |
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
IDIR =. | |
CC=g++ | |
CFLAGS=-I$(IDIR) -std=c++11 -ggdb | |
ODIR=. | |
LDIR =../lib | |
LIBS=-lm | |
_DEPS = shape.h |
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
# | |
# Make gcc-4.8 the default compiler | |
# brew installs gcc-4.8, but does not create symlinks for it to be used | |
# without the version number. | |
# This script: | |
# 1. Generate symlinks for all gcc tools installed by brew | |
# 2. Make brew-installed software the first in path | |
# | |
BREW_CMD="brew" |
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
## | |
## Install Google C++ Testing Framework | |
## | |
##Remove Libraries that are already installed | |
# Linux: | |
# sudo rm -rf /usr/local/opt/gtest* | |
# sudo libtool --mode=uninstall rm /usr/local/lib/libgtest.a | |
# sudo libtool --mode=uninstall rm /usr/local/lib/libgtest_main.a |
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: deluge-daemon | |
# 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: Daemonized version of deluge and webui. |
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
#Enable terminal colors | |
export TERM=xterm-color | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
#PS1='\[\033[0;33m\]\u\[\033[0m\]@\[\033[0;32m\]\h\[\033[0m\]:\[\033[0;34m\]\w\[\033[0m\]\$ ' | |
PS1='\[\033[0;33m\]\u\[\033[0m\]@\[\033[0;32m\]\h\[\033[0m\]:\[\033[0;34m\]\w\[\033[0;036m\]$(__git_ps1 " (%s)") \[\033[0m\]\$ ' | |
#Load Profile | |
if [ -f ~/.profile ]; then | |
. ~/.profile |
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
"""List Diff - A Doff Tool for Lists | |
Perform a diff between a pair of lists. | |
Usage: | |
listdiff.py <file1> <file2> | |
listdiff.py -h | --help | |
listdiff.py --version | |
Arguments: |
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
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.util.Properties; | |
public class PropertiesDemo { | |
PropertiesDemo() { | |
} | |
//Print Properties |
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
/* | |
* Figure 2-27 | |
* Main Class which uses the ProducerConsumerMonitor | |
*/ | |
import ProducerConsumerMonitor; | |
import Item; | |
class ProducerConsumer2 extends Thread { |
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 <iostream> | |
int main(int argc, char *argv[]) { | |
for(unsigned int i = 0; i < 100; i++) { | |
std::cout << i << std::endl; | |
} | |
return(0); | |
} |