Skip to content

Instantly share code, notes, and snippets.

schemacs / app.rb
Last active August 29, 2015 13:56 — forked from troelskn/app.rb
require 'gollum/app'
require 'digest/sha1'
class App < Precious::App
User =, :email, :password_hash, :can_write)
before { authenticate! }
before /^\/(edit|create|delete|livepreview|revert)/ do authorize_write! ; end
helpers do

Howto build a rust compiler for the Raspberry Pi on Debian 7.1 (wheezy)

# additional information:
sudo apt-get install -y file curl wget git build-essential python-dev
test `uname -m` = x86_64 && sudo apt-get install -y ia32-libs
git clone
export PATH=$PWD/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH
git clone
cd rust

./configure --target=arm-unknown-linux-gnueabihf

schemacs /
Created April 15, 2016 07:02 — forked from rduplain/
Connect to MSSQL using FreeTDS / ODBC in Python.

Goal: Connect to MSSQL using FreeTDS / ODBC in Python.

Host: Ubuntu 11.10 x86_64


sudo apt-get install freetds-dev freetds-bin unixodbc-dev tdsodbc
pip install pyodbc sqlalchemy

In /etc/odbcinst.ini:

schemacs / cfdc.json
Created March 28, 2022 05:20 — forked from SukkaW/cfdc.json
JSON format data of Cloudflare Data Centers
"AMS": {
"name": "Amsterdam, Netherlands",
"cnName": "荷兰阿姆斯特丹"
"ATH": {
"name": "Athens, Greece",
"cnName": "希腊雅典"
"BCN": {