Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<style>
h1 {
font-family: Calibri;
}
</style>
</head>
<body>
<h1>Hello World!</h1>
# Hello World
This is content converted from Markdown!
Here's a JSON sample:
```json
{
"foo": "bar"
}
INFO 2018-10-30 14:54:39,614 [3253:MainThread] mopidy.__main__
Starting Mopidy 2.2.1
DEBUG 2018-10-30 14:54:39,626 [3253:MainThread] mopidy.ext
Loading entry point: musicbox_webclient = mopidy_musicbox_webclient:Extension
DEBUG 2018-10-30 14:54:39,628 [3253:MainThread] mopidy.ext
Loaded extension: Mopidy-MusicBox-Webclient 2.5.0
DEBUG 2018-10-30 14:54:39,629 [3253:MainThread] mopidy.ext
Loading entry point: spotify = mopidy_spotify:Extension
DEBUG 2018-10-30 14:54:39,630 [3253:MainThread] mopidy.ext
Loaded extension: Mopidy-Spotify 3.1.0
@memborsky
memborsky / gist:4234870
Last active October 13, 2015 18:07
Automate pianobar update process.
require 'rake'
flags = "CC=CC CFLAGS=\"-O2 -DNDEBUG\""
desc "Clean up"
task :clean do
puts "Cleaning..."
`#{flags} make clean`
end
@memborsky
memborsky / screenstream.sh
Created April 10, 2012 20:23
Streaming to justin.tv with ffmpeg in linux
#!/bin/sh -xe
INFO=$(xwininfo -frame)
API_KEY="YOUR_API_KEY_GOES_HERE"
WIN_GEO=$(echo $INFO | grep -oEe 'geometry [0-9]+x[0-9]+' | grep -oEe '[0-9]+x[0-9]+')
WIN_XY=$(echo $INFO | grep -oEe 'Corners:\s+\+[0-9]+\+[0-9]+' | grep -oEe '[0-9]+\+[0-9]+' | sed -e 's/\+/,/' )
FPS="15"
INRES='1680x1010'
@memborsky
memborsky / mp3_id3_reader.adb
Created November 18, 2011 19:52
Ada mp3 id3 tag reader
with Ada.Text_IO;
with Ada.Strings.Unbounded;
with Ada.Streams.Stream_IO;
with Ada.Command_Line;
with Ada.Streams;
use type Ada.Streams.Stream_IO.Count;
procedure mp3_id3_reader is