To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
| #!/bin/sh | |
| # | |
| # git autodeploy script when it matches the string "[deploy]" | |
| # | |
| # @author icyleaf <[email protected]> | |
| # @link http://icyleaf.com | |
| # @version 0.1 | |
| # | |
| # Usage: | |
| # 1. put this into the post-receive hook file itself below | 
| #!/bin/sh | |
| # | |
| # a simple way to parse shell script arguments | |
| # | |
| # please edit and use to your hearts content | |
| # | |
| ENVIRONMENT="dev" | 
| #!/bin/bash | |
| # https://gist.github.com/949831 | |
| # http://blog.carbonfive.com/2011/05/04/automated-ad-hoc-builds-using-xcode-4/ | |
| # command line OTA distribution references and examples | |
| # http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson | |
| # http://nachbaur.com/blog/building-ios-apps-for-over-the-air-adhoc-distribution | |
| # http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/ | |
| # http://www.neat.io/posts/2010/10/27/automated-ota-ios-app-distribution.html | 
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | 
| # coding: utf-8 | |
| # Original File: https://github.com/mojombo/jekyll/blob/master/lib/jekyll/migrators/wordpress.rb | |
| # Modified by Yu-Cheng Chuang <[email protected]> | |
| # Licensed under MIT License (same as the original file) | |
| # This version of wordpressdotcom.rb is compatible | |
| # with the real-world Wordpress.com export file, which: | |
| # | |
| # - Makes paragraphs (<p>) and line breaks (<br>) | 
| /* Debian specific configuration to work as a recursive resolver */ | |
| global { | |
| perm_cache = 2048; | |
| cache_dir = "/var/cache/pdnsd"; | |
| run_as = "pdnsd"; | |
| server_ip = any; // Use eth0 here if you want to allow other | |
| // machines on your network to query pdnsd. | |
| status_ctl = on; | |
| paranoid = off; | 
| # Configuration file for dircolors, a utility to help you set the | |
| # LS_COLORS environment variable used by GNU ls with the --color option. | |
| # Copyright (C) 1996, 1999-2010 Free Software Foundation, Inc. | |
| # Copying and distribution of this file, with or without modification, | |
| # are permitted provided the copyright notice and this notice are preserved. | |
| # The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the | |
| # slackware version of dircolors) are recognized but ignored. | |
| # Possibly useful emacs-lisp to show the colors: | |
| # (font-lock-add-keywords nil '(("38;5;\\([1-9][0-9]+\\)" (1 `(face (:background ,((lambda (c) (let* ((x (- (string-to-int c) 16)) (arr '("00" "5f" "87" "af" "d7" "ff")) (blue (mod x 6)) (green (mod (/ x 6) 6)) (red (mod (/ x 36) 6))) (if (> x 215) (let* ((z (- x 216)) (s (nth z '("08" "12" "1c" "26" "30" "3a" "44" "4e" "58" "62" "6c" "76" "80" "8a" "94" "9e" "a8" "b2" "bc" "c6" "d0" "da" "e4" "ee" "ff")))) (concat "#" s s s)) (concat "#" (nth red arr) (nth green arr) (nth blue arr))))) (match-stri | 
| # 適用於【鼠鬚管】0.9.13+ | |
| # 位置:~/Library/Rime/squirrel.custom.yaml | |
| # 用法:想要哪項生效,就刪去該行行首的#字符,但注意保留用於縮進的空格 | |
| patch: | |
| # us_keyboard_layout: true # 鍵盤選項:應用美式鍵盤佈局 | |
| # show_notifications_when: growl_is_running # 狀態通知,默認裝有Growl時顯示,也可設爲全開(always)全關(never) | |
| # style/horizontal: true # 候選窗横向顯示 | |
| # style/inline_preedit: false # 非內嵌編碼行 | |
| # style/font_face: "儷黑 Pro" # 我喜歡的字體名稱 | 
| import redis | |
| import threading | |
| class Listener(threading.Thread): | |
| def __init__(self, r, channels): | |
| threading.Thread.__init__(self) | |
| self.redis = r | |
| self.pubsub = self.redis.pubsub() | |
| self.pubsub.subscribe(channels) | |
To run this, you can try:
curl -ksO https://gist.githubusercontent.com/nicerobot/2697848/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh