Skip to content

Instantly share code, notes, and snippets.

{
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Bright.tmTheme",
"draw_white_space": "all",
"font_face": "Inconsolata",
"font_options": ":cleartypeantialias",
"font_size": 11,
"highlight_line": true,
"ignored_packages":
[
{
"auto_indent": true,
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"draw_white_space": "all",
"font_face": "Monaco",
"font_options": "subpixel_antialias",
"font_size": 10,
"ignored_packages":
[
"Vintage"
package main
import (
"fmt"
"http"
"io/ioutil"
"os"
)
func main() {
@dbalan
dbalan / check.sh
Created August 21, 2013 20:02
NRPE Plugin to check plivo pricing API.
#!/bin/bash
# Change this to declare?
code[0]=US
code[1]=IN
code[2]=GB
code[3]=CA
# Mask this.
AUTH_ID=""
#!/usr/bin/python2
#
# NAGIOS Plugin to test Plivo API.
from plivocred import AUTH_ID,AUTH_TOKEN
from random import randint
import sys
import requests
#!/usr/bin/python
"""Spinner.
Usage:
spinner [--ami='ami-fe8ac3ac'] [--inst=1] [--sec-group='sg-b8c325d7'] [--subnet='subnet-f01dc398']
Options:
-h --help Show this screen.
--ami AMI_ID, defaults to debian 7
--inst No of instances to spawn
@dbalan
dbalan / deploy.py
Last active December 21, 2015 22:39
#!/usr/bin/python
"""Spinner.
Usage:
spinner [--ami='ami-fe8ac3ac'] [--inst=1] [--eb='mine']
Options:
-h --help Show this screen.
--ami AMI_ID, defaults to debian 7
--inst No of instances to spawn
@dbalan
dbalan / app.py
Created September 10, 2013 15:57 — forked from mattupstate/app.py
os
from flask_extended import Flask
app = Flask(__name__)
app.config.from_yaml(os.join(app.root_path, 'config.yml'))
@dbalan
dbalan / test.xml
Last active December 27, 2015 13:49
Test XML
<Response><Speak>Welcome to plivo test.</Speak><Wait length="1" /><Play>http://ccmixter.org/content/stellarartwars/stellarartwars_-_Love_Liberation_(inc_stems).mp3</Play></Response>
@dbalan
dbalan / gist:7338912
Created November 6, 2013 16:10 — forked from pch/gist:1322006

How to use Spotify in any country

If you can put up with ads, you can easily trick Spotify and sign up for an account, even if you're not in one of the supported countries. You'll need:

  • A Facebook account
  • SSH access to a server based in one of the supported countries (US, UK, whatevs).

First, set up an SSH tunnel, as described here: http://paulstamatiou.com/how-to-surf-securely-with-ssh-tunnel