Skip to content

Instantly share code, notes, and snippets.


kaushik gandhi kaushikgandhi

  • WebPreneur
  • india
View GitHub Profile
jamesvnz / gcmcss.js
Created Sep 29, 2013
Sample node.js server code to implement an XMPP server that will integrate with Android's Google Cloud Messaging (GCM) "device to cloud" message functionality - CCS. This sample only receives upstream messages (i.e. from the device).
View gcmcss.js
var xmpp = require('node-xmpp');
//Set node-xmpp options.
//Replace with your projectID in the jid and your API key in the password
//The key settings for CCS are the last two to force SSL and Plain SASL auth.
var options = {
type: 'client',
jid: '',
password: 'XXXXXXXX',
port: 5235,
dashohoxha /
Last active Jul 1, 2021
How to setup a Wifi Access Point on Ubuntu 12.04 (or its derivatives).
### Setup a wifi Access Point on Ubuntu 12.04 (or its derivatives).
### make sure that this script is executed from root
if [ $(whoami) != 'root' ]
echo "
This script should be executed as root or with sudo:
sudo $0
st4lk /
Last active Nov 24, 2021
Python: ( audio music downloader
# -*- coding: utf-8 -*-
Скрипт для скачивания музыки с сайта (
Принцип работы:
Скрипт проверяет сохраненный access_token. Если его нет или срок истек,
то открывается страница в браузере с запросом на доступ к аккаунту.
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:


start new with session name: