Skip to content

Instantly share code, notes, and snippets.

burningTyger /
Created August 4, 2019 18:54
sqlite with icu support
# in order to have icu support in sqlite you need to enable it via compile options.
# install the icu dev package on your system and download the source files from sqlite
# unpack and enter the source dir
# on a mac I had to do this to compile:
brew install icu4c
CFLAGS=`-I/usr/local/opt/icu4c/include -O3 -DSQLITE_ENABLE_ICU` CPPFLAGS=`icu-config --cppflags` LDFLAGS=`-L/usr/local/opt/icu4c/lib icu-config --ldflags` ./configure
# I had to add the path to the icu libs
burningTyger / App.svelte
Last active February 20, 2019 23:13
<h1>{ || 'No selection'}</h1>
<div class="search">
<input bind:value={term} on:keydown={keydown} class="input" on:blur={() => options = []}>
<ul class="list">
{#each options as t,i}
class={`item ${i+1 === pos ? 'active':''}`}
on:click={() => select(t)}
burningTyger /
Created February 20, 2018 18:47 — forked from chrislkeller/
Displaying data from a flat JSON file on a Handlebars.js template file rendered with AJAX.

Demo: ajax-handlebars

This repo's location has changed.

class BaseModel extends Model {
static get allRelations() {
return '[' + Object.keys(this.relationMappings).join(',') + ']';
//And then inherit your models from that instead of Model.
class Person extends BaseModel {
burningTyger /
Created January 28, 2017 20:15 — forked from pnavarrc/
Jade Preview
burningTyger /
Last active February 3, 2023 01:52
Install Arch
# This guide is based on
# compare for more details on each step. It's a great guide and seems to get frequent updates.
# This guide has a few changes that helped me to get thew bootloader running
# Start up the Live USB/CD and enable SSH:
# set a password for root to enable ssh login
# *
systemctl start sshd.service
burningTyger / sequel_to_ms_access.rb
Created December 12, 2016 17:16 — forked from thinkAmi/sequel_to_ms_access.rb
Sequel: Connecting to Microsoft Access(*.accdb)
# Tested Environment
# Windows7 x64, MS Access2010/2013, sequel 4.11.0
# Gemfile
# source ''
# gem 'sequel'
# gem 'ruby-odbc' # for ODBC
require 'sequel'
burningTyger / notes.txt
Created August 13, 2016 11:32
Getting system clipboard access in vim in tmux in ssh
If you'd like to use `"*y` and `"*p` in neovim you have to make sure it works across the stack.
These steps are necessary:
* Have xsel installed
* enable `X11Forward` in your remote sshd.conf
* disable `X11Localhost` in the same file
Then restart your ssh connction with the -Y flag and make sure to restart tmux otherwise you might get errors because $DISPLAY might not yet be set.
burningTyger /
Created July 13, 2016 16:06
How to update Cyanogenmod 13 with an internal SD card (encrypted)

My tablet runs the latest nightly of cm-13 and twrp. However, a bug in twrp doesn't let me update cm nightlies. So wherever I try to story my nightly I can't access it from twrp. Root doesn't work either for some reason so I'm stuck with a tablet that runs cm-13 but without updates.

After investing some time I tried connecting the tablet to a laptop while in recovery mode. Plugged in a USB cable on both sides and voila I had access to a twrp folder which was also mounted in recovery mode. Copied my cm-13 file there and was successfully able to install the nightly.

Connecting a USB thumb drive didn't work either btw.

burningTyger /
Last active August 13, 2016 16:39
Docker Gogs systemd script

Starting Gogs as a Docker container on startup via systemd

Gogs is that great Github clone which is also available as a docker image. Works perfectly if started by the user but since you probably want to run it on your server and without interruption you can add a systemd script to start up Gogs on boot. My script looks like this:

# /etc/systemd/system/docker.gogs.service
Description=Gogs container