Skip to content

Instantly share code, notes, and snippets.

View rohitfarmer's full-sized avatar

Rohit Farmer rohitfarmer

View GitHub Profile
@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"
@rohitfarmer
rohitfarmer / gromacs-4-commands.txt
Created August 2, 2017 14:16
Gromacs 4-* commands
Gromacs local install
---------------------
FFTW3 compile for older gromacs version
---------------------------------------
./configure --enable-threads --enable-float --with-pic
./configure --prefix=/home/rohit/bin/gromacs-4.5.6/
For Newer versions
-----------------
@rohitfarmer
rohitfarmer / pymol-ray-tracing-options.txt
Created August 2, 2017 14:19
Pymol Ray Tracing Options
set ray_trace_mode, 1 #this is for backborder
set antialias, 6; #higher the value smoother the picture is
set ray_shadow, 1 #switch on the shadows
set ray_trace_gain, 0.0 #to alter the thickness of the outline
set cartoon_fancy_helices, 1 #for fancy cartoon
set cartoon_highlight_color, grey #to colour inside of helix
set ray_texture, 4 #it gives a matte style texture
ray 2400, 2400 #this is fore really high resolution image, you may not need it
#These are the two options I usually use: first one colours the inisde of helix as grey the second one doesn't
@rohitfarmer
rohitfarmer / onion-sites.txt
Created August 2, 2017 14:26
List of onion sites
Protonmail https://protonirockerxow.onion/login
The uncensored hidden wiki http://uhwikih256ynt57t.onion/wiki/index.php/Main_Page
The hidden wiki http://wikitjerrta4qgz4.onion/
Not evil search http://hss3uro2hsxfogfq.onion/
DuckDuckgo search https://3g2upl4pq6kufc4m.onion/
Torch search http://xmh57jrzrnw6insl.onion/
Torrentz2 http://torrentzwealmisr.onion/
@rohitfarmer
rohitfarmer / clamav.txt
Created August 2, 2017 14:33
Clam anti virus commands
To scan and ring the bell when infected files are found
-------------------------------------------------------
clamscan -r –bell -i /home/bill/Downloads
To scan the whole system (it may take a while) and remove all infected files in the process, you can use the command in the
following form: “clamscan -r –remove /”. Sometimes, simply removing infected files can cause even more problems or breakages.
I suggest that you should always check the output first and then take manual action. Alternatively, you may also use the “move”
command integrated as a parameter in the form of” “--move=/home/bill/my_virus_collection” (example directory).
To update virus database
@rohitfarmer
rohitfarmer / excel-stats.txt
Created August 2, 2017 14:38
Stats using excel
Returns a confidence interval.
Syntax:
CONFIDENCE(α; sd; size)
sd (> 0) is the (known) standard deviation of a normal distribution.
size is the size of a sample from that distribution.
α is the significance level (0 < α < 1), which determines the desired confidence level = (1 - α)*100%.
@rohitfarmer
rohitfarmer / vimrc
Created August 2, 2017 14:42
VIM RC file
set ai
set nu
set showcmd
set cursorline
syntax enable
set tabstop=4
set softtabstop=4
set expandtab
filetype indent on
@rohitfarmer
rohitfarmer / tor.md
Last active February 11, 2024 00:23
Tor related stuff

To route everything running in a shell through tor

install tor
install torsocks

source torsocks on #everything in this particular shell will be routed through tor

Tor friendly websites

@rohitfarmer
rohitfarmer / linux-network.txt
Created August 3, 2017 08:20
Linux network related commands
Verifying Which Ports Are Listening
-----------------------------------
#install nmap first
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/3/html/Security_Guide/s1-server-ports.html
nmap -sT -O localhost
128.121.0.253
www.google.com etc
@rohitfarmer
rohitfarmer / my-sqlite-cookbook.md
Last active September 19, 2022 19:02
Sqlite commands

My SQLite Cookbook

For general command line help
https://sqlite.org/cli.html

Open/attach a database

sqlite3 database.db

Show tables

.tables