This file contains 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
(custom-set-variables | |
'(org-archive-location nby/org-archive-pattern) | |
'(org-id-locations-file (convert-standard-filename | |
(nby/build-relative-path "db/org-id-locations.el"))) | |
'(org-reverse-note-order t) | |
'(org-capture-templates | |
'(("t" "TODO" entry (file (nby/path-join nby/org-base-directory nby/org-default-schedule-file)) | |
"* TODO %?\n%U\n%a\n %i" :clock-in nil :clock-resume t :prepend t) | |
("c" "CHECK" entry (file (nby/path-join nby/org-base-directory nby/org-default-schedule-file)) |
This file contains 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
global | |
maxconn 4096 | |
user haproxy | |
group haproxy | |
defaults | |
mode http | |
timeout connect 5000ms | |
timeout client 50000ms | |
timeout server 50000ms |
This file contains 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
# db/api.py | |
from qg.db import api as db_api | |
from qg.db import models | |
def get_session(*args, **kwargs): | |
return db_api.get_session(*args, **kwargs) | |
This file contains 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
poll [mailserver] protocol IMAP | |
user "jianing.yang" is jianing.yang here password '[password]' | |
options fetchall ssl mda "/usr/bin/procmail -f %F -d %T"; |
This file contains 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
PATH=/opt/uw-imap/bin:/usr/local/bin:/usr/bin:/bin | |
MAILDIR=$HOME/mailbox | |
LOGFILE=$HOME/.procmail.log | |
LOCKFILE=$HOME/.mail.lock | |
:0 :.me.lock | |
* ^To:\s+jianing.yang | |
| dmail +INBOX | |
:0 :.INBOX.lock |
This file contains 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
/* | |
* filename : burst.go | |
* created at : 2014-09-02 11:19:13 | |
* author : Jianing Yang <jianingy.yang@gmail.com> | |
*/ | |
package main | |
import ( | |
"flag" | |
"fmt" |
This file contains 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
def create_app(): | |
app = Flask(__name__) | |
# setup database | |
db_api.init() | |
# set app debug mode | |
app.debug = CONF.debug | |
# request context |
This file contains 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
(ns sqlcharts.core.layouts | |
(:require [clojure.string :as string] | |
[hiccup.page :refer :all] | |
[noir.validation :as vali])) | |
(defn navbar-top | |
[] | |
[:nav.navbar.navbar-default.navbar-static-top | |
[:div.container | |
[:div.navbar-header |
This file contains 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
;; An Example of Emacs Script | |
;; Find all kernel processes | |
(defmacro |> (x &rest funcs) | |
`(reduce #'(lambda (z f) (apply f (list z))) (list ,@funcs) :initial-value ,x)) | |
(|> (shell-command-to-string "ps awux") | |
#'(lambda (x) (split-string x "\n")) | |
#'(lambda (x) (mapcar 'split-string x)) | |
#'(lambda (x) (remove-if-not #'(lambda (x) (string-match "^\\[" (or (car (last x)) ""))) x)) |
This file contains 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 | |
if [ "`id -u`" != "0" ]; then | |
invoke-sudo.sh $0 $@ | |
fi | |
modprobe -r iwlmvm | |
#modprobe -r iwlwifi | |
#modprobe -r mac80211 | |
#modprobe -r cfg80211 |
OlderNewer