Skip to content

Instantly share code, notes, and snippets.

@FeliciousX
FeliciousX / wpa_supplicant.conf
Created April 22, 2014 10:21
wpa_supplicant config file for Swinburne University of Technology Sarawak Campus wifi
network={
ssid="swinwifi"
key_mgmt=WPA-EAP
eap=TTLS
identity="yourID"
password="yourpassword"
ca_cert="/path/to/cert"
phase2="auth=PAP"
priority=2
}
@FeliciousX
FeliciousX / clone_all.sh
Last active August 29, 2015 14:04
git tips and tricks :3
for remote in `git branch -r`; do git branch ${remote:7} --track $remote; done
git fetch --all
git pull --all
@FeliciousX
FeliciousX / Arch.md
Last active August 25, 2019 07:26
Arch Linux Installation Checklist

Overall

Fresh installation of Arch Linux for development and uses Gnome as the Desktop Environment.

NOTE: Some things are specified towards my ASUS ROG G56JR laptop.

Steps

  1. Go through the beginner's guide
  2. Remember to mount your efi partition to /boot/efi
  3. When installing grub, remember to also install os-prober nd efibootmgr
@FeliciousX
FeliciousX / CSRF-HTTPDriver.js
Last active October 24, 2016 08:18
CycleJS Snippets
import {makeHTTPDriver} from '@cycle/http';
function makeCustomHTTPDriver( options ) {
const HTTPDriver = makeHTTPDriver( options );
const token = document.querySelector('meta[name=csrf-token]').getAttribute('content');
return function customHTTPDriver( sink$, streamAdapter ) {
const csrf_request$ = sink$.map(request => ({
...request,
headers: { 'X-CSRF-Token' : token }
@FeliciousX
FeliciousX / Undoable.js
Created September 22, 2016 07:06
Higher Order Components
function Undoable( Component ) {
return function( sources ) {
const component = Component( sources );
const add$ = component.state$ // component exposes the state$. Each new state$ is considered as an add action
.map( state => function( history ) {
const newHistory = history.clone(); // shallow clone. Should use immutable.js or something
newHistory.states.push( state );
newHistory.index = newHistory.states.length - 1;
@FeliciousX
FeliciousX / esnextbin.md
Last active January 9, 2017 03:38
superagent test

made with esnextbin

testing superagent 304 not modified

@FeliciousX
FeliciousX / esnextbin.md
Last active January 9, 2017 03:38
reactive programming streams
@FeliciousX
FeliciousX / esnextbin.md
Last active January 9, 2017 03:37
cyclejs for fun

made with esnextbin

toying with cyclejs and cycle/dom

@FeliciousX
FeliciousX / esnextbin.md
Last active January 9, 2017 04:12
xstream sampleCombine behavior

made with esnextbin

test behaviors...

sampleCombine behavior xs.combine behavior map + flatten behavior

Keybase proof

I hereby claim:

  • I am feliciousx on github.
  • I am feliciousx (https://keybase.io/feliciousx) on keybase.
  • I have a public key ASBSzZkxYx21lflFJmiSrzKi6vUFsYS67Je3Ol1pTaCoxAo

To claim this, I am signing this object: