Skip to content

Instantly share code, notes, and snippets.

View sudoliyang's full-sized avatar
✍️
Write code, dream, and better future.

sudoliyang sudoliyang

✍️
Write code, dream, and better future.
  • Founder
  • Houston, TX
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sudoliyang on github.
  • I am sudoliyang (https://keybase.io/sudoliyang) on keybase.
  • I have a public key whose fingerprint is 37B6 FDF5 4D10 40B0 A34A 1782 19B1 1803 888A B4B8

To claim this, I am signing this object:

@sudoliyang
sudoliyang / base64toJPG.py
Last active August 18, 2018 01:17
base64toJPG.py
import base64
imgstring = "iVBORw0KGgoAAAANSUhEUgAAAm4AAAL2CAYAAAD4nRo9AAAMImlDQ1BJQ0MgUHJvZmlsZQAASImVlwdYU8kWx+eWJCQktEAEpITeBOlVeo1UqYKNkAQSSgyBoGJHFxVYCyoiWJFVEdtaAFlUxK4sgr0viKgo62LBhsqbJICu+8r3Jt/c+8uZM2f+Z+7c+e4AoBzFFokyURUAsoS54uhgP+bkxCQm6RFA4A8AMlBic3JEvlFRYfAfGLn/vby7KfMF16ylsf7Z/l+LKpeXwwEAiYKcws3hZEE+AgDuzBGJcwEg9EG70axcEWQiVAnUxVAgZGMpp8nZVcopcg6T+cRG+0NOBkCBymaL0wBQkupi5nHSYBylEsi2Qq5ACLkJsheHz+ZC/gx5XFbWTMjK5pDNU76Lk/a3mCmjMdnstFGW5yIrCgGCHFEme87/OR3/u2RlSkbGMIKVyheHREtzls5bxsxQKVMhXxCmRERCVoN8XcCV+Uv5CV8SEjfs/4GT4w/nDDAAQKlcdkAoZB3IhpKMON9h9mKLZX2hP5qUz49NkMdHheKZ0cPx0XxhZkTYcJwSPo81wlW8nMCYEZ9UQRALMnyGaIMglxU7HPNCniA+ArIS5Ps5GTGhw32f5/P9I0bHkkRLNcNnjoGsnJFcMONUcVC03B9z5gtYEcP2sFx+bIi8Lzadw5Zp0ISczsuZHDaih8sLCJTrwQp4wrhhnVipKNcveti/WpQZNeyPNfEyg6V2Q8htOXkxI337c+Fik+eCg3T2xCj5uLi6KDcqVq4NZ4Iw4A8CABNIYE0BM0E6ELT11feBkZYgwAZikAZ4wHrYMtIjQdYihNcYkA/+hMQDOaP9/GStPJAH7V9GrfKrNUiVtebJemSAJ5CzcG3cC/fAw+DVB1Z73BV3G+nHVB4ZlRhIDCCGEIOIFjMEBeIf4jIBB2aQCasYhMI7D2Yl1SAc0f4tDuEJoYPwiHCD0Em4A+LBY+gn+EeG36IJ
function take(){
document.getElementById("person_agree_terms").click();
document.getElementsByClassName("btn-default plus")[0].click();
document.getElementsByClassName("btn btn-lg ng-isolate-scope btn-primary")[0].click()
}
window.onload = take();
curl --data "idtype=@gm.kuas.edu.tw&username=your_student_id@gm.kuas.edu.tw&userpwd=your_password" http://172.16.61.253/cgi-bin/ace_web_auth.cgi
@sudoliyang
sudoliyang / multiple-deploy-keys-multiple-private-repos-github-ssh-config.md
Created November 12, 2016 19:09 — forked from gubatron/multiple-deploy-keys-multiple-private-repos-github-ssh-config.md
How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

Let's say alice is a github.com user, with 2 or more private repositories repoN. For this example we'll work with just two repositories named repo1 and repo2

https://github.com/alice/repo1

https://github.com/alice/repo2

You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers. You want to perform git pull origin master for example, and you want this to happen without asking for a password.