This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function nextArticle(articles){ | |
| if(articles.length == 0) return(null); | |
| var date = new Date(); | |
| return(articles[date.getMinutes() % articles.length]); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name = WPA2-PEAP-MSCHARPv2 | |
| author = saidie | |
| version = 1 | |
| require identity *Username password *Password | |
| protected password *Password | |
| ----- | |
| ctrl_interface=/var/run/wpa_supplicant | |
| network={ | |
| ssid="$_ESSID" | |
| proto=RSN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GIT_BRANCH='`git branch 2> /dev/null | sed -e "/^[^*]/d" -e "s/^* \(.*\)$/(\1)/"`' | |
| PS1="[\u@\h \W$GIT_BRANCH]\$ " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main | |
| ( main | |
| ) where | |
| import Control.Monad (filterM) | |
| import Data.Maybe (fromJust) | |
| import Graphics.UI.Gtk | |
| import qualified Graphics.UI.Gtk.ModelView |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Fluentd | |
| Documentation=http://www.fluentd.org/ | |
| After=network.target | |
| [Service] | |
| Type=forking | |
| ExecStart=/usr/bin/fluentd -d /run/fluentd.pid | |
| PIDFile=/run/fluentd.pid | |
| Restart=on-failure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source "https://rubygems.org" | |
| gem "nokogiri" | |
| gem "open_uri_redirections" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun create-github-pull-request () | |
| (interactive) | |
| (let ((buffer (get-buffer-create "*hub pull-request*")) | |
| (cwd default-directory) | |
| (my-local-map (make-keymap))) | |
| (define-key my-local-map (kbd "C-c C-k") | |
| '(lambda () | |
| (interactive) | |
| (kill-buffer (current-buffer)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defun get-url-title (url) | |
| (interactive) | |
| (with-temp-buffer | |
| (call-process "curl" nil t nil "-s" url) | |
| (goto-char (point-min)) | |
| (let ((case-fold-search t)) | |
| (re-search-forward "<title>\\([^<]*\\)</title>" nil t) | |
| (match-string 1) | |
| ))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lsips () { | |
| aws ec2 describe-instances $@ --query "Reservations[].Instances[].PrivateIpAddress" | |
| } | |
| lsfilters () { | |
| lsips --filters $@ | |
| } | |
| lstag () { | |
| lsfilters "Name=tag-key,Values=$1" "Name=tag-value,Values=$2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| adb push hosts /data/local/tmp | |
| adb shell "su -c 'mount -orw,remount /system'" | |
| adb shell "su -c 'cp /data/local/tmp/hosts /system/etc/hosts'" | |
| adb shell "su -c 'mount -oro,remount /system'" |
OlderNewer