Skip to content

Instantly share code, notes, and snippets.

This is a Trial Gist

With Heading 1

With sub-heading A

And a paragraph

@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);
@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 / 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 / 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 / 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 / hterm_solarized.js
Created March 20, 2016 18:59 — forked from organisciak/hterm_solarized.js
Solarized for Mosh Chrome
// Solarized for Mosh Chrome
// Mosh does not seem to save profiles, so this sets the default 'mosh' profile.
// To reset, evaluate term_.prefs_.resetAll()
// Run in the JavaScript console of mosh_browser.html, which can be opened
// as explained here:
// https://github.com/rpwoodbu/mosh-chrome/wiki/FAQ#how-can-i-change-the-way-the-terminal-looks-font-color-etc
var htermProfiles = {
// Solarized Dark
@lakshmankumar12
lakshmankumar12 / Mosh term Settings
Last active March 24, 2016 16:06 — forked from neshaug/Chrome Secure Shell Settings
Chrome Secure Shell Settings
/*
* http://goo.gl/AKBve
*/
// create a new profile at the bottom of the connect dialog, call it windows and then paste this:
mosh_client_.io.terminal_.prefs_.set('font-family', 'DejaVu Sans Mono for Powerline');
mosh_client_.io.terminal_.prefs_.set('font-size', 12);
// this is the standard settings for a profile
term_.prefs_.set('font-family', 'monospace'); // standard
term_.prefs_.set('font-size', 15); // standard
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index 518a14a3..75a90a09 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -130,12 +130,12 @@ prompt_git() {
zstyle ':vcs_info:*' enable git
zstyle ':vcs_info:*' get-revision true
zstyle ':vcs_info:*' check-for-changes true
- zstyle ':vcs_info:*' stagedstr '✚'
- zstyle ':vcs_info:*' unstagedstr '●'
@lakshmankumar12
lakshmankumar12 / dontclose.js
Created April 9, 2016 16:48
Make a web-page not exit on ctrl-w
window.onbeforeunload = function(){
return 'Are you sure you want to leave?';
};