Skip to content

Instantly share code, notes, and snippets.

View off-by-some's full-sized avatar
🖥️
Turning puzzles into principles and questions into frameworks.

Cassidy Bridges off-by-some

🖥️
Turning puzzles into principles and questions into frameworks.
View GitHub Profile
@off-by-some
off-by-some / IAM Permissions List.md
Created June 9, 2020 16:40 — forked from mechcozmo/IAM Permissions List.md
A list of IAM permissions you can use in policy documents. Collected from the myriad of places Amazon hides them. (incomplete)

Update 7/28/2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

Steps:

  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section
@off-by-some
off-by-some / create_avd.md
Created March 13, 2020 02:47 — forked from hkhc/create_avd.md
Creating and launching Android emulator AVD properly

Creating AVD

avd_name=my_avd
api_level=23
abi=x86_64
tag=google_apis
device="Nexus 5" # list of available devices see below

${ANDROID_HOME}/tools/bin/avdmanager --verbose create avd --name ${avd_name} \
require 'rest_client'
require 'json'
a = `sox -d --norm -t .flac - silence -l 1 0 1% 1 6.0 1% rate 16k`
#a = `arecord -q -d 3 -c 1 -f S16_LE -r 22050 -t wav | flac - -f --totally-silent -o-`
r = RestClient.post 'https://www.google.com/speech-api/v1/recognize?lang=en-US', a,
:content_type => 'audio/x-flac; rate=16000'
if j = JSON.parse(r)
(p j; `espeak 'you said: #{j['hypotheses'].first['utterance']}'`)
end