View install_sshuttle_mac
1 2 3 4 5 6 7 8 9 10
#/bin/bash
echo "Installing PyXAPI"
cd /tmp
curl -O http://www.pps.univ-paris-diderot.fr/~ylg/PyXAPI/PyXAPI-0.1.tar.gz
tar -xzvf PyXAPI-0.1.tar.gz
cd PyXAPI-0.1
./configure
make
sudo make install
cd ..
View rapidftr in rhel
1 2 3 4 5 6 7 8 9 10
Para instalar docker in RHEL7
https://docs.docker.com/installation/rhel/
 
--------------------------------------------------
sudo su -
service docker start
mkdir -p /data/production
docker pull rapidftr/rapidftr
chcon -Rt svirt_sandbox_file_t /data/production
docker run -d -P -p 80:80 -p 443:443 -p 6984:6984 -p 5984:5984 -v /data/production:/data --name rapidftr rapidftr/rapidftr:release-2.0.0_latest
View rapidftr-debug
1 2 3 4 5 6
# If the service doesn't run
sudo service docker restart
sudo service rapidftr restart
sudo docker logs -f rapidftr
 
# More debug steps will go below
View Res.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
#Author: Travis Gibson
#This script requires an argument for the resolution width
#Thanks go out to eCharles for a patch in the comments of this link here: http://blog.echarles.net/2013/10/01/Ubuntu-13.04-On-MacbookPro-Retina
if [ -z "$1" ]; then
echo "Usage: Res.sh <resolution_width>";
exit 1;
fi
erg=$( echo "$1")
check=$(xrandr -q | grep DP-2 | cut -d " " -f 4 | cut -d "x" -f 1)
View trello.html
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Trello Test</title>
<style>
li.pass{
color:green;
}
li.fail{
View keybase.md

Keybase proof

I hereby claim:

  • I am sriprasanna on github.
  • I am batman (https://keybase.io/batman) on keybase.
  • I have a public key whose fingerprint is CB89 1086 D0BD D5B8 0D19 551F DF4D 28C8 3CFD 49C8

To claim this, I am signing this object:

View rapidftr-debian-packaging.sh
1 2 3 4 5 6 7 8 9 10
sudo apt-get update
sudo apt-get install --yes apt-file && apt-file update
sudo apt-get install --yes python-software-properties
sudo apt-add-repository --yes ppa:longsleep/couchdb
sudo apt-get update
sudo apt-get --purge --yes remove libcurl3
sudo apt-get clean
sudo apt-get --print-uris --yes install libcurl3 couchdb imagemagick openjdk-7-jdk ruby1.8 thin openssh-server rubygems1.8 libxslt-dev libxml2-dev libzip2 libzip-dev build-essential | grep ^\' | cut -d\' -f2 > dependencies.txt
mkdir debs && cd debs
wget -nc -i ../dependencies.txt
View lein2-issue.md

Sample Project

Starting from:

lein new foo
cd foo

Say I have a random JAR file that is not available in any repository:

touch README.md
View test_nothing.rb
1 2 3 4 5 6 7 8 9 10
require "rubygems"
require "rspec"
 
class TestNothing
def do_nothing
end
 
def return_nil
nil
end
View gist:2465475
1 2 3 4 5 6 7 8 9 10
#!/Users/dustyeike/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
require "rubygems"
require "test/unit"
require "date"
 
EPOCH = Date.new(1970, 1, 1)
 
#
# Returns the number of seconds from the epoch to date
def epoch_seconds date
Something went wrong with that request. Please try again.