Skip to content

Instantly share code, notes, and snippets.

View yashodhank's full-sized avatar
🎯
Manifesting

Yashodhan yashodhank

🎯
Manifesting
View GitHub Profile
@yashodhank
yashodhank / README.markdown
Created September 13, 2017 19:45 — forked from marijn/README.markdown
List of countries in YAML, CSV and TXT format
@yashodhank
yashodhank / countries
Created September 13, 2017 19:44 — forked from kalinchernev/countries
Plain text list of countries
Afghanistan
Albania
Algeria
Andorra
Angola
Antigua & Deps
Argentina
Armenia
Australia
Austria
@yashodhank
yashodhank / colorbrewer.js
Created June 27, 2017 04:37 — forked from anandpdoshi/colorbrewer.js
Relationships between DocTypes in ERPNext
// This product includes color specifications and designs developed by Cynthia Brewer (http://colorbrewer.org/).
var colorbrewer = {YlGn: {
3: ["#f7fcb9","#addd8e","#31a354"],
4: ["#ffffcc","#c2e699","#78c679","#238443"],
5: ["#ffffcc","#c2e699","#78c679","#31a354","#006837"],
6: ["#ffffcc","#d9f0a3","#addd8e","#78c679","#31a354","#006837"],
7: ["#ffffcc","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#005a32"],
8: ["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#005a32"],
9: ["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"]
},YlGnBu: {
@yashodhank
yashodhank / README.md
Created June 11, 2017 23:44 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@yashodhank
yashodhank / letsencrypt-hostname.sh
Created May 31, 2017 17:10 — forked from xgin/letsencrypt-hostname.sh
Secure plesk clean installation with hostname certificate by Let's Encrypt
#!/bin/bash -e
### Copyright 1999-2015. Parallels IP Holdings GmbH. All Rights Reserved.
### Secure plesk clean installation with hostname certificate by Let's Encrypt
export PYTHONWARNINGS="ignore:Non-standard path"
LE_HOME=${LE_HOME:-"/usr/local/psa/var/modules/letsencrypt"}
HOSTNAME=$(hostname)
# Use staging server for testing
# --server https://acme-staging.api.letsencrypt.org/directory

Syncing with Backblaze B2 with rclone on CentOS

Here's how to sync your files onto Backblaze once you have a Backblaze account. More on that here. Also if you're uploading more than 10 GB, you'll want to increase your cap size on the web portal.

  • You'll want to do this all as root: sudo su -
  • Install rclone
    • Add the extra EPEL repos: yum install epel-release
    • Install some prerequisites: yum install golang git
    • Add Go's folder to your path: export GOPATH="$HOME/gopath/"
    • Install rclone in the Go folder: go get github.com/ncw/rclone
  • Copy the program to your binary folder: cp $GOPATH/bin/rclone /usr/bin/
@yashodhank
yashodhank / INSTALL
Created April 20, 2017 03:15 — forked from arya-oss/INSTALL.md
Ubuntu 16.04 Developer Tools installation
###### development tools
sudo apt-get install build-essential python-dev git nodejs-legacy npm gnome-tweak-tool openjdk-8-jdk
### Python packages
sudo apt-get install python-pip python-virtualenv python-numpy python-matplotlib
### pip packages
pip install django flask django-widget-tweaks django-ckeditor beautifulsoup4 requests classifier SymPy ipython
@yashodhank
yashodhank / zeromq.sh
Created March 17, 2017 23:49 — forked from mnlcandelaria/zeromq.sh
How to install ZeroMQ on Ubuntu
# run in sudo
# Before installing, make sure you have installed all the needed packages
sudo apt-get install libtool pkg-config build-essential autoconf automake
sudo apt-get install libzmq-dev
# Install libsodium
git clone git://github.com/jedisct1/libsodium.git
cd libsodium
./autogen.sh
./configure && make check