Skip to content

Instantly share code, notes, and snippets.

View lukasender's full-sized avatar
💭
💡👷‍♂️🌱

Lukas Ender lukasender

💭
💡👷‍♂️🌱
View GitHub Profile
@lukasender
lukasender / Simple-Test-WEBVTT.vtt
Last active June 26, 2020 06:46
Simple-Test-WEBVTT.vtt - WebVTT: The Web Video Text Tracks Format - https://www.w3.org/TR/webvtt1/
WEBVTT
00:01.000 --> 00:10.000
Never drink disinfectants.
00:11.000 --> 00:13.000
<v Roger Bingham>We are in New York City
00:13.000 --> 00:16.000
<v Roger Bingham>We’re actually at the Lucern Hotel, just down the street
@lukasender
lukasender / kill-coreaudiod.sh
Created February 18, 2020 13:10
macOS Catalina: Kill Audio Service "coreaudiod"
function killSound() {
# log coreaudiod process stats
ps aux | grep -e '^_coreaudiod.*/usr/sbin/coreaudiod$'
# grab the coreaudiod pid, and kill it.
sudo kill -9 $(ps aux | grep -e '^_coreaudiod.*/usr/sbin/coreaudiod$' | awk '{print $2}')
# wait until restarted
sleep 5
# log coreaudiod process stats again: verify process ID has changed
@lukasender
lukasender / keybase.md
Created February 8, 2020 11:58
keybase.md

Keybase proof

I hereby claim:

  • I am lukasender on github.
  • I am lukasender (https://keybase.io/lukasender) on keybase.
  • I have a public key ASC--2FYdwrR6g5qInaghRpdFzgsKdw4HEeUeelDpCcaUgo

To claim this, I am signing this object:

# Router example:
get "/", Redirector, external: "http://other-domain/"
# Test case:
test "route redirected to external route without path/query" do
conn = call(Router, :get, "/")
assert_redirected_to(conn, "http://other-domain/")

Keybase proof

I hereby claim:

  • I am lumannnn on github.
  • I am lui (https://keybase.io/lui) on keybase.
  • I have a public key ASBRgTQH4YZj2rKDacGjqTnoHT3BT5BglxGUln5xr4AMHwo

To claim this, I am signing this object:

@lukasender
lukasender / setup-buildout.sh
Last active August 29, 2015 14:27
~/.buildout/ setup for OS X
#!/bin/sh
mkdir -p ~/.buildout/{cache,eggs}
cat << EOF > ~/.buildout/default.cfg
[buildout]
eggs-directory = /Users/$(whoami)/.buildout/eggs
download-cache = /Users/$(whoami)/.buildout/cache
index = http://pypi.python.org/simple
EOF
@lukasender
lukasender / python-json-formatted-result
Created October 22, 2014 20:03
Pretty printed JSON formatted by JSON
{
"json": "+",
"python": "=",
"uber-awesome": true
}
@lukasender
lukasender / python-json-formatting
Created October 22, 2014 20:02
Use Python to quickly format JSON
echo '{ "json": "+", "python": "=", "uber-awesome": true }' | python -mjson.tool
@lukasender
lukasender / curl-example1-result
Created October 22, 2014 20:00
curl example. Standard use case result
{ "json": "is", "pretty": "awesome" }
@lukasender
lukasender / curl-example1
Created October 22, 2014 19:57
curl example. Standard use case
curl -v -H "Accept: application/json" -X GET -d http://localhost/api/app