Deploys FreeBSD on a Hetzner cloud server
- A Hetzner Cloud API Token (Pass in via APIKEY)
- jq
- sshpass
Replace server_id variable with your hetzner server Id
" TODO: split up config into multiple files | |
" source $HOME/.config/nvim/vim-plug/plugins.vim | |
" source $HOME/.config/nvim/<category>/<sub-category-filename>.vim | |
" source $HOME/.config/nvim/<plug-config>/<plugin-name>.vim | |
set nocompatible | |
filetype off | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs |
0x8545
: Original 84
-> 85
0x08FF19
: Original 75
-> EB
0x1932C7
: Original 75
-> 74
(remove UNREGISTERED in title bar, so no need to use a license)<?php | |
function tinker(...$args) { | |
// Because there is no way of knowing what variable names | |
// the caller of this function used with the php run-time, | |
// we have to get clever. My solution is to peek at the | |
// stack trace, open up the file that called "tinker()" | |
// and parse out any variable names, so I can load | |
// them in the tinker shell and preserve their names. |
#!/bin/sh | |
: ${DIALOG_CANCEL=1} | |
IFS=" | |
" | |
UNITS="" | |
for dev in $(cat /dev/sndstat | fgrep '(play'); do | |
unit=$(echo $dev | sed s/^pcm// | sed 's/:.*//') | |
description=$(echo $dev | sed 's/.*<//' | sed 's/>.*//') |
By default when Nginx starts receiving a response from a FastCGI backend (such as PHP-FPM) it will buffer the response in memory before delivering it to the client. Any response larger than the set buffer size is saved to a temporary file on disk.
This process is outlined at the Nginx ngx_http_fastcgi_module page manual page.