Skip to content

Instantly share code, notes, and snippets.

View jeremy5189's full-sized avatar

Jeremy Yen jeremy5189

View GitHub Profile
@crtr0
crtr0 / client.js
Created June 8, 2012 17:02
A simple example of setting-up dynamic "rooms" for socket.io clients to join
// set-up a connection between the client and the server
var socket = io.connect();
// let's assume that the client page, once rendered, knows what room it wants to join
var room = "abc123";
socket.on('connect', function() {
// Connected, let's sign-up for to receive messages for this room
socket.emit('room', room);
});
@tafkey
tafkey / treesize.sh
Last active February 9, 2022 09:17
A simple “treesize” shell script for Linux (adopted from Andrew's blog, http://blog.aclarke.eu)
#/bin/sh
du -k --max-depth=1 | sort -nr | awk '
BEGIN {
split("KB,MB,GB,TB", Units, ",");
}
{
u = 1;
while ($1 >= 1024) {
$1 = $1 / 1024;
u += 1
@denny0223
denny0223 / COSCUP 2013 Day 1
Created August 4, 2013 15:15
COSCUP 2013 IRC log
--- Day changed Sat Aug 03 2013
00:11 < tsai> :)
00:13 < pichuang_> 好多人
00:14 < darkgerm> 差點忘記進來了XD
00:17 < darkgerm> pichuang: 學弟好 (?
00:17 < Jedi_> 隨手亂拿了一些奇怪的小禮品,實用性可疑,笑果若干,今、明兩天如果你剛好帶著拙著《簡報原力》或我的其他著作/譯作出席,請來跟我打個招呼,領取隨機小禮~ :p
00:22 < darkgerm> pichuang: 啊!原來是學長... 只看學號以為是學弟 <冏>
00:23 < chihhsin> darkgerm: 黑駿~
00:23 < pichuang> 沒關係 我現在還沒有搞清楚狀況中XD
00:25 < darkgerm> chihhsin: hihi~
@mpaskalev
mpaskalev / BrewBindInstallAndSetupMacOSX10_10.sh
Last active September 7, 2023 23:29
Install and setup bind (named) on Mac OS X 10.10.1 with brew 0.9.5
#!/bin/bash
# Run as root or sudo the commands that need it as you go.
# brew version 0.9.5
# Mac OS X 10.10.1
# A little bit changed version of this:
# http://stackoverflow.com/questions/19538118/osx-mavericks-bind-no-longer-installed-how-to-get-local-dns-server-working
@attacus
attacus / riot-matrix-workshop.md
Last active March 13, 2024 00:16
Create your own encrypted chat server with Riot and Matrix

This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.

Running your own encrypted chat service with Matrix and Riot

Workshop Instructor:

This workshop is distributed under a CC BY-SA 4.0 license.

What are we doing here?