Skip to content

Instantly share code, notes, and snippets.

View abhshkdz's full-sized avatar

Abhishek Das abhshkdz

View GitHub Profile
@abhshkdz
abhshkdz / hubot.sh
Created August 11, 2012 17:42
Building up Hubot on Gtalk (deployed on Heroku)
wget https://github.com/downloads/github/hubot/hubot-2.2.0.tar.gz
tar zxvf hubot-*.tar.gz
cd hubot/
vim Procfile
app: bin/hubot -a gtalk -n Hubot
vim package.json
{
"name": "hosted-hubot",
"version": "2.2.0",
@abhshkdz
abhshkdz / nvm
Created November 26, 2012 12:47
Source nvm + tab completion
# NVM
export NVM_HOME="$HOME/.nvm"
if [[ -f "$NVM_HOME/nvm.sh" ]]; then
source "$NVM_HOME/nvm.sh"
fi
# NVM TAB COMPLETION
if [[ -f "$NVM_HOME/bash_completion" ]]; then
source "$NVM_HOME/bash_completion"
fi
@abhshkdz
abhshkdz / tweets
Created November 27, 2012 01:30
Self-updating list of my tweets
http://t.co/1fWalynZ #nowplaying
http://t.co/RvC1kqkl
Dropbox Space Race! https://t.co/Fb8mMBQS
RT @verge: First strike: how tech's superpowers could start an ecosystem war http://t.co/I5pu18fg
RT @firefox: Firefox introduces new Social API and previews integration with Facebook  http://t.co/wPrOEVfL
Just logged into my account and this is what Google Now came up with! #nexus7 http://t.co/zRibmAi8
@leostatic Remember this? RT @hackaday: 8x8x8 LED cube and the board that drives it http://t.co/BR1mY2hw
RT @jjenzz: discovery of Sass placeholder selectors has just made my morning <3 how did I not know about these! http://t.co/K7qjkFMZ
RT @saurabhsahni: Geeks on a Plane India is Back: — 500 Startups’ Tech + Startup Tour. Feb 16-18 http://t.co/IOmInD46
RT @pzerger: Microsoft patent application details head-mounted display used to augment live events http://t.co/R8wEn4RL <-- looks lik ...
@abhshkdz
abhshkdz / sublime-text-installation.md
Last active December 19, 2015 01:58
Sublime Text 2 Installation Instructions for Ubuntu 13.04

Sublime Text 2 Installation Guide: Ubuntu 13.04

1. Install Sublime Text 2

Open terminal

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

2. Install Sublime Package Control

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Cards">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Muzi Widget</title>
<link rel="stylesheet" href="css/style.css">
<link rel="author" href="humans.txt">
</head>
@abhshkdz
abhshkdz / slug.php
Created November 2, 2013 08:45
Generating a Url slug in PHP
<?php
function generateUrlSlug($string, $maxlen=0)
{
$string = trim(preg_replace('/[^a-z0-9]+/', '-', strtolower($string)), '-');
if ($maxlen && strlen($string) > $maxlen) {
$string = substr($string, 0, $maxlen);
$pos = strrpos($string, '-');
if ($pos > 0) {
$string = substr($string, 0, $pos);
}
module.exports = function(grunt){
"use strict";
/* Load grunt modules */
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
/* Configuration file */
var config = grunt.file.readJSON('config/config.json');
#Install PiAUISuite - https://github.com/StevenHickson/PiAUISuite
git clone git://github.com/StevenHickson/PiAUISuite.git
cd PiAUISuite/Install/
./InstallAUISuite.sh
#http://blog.oscarliang.net/raspberry-pi-voice-recognition-works-like-siri/
sudo apt-get install ffmpeg
#!/bin/bash
echo "Recording... Press Ctrl+C to Stop."
@abhshkdz
abhshkdz / oneplue-two-invite-script.py
Last active September 8, 2015 22:41
OnePlus Two invite queue script
# Used to work before OnePlus added Captcha
import requests
import string
import random
import time
import json
import re
mailinator_api_token = ''