Skip to content

Instantly share code, notes, and snippets.

View tianyk's full-sized avatar
🏠
Working from home

keke tianyk

🏠
Working from home
View GitHub Profile
@tianyk
tianyk / embedded-file-viewer.md
Created March 10, 2020 11:08 — forked from tzmartin/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@tianyk
tianyk / update.sh
Created December 21, 2015 08:52
Git Update Hook
#!/bin/bash
# --- Command line
refname="$1"
oldrev="$2"
newrev="$3"
refex="$7"
branch=${refname#refs/heads/}
# Make a temp directory for writing the .jshintrc file