Skip to content

Instantly share code, notes, and snippets.

View rohitfarmer's full-sized avatar

Rohit Farmer rohitfarmer

View GitHub Profile
@rohitfarmer
rohitfarmer / tree.html
Created April 25, 2019 16:26 — forked from mitchellrj/tree.html
HTML & CSS vertical tree layout
<html>
<head>
<title>HTML &amp; CSS tree</title>
<!-- tree -->
<style type="text/css">
ul.tree {
overflow-x: auto;
white-space: nowrap;
}
@rohitfarmer
rohitfarmer / .bash_profile
Created April 11, 2019 17:52 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@rohitfarmer
rohitfarmer / basic-recipes.md
Created October 22, 2018 18:30 — forked from andypiper/basic-recipes.md
Some recipes for the Twitter API for twurl +jq, and other useful Twitter code snippets and tools

The basics

This is a collection of basic "recipes", many using twurl (the Swiss Army Knife for the Twitter API!) and jq to query the Twitter API and format the results. Also, some scripts to test or automate common actions.

@rohitfarmer
rohitfarmer / dalnet.md
Last active November 9, 2018 22:46 — forked from xero/irc.md
irc cheat sheet

Link to docs: http://docs.dal.net/docs/chanserv.html

SSH connection to Dal Net: /connect -ssl punch.dal.net 6697

Identify nick name on dal net: /msg NickServ@services.dal.net IDENTIFY password

Change or set channel topic: /topic

#!/usr/bin/env python
'''
Chemical data about a molecule.
Molecules are defined by SMILES strings. Can work out logP values, Lipinski's
rules, etc...
Uses rdkit
'''
@rohitfarmer
rohitfarmer / bitcoin-cpuminer.sh
Created August 2, 2017 06:27 — forked from NamPNQ/bitcoin-cpuminer.sh
install a bitcoin cpuminer on ubuntu/debian
# install dependencies
sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm git gcc -y
# clone cpuminer
git clone https://github.com/pooler/cpuminer.git
# compile
cd cpuminer
./autogen.sh
./configure CFLAGS="-O3"