Skip to content

Instantly share code, notes, and snippets.

@lakshmankumar12
lakshmankumar12 / solve.py
Created February 27, 2016 17:57
curbside challenge
#!/usr/bin/python
from __future__ import print_function
import requests
import sys
import json
def get_response(idval, sessid):
headers = {'Session': sessid[0]}
req = 'http://challenge.shopcurbside.com/'
@lakshmankumar12
lakshmankumar12 / instruction.txt
Created October 22, 2015 00:38
Direct download for google-drive files
#Courtesy
http://www.labnol.org/internet/direct-links-for-google-drive/28356/
#get-shared-link
https://drive.google.com/file/d/FILE_ID/edit?usp=sharing
#convert-to-download-link
https://drive.google.com/uc?export=download&id=FILE_ID
@lakshmankumar12
lakshmankumar12 / torrc
Last active March 8, 2016 21:57
Tor network config to exit out of India
#tor-browser_en-US/Browser/TorBrowser/Data/Tor/torrc
StrictExitNodes 1
ExitNodes {in}
@lakshmankumar12
lakshmankumar12 / push_note.py
Last active August 29, 2015 14:27
Push bullet sample
#!/usr/bin/python
from pushbullet import Pushbullet
import sys
if len(sys.argv) != 2:
print "Usage %s <message>"%sys.argv[0]
sys.exit(1)
api_key = '32_char_Key_from_pushbullet'
@lakshmankumar12
lakshmankumar12 / tmux.patch
Created June 25, 2015 00:01
tmux fix to get pane-title as the new window-title, when we break out a pane
index d0a5a45..8445ba3 100644
--- a/cmd-break-pane.c
+++ b/cmd-break-pane.c
@@ -80,9 +80,9 @@ cmd_break_pane_exec(struct cmd *self, struct cmd_q *cmdq)
w = wp->window = window_create1(s->sx, s->sy);
TAILQ_INSERT_HEAD(&w->panes, wp, entry);
w->active = wp;
- name = default_window_name(w);
+ name = wp->base.title;
window_set_name(w, name);

This is a Trial Gist

With Heading 1

With sub-heading A

And a paragraph