Skip to content

Instantly share code, notes, and snippets.

@jbergler
jbergler / test.kml
Last active December 23, 2017 03:48
test
<?xml version="1.0"?>
<rss xmlns:georss="http://www.georss.org/georss" version="2.0">
<channel>
<title>My GeoRSS feed</title>
<link>http://www.example.com</link>
<description>My posts enhanced with location info</description>
<language>en-us</language>
<item>
<title>@jbergler Shitty times with shitty people</title>
<description>&lt;a href='https://www.instagram.com/p/BQSzi_LDuD0'&gt;&lt;img src='https://instagram.fsnc1-1.fna.fbcdn.net/t51.2885-15/e35/16230958_1641475942815170_5298270586898743296_n.jpg' /&gt;&lt;/a&gt;</description>
@jbergler
jbergler / draw-map.R
Last active May 14, 2021 23:46
Mapping Google location history using InfluxDB & R
require(influxdb)
require(OpenStreetMap)
results <- influxdb_query(
'localhost', '8086', 'my-database', '', '',
'SELECT * FROM "data.google.location_history" WHERE time >= \'2013-09-01\' AND time < \'2017-01-01\''
)
map <- openmap(
c(51.40,-0.5),
@jbergler
jbergler / .gitignore
Last active April 9, 2024 19:49
Acestream on Mac
.vagrant
@jbergler
jbergler / README.md
Last active August 29, 2015 14:27 — forked from agnoster/README.md
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@jbergler
jbergler / README.md
Last active August 29, 2015 14:27 — forked from fujin/README.md

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

--- a/Makefile.in.old
+++ b/Makefile.in
@@ -59,6 +59,7 @@
ENT=@ENT@
XAUTH_PATH=@XAUTH_PATH@
LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@
+KEYCHAIN_LDFLAGS=@KEYCHAIN_LDFLAGS@
EXEEXT=@EXEEXT@
MANFMT=@MANFMT@
diff --git a/clientloop.c b/clientloop.c
index 59ad3a2..724acf4 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -313,6 +313,10 @@ client_x11_get_proto(const char *display, const char *xauth_path,
struct stat st;
u_int now;
+#if __APPLE__
+ int is_path_to_socket = 0;
@jbergler
jbergler / keybase.md
Created December 31, 2014 16:38
keybase proof

Keybase proof

I hereby claim:

  • I am jbergler on github.
  • I am jbergler (https://keybase.io/jbergler) on keybase.
  • I have a public key whose fingerprint is 96E2 DE2B 3AE9 9269 CE32 5E07 DB6B E344 84B1 4344

To claim this, I am signing this object:

/**
* initialization
*/
function initializeCastApi() {
var sessionRequest = new chrome.cast.SessionRequest(applicationID);
var apiConfig = new chrome.cast.ApiConfig(sessionRequest,sessionListener,receiverListener);
chrome.cast.initialize(apiConfig, onInitSuccess, onError);
};