Skip to content

Instantly share code, notes, and snippets.

Pavan Kumar Sunkara pksunkara

Block or report user

Report or block pksunkara

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 blockstack.md
View onename.md
@pksunkara
pksunkara / thanks.py
Created Jul 31, 2014
Thanks to facebook birthday wishes
View thanks.py
import sys
from urllib import urlencode
import requests
from urlparse import urlparse, parse_qs
from random import choice
import re
self_id = '10204360172032372' # your facebook id here
utc_bday = '2014-07-27 18:30:00' # utc timestamp of your birthday
View keybase.md

Keybase proof

I hereby claim:

  • I am pksunkara on github.
  • I am pksunkara (https://keybase.io/pksunkara) on keybase.
  • I have a public key whose fingerprint is 99CE B8EB B2ED C081 CA78 1127 F970 11F6 0D3A A3F6

To claim this, I am signing this object:

@pksunkara
pksunkara / github_hook.js
Last active Jun 24, 2019
Delete github repo hooks
View github_hook.js
// TODO: Github Apps
const client = require('octonode').client(process.env.GITHUB_TOKEN);
const async = require('async');
const colors = require('colors');
const inquirer = require('inquirer');
const program = require('commander');
// TODO: Github Org
program
.version('0.1.0')
@pksunkara
pksunkara / resourceful.md
Last active Oct 12, 2015
Many-to-Many in resourceful
View resourceful.md

One-to-Many relationship

In some web applications, we need to define a one-to-many relationship between two entities. For example, let's take github.

Example: One-to-Many relationship exists between user and repository. User pksunkara have 2 repositories octonode and hub

The entities are defined as the following:

var resourceful = require('resourceful');
@pksunkara
pksunkara / clarg.md
Created Dec 16, 2011
Command Line Arguments Specification
View clarg.md

Command Line Arguments Specification

This specification defines Command Line Arguments level 1 (CLARG 1.0). This document aims to direct development of command line tools conform to a set of rules while parsing options.

Arguments

The different type of arguments are:

  • Short Option
  • Long Option
@pksunkara
pksunkara / mixin.sass
Created Nov 25, 2011
Some mixins for SASS
View mixin.sass
$useIEFilters: 1
// might be 0 or 1. disabled by default.
=border-radius($values)
-moz-border-radius: $values
-webkit-border-radius: $values
border-radius: $values
=border-bottom-left-radius($values)
@pksunkara
pksunkara / debl.sh
Created Oct 20, 2011
Extract deb package to local /usr folder
View debl.sh
#!/bin/sh
if [ $# -ne 1 ]
then
echo "Usage: $0 file.deb"
exit 0;
fi
ar vx $1
rm debian-binary
@pksunkara
pksunkara / .gitconfig
Last active Jul 20, 2019
Sample of git config file (Example .gitconfig)
View .gitconfig
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
You can’t perform that action at this time.