openssl genrsa -out server.key 2048
openssl req -new -x509 -key server.key -out server.pem -days 3650
; Sample supervisor config file. | |
[unix_http_server] | |
file=/tmp/supervisor.sock ; (the path to the socket file) | |
;chmod=0700 ; sockef file mode (default 0700) | |
;chown=nobody:nogroup ; socket file uid:gid owner | |
;username=user ; (default is no username (open server)) | |
;password=123 ; (default is no password (open server)) | |
;[inet_http_server] ; inet (TCP) server disabled by default |
[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 |
worker_processes auto; | |
events { | |
worker_connections 100000; | |
multi_accept on; | |
use epoll; | |
} | |
worker_rlimit_nofile 100000; | |
# echo 20000 > /writable-proc/sys/net/core/somaxconn |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"math/rand" | |
"os" | |
"strconv" | |
"time" | |
) |
mysql> select * from builds where id='1'; | |
*************************** 1. row *************************** | |
id: 1 | |
name: test1 | |
description: This is the redhat-6-4 test | |
custom_packages: http://test.net/builds/redhat/6/4/extra_packages | |
ssh_key: http://test.net/builds/id_rsa.pub | |
yum_repos: http://test.net/builds/redhat/6/extra_repos | |
postinstall: qq | |
os: redhat |
# The tmux config of Evan Pete Walsh >> epwalsh.com :: [email protected] | |
# | |
# Last Modified: 2016-07-10 13:49:20 | |
# Key bindings ----------------------------------------------------------- | |
# Resize pane with option + arrow keys | |
bind -n M-Left resize-pane -L 10 | |
bind -n M-Right resize-pane -R 10 | |
bind -n M-Down resize-pane -D 10 | |
bind -n M-Up resize-pane -U 10 |
#!/usr/bin/env bash | |
# Generate all non-control unicode characters up to the 3 byte range | |
# http://stackoverflow.com/questions/5517500/simple-shell-script-for-generating-hex-numbers-of-a-certain-range | |
# http://www.utf8-chartable.de/ | |
hex_range () { | |
from="$1" | |
to="$2" | |
for i in $(seq "$(printf "%d" "0x$from")" "$(printf "%d" "0x$to")"); do | |
printf "%02X\n" "$i" | |
done |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Getting Started using the Destiny 2 Api | |
An annotated guide to some of the public endpoints available for examining a user's | |
characters, items, and clan using the Destiny 2 API. You will need to use your api key for | |
this to work. Just insert it as a string where it says <my_api_key> in the beginning. | |
It is broken into four parts: | |
0: Imports, variables, and fixed parameters defined |