Skip to content

Instantly share code, notes, and snippets.

View zynick's full-sized avatar
🤖

Chan Zi-Yuan zynick

🤖
View GitHub Profile
@zynick
zynick / .screenrc
Created August 8, 2018 07:30 — forked from joaopizani/.screenrc
A killer GNU Screen Config
# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
# huge scrollback buffer
defscrollback 5000
# no welcome message
startup_message off
@zynick
zynick / XORCipher.js
Last active June 5, 2017 01:04 — forked from sukima/XORCipher.js
A Super simple encryption cipher using XOR and Base64 in JavaScript (No Dependency)
// Modified: Removes dependency on [Underscore](http://underscorejs.org/)
// so you can copy the following code and use it everywhere (even in browser console!)
//
// XORCipher - Super simple encryption using XOR and Base64
//
// As a warning, this is **not** a secure encryption algorythm. It uses a very
// simplistic keystore and will be easy to crack.
//
// The Base64 algorythm is a modification of the one used in phpjs.org
// * http://phpjs.org/functions/base64_encode/