Skip to content

Instantly share code, notes, and snippets.

karanik karanikn

Block or report user

Report or block karanikn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

View gist:e6c203569aacedf28343197de7f46b0d
### Keybase proof
I hereby claim:
* I am karanikn on github.
* I am karanik (https://keybase.io/karanik) on keybase.
* I have a public key ASDbar-p8HWGJLkIEfGYEHqe3XWMsYodzK3_1D14b0MfeQo
To claim this, I am signing this object:
@karanikn
karanikn / iterm2-solarized.md
Created Mar 27, 2017 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel9k

Powerlevel9k

@karanikn
karanikn / lan_monitor.sh
Created Dec 21, 2016 — forked from bfg100k/lan_monitor.sh
This is a script to check for new devices on the network (regardless of connectivity type. i.e. wired, wireless, vpn). New devices (either new MAC or old MAC with new hostname) joining the network will trigger an email alert to be sent. A simple intrusion detection system for Asus routers running custom firmware by Padavan (https://code.google.c…
View lan_monitor.sh
#!/bin/bash
# Script to monitor devices on network (regardless of connectivity type.
# i.e. wired, wireless, vpn). New devices (either new MAC or old MAC with
# new hostname) joining the network will trigger an email alert to be sent.
#
# REQUIRED ENTWARE PACKAGES :
# * msmtp - SMTP client to send mail to external email addresses
#
# Author: SidneyC <sidneyc_at_outlook_dot_com>
#
@karanikn
karanikn / pdfmail2.php
Created Nov 15, 2016 — forked from pdfcrowd/pdfmail2.php
generate a PDF using the Pdfcrowd API and send it as an email attachment (II.)
View pdfmail2.php
<?php
require 'pdfcrowd.php';
try
{
// generate a PDF file
$client = new Pdfcrowd($username, $apikey);
$pdf = $client->convertHtml("Hello World");
@karanikn
karanikn / pdfmail.php
Created Nov 15, 2016 — forked from pdfcrowd/pdfmail_api_v1.php
generate a PDF using the Pdfcrowd API and send it as an email attachment
View pdfmail.php
// uses the PHP PEAR modules for sending MIME email
// http://pear.php.net/package/Mail
// http://pear.php.net/package/Mail_Mime
<?php
require 'pdfcrowd.php';
require_once('Mail.php');
require_once('Mail/mime.php');
@karanikn
karanikn / zsh.md
Created May 3, 2016 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu
View zsh.md

Prereq:

apt-get install zsh
apt-get install git-core

Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
You can’t perform that action at this time.