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
[unix_http_server] | |
file=/tmp/supervisor.sock ; path to your socket file | |
[supervisord] | |
logfile=/var/log/supervisord/supervisord.log ; supervisord log file | |
logfile_maxbytes=50MB ; maximum size of logfile before rotation | |
logfile_backups=10 ; number of backed up logfiles | |
loglevel=error ; info, debug, warn, trace | |
pidfile=/var/run/supervisord.pid ; pidfile location | |
nodaemon=false ; run supervisord as a daemon |
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/bash | |
# -------------------------------------------- | |
# Go installization script for ubuntu. | |
# Tested on 16.04 | |
# | |
# What it does: | |
# 1. Install go for the system | |
# 2. create GOPATH for the current user | |
# |
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
gzcat $LOGROOT/access.log.*.gz | goaccess -a |
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/bash | |
# ------------------------------------------- | |
# The purpose of this script is to help you | |
# setup a production server for RubyOnRails | |
# applications quickly. | |
# | |
# It will | |
# + install nginx, passenger, git, nodejs | |
# and RVM |
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
// ==UserScript== | |
// @name HN Search | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author kristopolous | |
// @author lowatt | |
// @match https://news.ycombinator.com/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Piao Tian Xiao Shuo | |
// @namespace http://www.piaotian.com/ | |
// @version 0.1 | |
// @match https://www.piaotian.com/* | |
// @match http://www.piaotian.com/* | |
// @match https://www.ptwxz.com/* | |
// @match http://www.piaotianw.com/* | |
// @grant none | |
// ==/UserScript== |
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
syntax on | |
call plug#begin('~/.vim/plugged') | |
Plug 'scrooloose/nerdtree' " file list | |
Plug 'majutsushi/tagbar' " show tags in a bar (functions etc) for easy browsing | |
Plug 'vim-airline/vim-airline' " make statusline awesome | |
Plug 'vim-airline/vim-airline-themes' " themes for statusline | |
Plug 'jonathanfilip/vim-lucius' " nice white colortheme | |
Plug 'davidhalter/jedi-vim' " jedi for python |
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
// ==UserScript== | |
// @name Hacker News highlighter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description none | |
// @author lpimem | |
// @match https://news.ycombinator.com/* | |
// @grant none | |
// ==/UserScript== |
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
#!/usr/bin/env bash | |
# Installation directory | |
DIR=$HOME/app | |
NVIM_URL_LINUX="https://github.com/neovim/neovim/releases/download/stable/nvim.appimage" | |
NVIM_URL_MACOS="https://github.com/neovim/neovim/releases/download/stable/nvim-macos.tar.gz" | |
mkdir -p ${DIR} | |
cd ${DIR} |
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
import json | |
import requests | |
class Aria2c: | |
''' | |
Example : | |
client = Aria2c('localhost', '6800') | |
# print server version |
OlderNewer