Skip to content

Instantly share code, notes, and snippets.

View b-yao's full-sized avatar

Brian Yáo b-yao

View GitHub Profile
#!/bin/bash
# Run as super user
date -s "$(curl -H'Cache-Control:no-cache' -sI google.com | grep '^Date:' | cut -d' ' -f3-6)Z"
@b-yao
b-yao / pac
Created February 7, 2018 01:49
function FindProxyForURL(url, host)
{
return "SOCKS 192.168.3.7:8080";
}

Keybase proof

I hereby claim:

  • I am b-yao on github.
  • I am brianyao (https://keybase.io/brianyao) on keybase.
  • I have a public key ASA4XRU8Ts_KJXPfBWXIsUosuQMSdD6JZRTvBjZSAhPvzwo

To claim this, I am signing this object:

@b-yao
b-yao / example.html
Last active November 9, 2015 11:45
Two ways to access service layer
<!-- by using mootools -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mootools/1.5.2/mootools-core-compat.js"></script>
<script>
var Call = new Request({
url: 'http://sl1.hackathon.studyportals.xyz/data/students/all/1337/'
});
Call.get();