Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

kaushik gandhi kaushikgandhi

🎯
Focusing
  • WebPreneur
  • india
View GitHub Profile
@jamesvnz
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: 'XXXXXXXXX@gcm.googleapis.com',
password: 'XXXXXXXX',
port: 5235,
@dashohoxha
dashohoxha / install_wifi_access_point.sh
Last active Jul 1, 2021
How to setup a Wifi Access Point on Ubuntu 12.04 (or its derivatives).
View install_wifi_access_point.sh
#!/bin/bash
### Setup a wifi Access Point on Ubuntu 12.04 (or its derivatives).
### make sure that this script is executed from root
if [ $(whoami) != 'root' ]
then
echo "
This script should be executed as root or with sudo:
sudo $0
"
@st4lk
st4lk / vkcom_audio_download.py
Last active Nov 24, 2021
Python: vkontakte.ru (vk.com) audio music downloader
View vkcom_audio_download.py
# -*- coding: utf-8 -*-
"""
Скрипт для скачивания музыки с сайта vkontakte.ru (vk.com)
Запуск:
python vkcom_audio_download.py
Принцип работы:
Скрипт проверяет сохраненный access_token. Если его нет или срок истек,
то открывается страница в браузере с запросом на доступ к аккаунту.
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: