Skip to content

Instantly share code, notes, and snippets.

View zxshinxz's full-sized avatar

Andy (Yoon Yong) Shin zxshinxz

View GitHub Profile
module.exports = {
get: function (req, res) {
res.sendfile(req.path.substr(1));
},
_config: {
rest: false,
shortcuts: false
}
};
@zxshinxz
zxshinxz / Footer-Toggle:-Nightly.markdown
Created March 29, 2015 07:41
Footer Toggle: Nightly
@zxshinxz
zxshinxz / gitIgnore.sh
Last active August 29, 2015 14:22
apply new git ignore
// Making changes to .gitignore and make ignored files available locally
//change .gitignore and add commit everything before doing this
git rm -r --cached some-directory
git commit -m 'Remove the now ignored directory "some-directory"'
git push origin master
// After this normal workflow. Note ignored files are available locally.
git add .
git commit -m 'blar'
git push origin master
@zxshinxz
zxshinxz / fix local notification
Created September 26, 2015 13:25
fix local notification
change LocalNotification.java
both
/plugins/de.appplant.cordova.plugin.local-notification/src/android/LocalNotification.java
/platforms/android/src/de/appplant/cordova/plugin/localnotification/LocalNotification.java
private static synchronized void sendJavascript(final String js) {
if (!deviceready) {
eventQueue.add(js);
http://placehold.it/200x100
@zxshinxz
zxshinxz / gist:b3ab5130e2988fa56e8e
Created March 3, 2016 10:40
Ubunutu setup LocalTime
sudo apt-get update
sudo apt-get upgrade
export LANG="en_US"
export LC_ALL=$LANG.UTF-8
sudo dpkg-reconfigure locales
sudo dpkg-reconfigure tzdata
택배 배송추적 주소 URL 모음
사용하고 있는 택배사를 확인하신 후 아래 링크와 함께 마지막 '송장번호' 부분에 실제 송장번호를 대입하여 링크를 연결해 주시면 클릭 시 바로 배송추적이 가능한 주소입니다.
택배사의 홈페이지가 바뀌거나, 배송추적 주소가 변경되는 경우가 자주 있습니다.
조회가 되지 않는 택배사가 있을 경우 댓글 남겨 주시면 확인하여 알려 드리도록 하겠습니다.
[국내 업체]
우체국택배 http://service.epost.go.kr/trace.RetrieveRegiPrclDeliv.postal?sid1=송장번호
CJ대한통운택배 https://www.doortodoor.co.kr/parcel/doortodoor.do?fsp_action=PARC_ACT_002&fsp_cmd=retrieveInvNoACT&invc_no=송장번호
@zxshinxz
zxshinxz / gist:225731dd820ea660590c184df66df8a6
Created December 5, 2016 14:49
Right Click Enable script
function naver(q) {
void(z = q.body.appendChild(q.createElement('script')));
void(z.language = 'javascript');
void(z.type = 'text/javascript');
void(z.src = 'http://userscripts.org/scripts/source/61326.user.js');
}
function selfw(w) {
try {
naver(w.document);
@zxshinxz
zxshinxz / osx-for-hackers.sh
Created April 16, 2017 12:41 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@zxshinxz
zxshinxz / gist:4f9218f06880ef6ac8300fa1d465ccd3
Last active April 24, 2017 08:34
remove unwanted history from git
git clone --mirror git://example.com/some-big-repo.git
bfg --delete-files unwanted.file
git push