Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block burningTyger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
burningTyger /
Created Aug 4, 2019
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
View App.svelte
<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 Feb 20, 2018 — 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.

View basemodel.js
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 /
Last active Jun 24, 2019
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 Dec 12, 2016 — forked from thinkAmi/sequel_to_ms_access.rb
Sequel: Connecting to Microsoft Access(*.accdb)
View sequel_to_ms_access.rb
# 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 Aug 13, 2016
Getting system clipboard access in vim in tmux in ssh
View notes.txt
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 Jul 13, 2016
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 Aug 13, 2016
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
You can’t perform that action at this time.