Skip to content

Instantly share code, notes, and snippets.

View obulpathi's full-sized avatar

Obulapathi N Challa obulpathi

View GitHub Profile
@obulpathi
obulpathi / virtualenv
Created August 29, 2019 05:47
virtualenv
sudo apt-get install python3-pip
sudo pip3 install virtualenv
sudo pip3 install virtualenvwrapper
Add the following 3 lines to your ~/.bashrc
export WORKON_HOME=$HOME/.virtualenv
VIRTUALENVWRAPPER_PYTHON='/usr/bin/python3'
source /usr/local/bin/virtualenvwrapper.sh
# create a new virtulaenv
Verifying my Blockstack ID is secured with the address 1H2AQ1APv6y551eYHzX17Mp3gPany7Y8q4 https://explorer.blockstack.org/address/1H2AQ1APv6y551eYHzX17Mp3gPany7Y8q4
Verifying my Blockstack ID is secured with the address 1H2AQ1APv6y551eYHzX17Mp3gPany7Y8q4 https://explorer.blockstack.org/address/1H2AQ1APv6y551eYHzX17Mp3gPany7Y8q4
import hashlib as hasher
import datetime as date
# Define what a Snakecoin block is
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp
self.data = data
self.previous_hash = previous_hash
@obulpathi
obulpathi / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@obulpathi
obulpathi / gist:0e09af79670fbffb4660
Created February 25, 2015 12:39
install_spark.sh
# Prerequisites: JAVA
wget http://www.gtlib.gatech.edu/pub/apache/spark/spark-1.2.1/spark-1.2.1-bin-hadoop2.4.tgz
tar zxvf spark-1.2.1-bin-hadoop2.4.tgz
cp spark ~/tools
@obulpathi
obulpathi / uwsgi.ini
Created January 8, 2015 15:34
uwsgi configuration file ini format
[uwsgi]
master = true
chdir = /home/obulpathi/poppy/code/
workers = 4
http-socket = 127.0.0.1:8888
die-on-term = true
enable-threads = true
buffer-size = 32768
max-requests = 15000
no-orphans = true
uwsgi:
http-socket: 127.0.0.1:8888
module: poppy.transport.app:app
processes: 4
master: 1
virtualenv: /home/obulpathi/poppy/code/.tox/py27/
need_app: 1
[
{
"op": "add",
"path": "/domains/0",
"value": {"domain": "added.mocksite4.com"}
}
]