I hereby claim:
- I am kurotoshiro on github.
- I am kurotoshiro (https://keybase.io/kurotoshiro) on keybase.
- I have a public key ASDhae7zfGNhDbSg4PXshknP0Ek9ce_6SVY4GmLYkHIUoAo
To claim this, I am signing this object:
| -- vim: tabstop=2 shiftwidth=2 expandtab | |
| -- We almost always start by importing the wezterm module | |
| local wezterm = require 'wezterm' | |
| -- Define a lua table to hold _our_ module's functions | |
| local module = {} | |
| -- Returns a bool based on whether the host operating system's | |
| -- appearance is light or dark. | |
| function module.is_dark() |
I hereby claim:
To claim this, I am signing this object:
| # | |
| # INPUT - Logstash listens on port 8514 for these logs. | |
| # | |
| input { | |
| udp { | |
| port => "8514" | |
| type => "syslog-cisco" | |
| } | |
| # unicorn | |
| description "unicorn ruby app server" | |
| start on (local-filesystems and net-device-up IFACE=lo and runlevel [2345]) | |
| stop on runlevel [!2345] | |
| env WORKDIR=/data | |
| env PIDFILE=/data/tmp/pids/unicorn.pid | |
| env CFGFILE=/data/config/unicorn.rb |
# referecing: # https://www.digitalocean.com/community/tutorials/how-to-install-apache-kafka-on-ubuntu-14-04 # https://chongyaorobin.wordpress.com/2015/07/08/step-by-step-of-install-apache-kafka-on-ubuntu-standalone-mode/
$ sudo useradd kafka -m
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -aes256 -out ca.key 4096
openssl req -sha256 -new -x509 -days 3650 -key ca.key -out ca.crt
This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.
# Ensure system is in ship-shape.
aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev
| if RUBY_PLATFORM =~ /win32/ | |
| require 'Win32API' | |
| $win32_console_kbhit = Win32API.new("msvcrt", "_kbhit", [], 'I') | |
| def console_input_ready? | |
| $win32_console_kbhit.call != 0 | |
| end | |
| def nonblocking_stdin_gets | |
| sleep(0.1) until console_input_ready? | |
| $stdin.gets # don't bother to use getc, it also blocks until user hits <return> | |
| end |