This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.
cloud-init
is absolute cancer. Its code is horrible. It has no documentation at all.
It took me 5 fucking hours to figure out how to properly configure networking on recent
cloud-init
(Ubuntu 16.04 cloud image
) with local datasource.
It's not mentioned anywhere you need to provide dsmode: local
. (but only if you need network-config,
besides that everything is fine; someone below noted that -m
flag does the same thing, good to know) Of course nobody needs documentation for network-config
format
either. (cloudinit/net/__init__.py
is a protip, enjoy the feces dive)
Oh, and by the way - no, it's not possible to provide network-config
to uvt-kvm
without patching shit.
#!/bin/bash -e | |
# Test AWS credentials | |
if [ "$AWS_ACCESS_KEY_ID" == "" ] ; then | |
echo "Missing credentials"; | |
exit 1; | |
fi | |
# Find public IP of hostname | |
IP=`dig +short $1`; |
#!/bin/bash | |
# csvmove | |
# rearrange columns of a csv file read from stdin | |
# usage: csvmove column [column...] | |
# column arguments can be formatted like this: 1,3,3,7-10,32 | |
# any column can be repeated more than once or skipped | |
if (( ! $# )); then |
// Traverses an arbitrary struct and translates all stings it encounters | |
// | |
// I haven't seen an example for reflection traversing an arbitrary struct, so | |
// I want to share this with you. If you encounter any bugs or want to see | |
// another example please comment. | |
// | |
// The MIT License (MIT) | |
// | |
// Copyright (c) 2014 Heye Vöcking | |
// |
sudo yum -y install ttmkfdir | |
wget http://font.ubuntu.com/download/ubuntu-font-family-0.80.zip | |
mkdir /tmp/ubuntu-font-family-0.80 | |
unzip -j ubuntu-font-family-0.80.zip -d /tmp/ubuntu-font-family-0.80 | |
rm -f ubuntu-font-family-0.80.zip | |
sudo mkdir /usr/share/fonts/ubuntu | |
sudo mv /tmp/ubuntu-font-family-0.80/*.ttf /usr/share/fonts/ubuntu | |
rm -rf /tmp/ubuntu-font-family-0.80 | |
cd /usr/share/fonts/ubuntu | |
ttmkfdir > fonts.dir |
Base URL: https://www.google.com/speech-api/v1/recognize
It accepts POST
requests with voice file encoded in FLAC format, and query parameters for control.
client
The client's name you're connecting from. For spoofing purposes, let's use chromium
lang
Speech language, for example, ar-QA
for Qatari Arabic, or en-US
for U.S. English
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |