Skip to content

Instantly share code, notes, and snippets.

@Kaweechelchen
Kaweechelchen / README.md
Created December 27, 2016 08:28 — forked from edds/README.md
Socket.IO example to stream tweets on a topic

A simple example to create a websocket server and stream tweets about a pre-defined subject to the page.

Installation

$ npm install socket.io, twitter

Run

$ node ./app.js
@Kaweechelchen
Kaweechelchen / tmux-cheatsheet.markdown
Created December 27, 2016 08:29 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
sudo su
mkdir /mnt/timecapsule
echo "//timeCapsuleIp/Data /mnt/toshiba cifs user= timecapsuleUsername,pass= timecapsuleUserPassword,rw,uid=1000,iocharset=utf8,sec=ntlm 0 0" >> /etc/fstab
@Kaweechelchen
Kaweechelchen / nginx-unificontroller.conf
Created August 8, 2018 21:07 — forked from vidia/nginx-unificontroller.conf
Example, working, NGINX config for proxying to Unifi Controller software and using letsencrypt. Includes websocket fix.
# I had a bit of trouble getting my unifi controller (hosted offsite) to use a proxy/letsencrypt. So here are the fruits of my labor.
# The unifi default port is 8443 running on localhost.
# License: CC0 (Public Domain)
server {
# SSL configuration
#
listen 443 ssl default_server;
listen [::]:443 ssl default_server;