Skip to content

Instantly share code, notes, and snippets.

burningTyger

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
burningTyger / comile.sh
Created Aug 4, 2019
sqlite with icu support
View comile.sh
# 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>{selected.link || '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}
<li
class={`item ${i+1 === pos ? 'active':''}`}
value={t.link}
on:click={() => select(t)}
>{t.value}</li>
@burningTyger
burningTyger / README.md
Created Feb 20, 2018 — forked from chrislkeller/README.md
Displaying data from a flat JSON file on a Handlebars.js template file rendered with AJAX.
View README.md

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 {
//...
View README.md
@burningTyger
burningTyger / arch.sh
Last active Jun 24, 2019
Install Arch
View arch.sh
# This guide is based on https://wiki.archlinux.org/index.php/User:Altercation/Bullet_Proof_Arch_Install
# 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
# *
passwd
systemctl start sshd.service
@burningTyger
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 'https://rubygems.org'
# gem 'sequel'
# gem 'ruby-odbc' # for ODBC
require 'sequel'
@burningTyger
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
burningTyger / howto.md
Created Jul 13, 2016
How to update Cyanogenmod 13 with an internal SD card (encrypted)
View howto.md

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
burningTyger / docker.gogs.service.md
Last active Aug 13, 2016
Docker Gogs systemd script
View docker.gogs.service.md

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
[Unit]
Description=Gogs container
Requires=docker.service
Require=postgresql.service
You can’t perform that action at this time.