Skip to content

Instantly share code, notes, and snippets.

View sagarrakshe's full-sized avatar
🎯
Focusing

Sagar Rakshe sagarrakshe

🎯
Focusing
View GitHub Profile
@sagarrakshe
sagarrakshe / InternetUp-InternetDown
Last active October 8, 2015 03:29
Build your own command to connect/disconnect to mobile broadband.
nmcli - is a command tool for controlling Network Manager.
1. Create a file called Internet-up.
2. Copy the following line in it
lsusb | (grep -i <string identifying your mobile> &) && (nmcli con up id "<your connection name>" ) && ((ps -el | grep -i firefox ) || firefox &)
[eg. lsusb | (grep -i nokia &) && (nmcli con up id "Idea Mobile" ) && ((ps -el | grep -i firefox ) || firefox &)]
@sagarrakshe
sagarrakshe / Architecture Information
Last active August 29, 2015 13:56
Get Linux system information
#Get info about cpu
$ lscpu
#Get info about memory
$ free -b/k/m/g
#Get info about partitions
$ sudo fdisk -l
hardinfo
@sagarrakshe
sagarrakshe / frontendDevlopmentBookmarks.md
Last active August 29, 2015 14:27 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@sagarrakshe
sagarrakshe / vimrc
Last active March 20, 2016 02:22
vimscripts
" Insert debugger statement according to the filetype, mapped to <F2> key.
function! InsertDebugger()
if &ft == "python"
execute "normal oimport ipdb;ipdb.set_trace()\<Esc>"
elseif &ft == "javascript"
execute "normal odebugger;\<Esc>"
else
" it is something else
endif
endfunction
@sagarrakshe
sagarrakshe / tech-lead.txt
Created July 12, 2017 09:48
Books on technical leadership
http://www.amazon.com/Leading-Geeks-Manage-Deliver-Technology/dp/0787961485
http://www.amazon.com/The-Geek-Leaders-Handbook-Backgrounds/dp/0971246823
http://www.amazon.com/Technical-Minds-Leading-Getting-Technically-Minded/dp/145158315X
http://www.amazon.com/Frustration-Free-Technical-Management-Techniques/dp/1609100352
http://www.amazon.com/Managing-Humans-Humorous-Software-Engineering/dp/159059844X
http://www.amazon.com/Becoming-Technical-Leader-Problem-Solving-Approach/dp/0932633021
http://www.amazon.fr/Talking-Tech-Leads-Novices-Practitioners/dp/150581748X
https://www.amazon.com/Chief-Technology-Officer-Responsibilities-Technical/dp/0982304048
https://www.amazon.com/CTOs-at-Work-Scott-Donaldson/dp/1430235934
@sagarrakshe
sagarrakshe / introrx.md
Created July 29, 2017 07:35 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@sagarrakshe
sagarrakshe / install-comodo-ssl-cert-for-nginx.rst
Created December 12, 2017 04:53 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/sagar/experiments/dataflow/dataflow/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 382, in call
finish_state)
File "/home/sagar/experiments/dataflow/dataflow/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 423, in attempt_call
result = evaluator.finish_bundle()
File "/home/sagar/experiments/dataflow/dataflow/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 698, in finish_bundle
data = self._read_from_pubsub(self.source.timestamp_attribute)
@sagarrakshe
sagarrakshe / .vimrc
Created July 2, 2021 09:56 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
# display VPC ID, CIDR Block and Name
aws ec2 --output text --query 'Vpcs[*].{VpcId:VpcId,Name:Tags[?Key==`Name`].Value|[0],CidrBlock:CidrBlock}' describe-vpcs