Skip to content

Instantly share code, notes, and snippets.

@schemacs
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 = Struct.new(:name, :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: http://stackoverflow.com/questions/19162072/installing-raspberry-pi-cross-compiler/19269715#19269715
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 https://github.com/raspberrypi/tools.git
export PATH=$PWD/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin:$PATH
git clone http://github.com/mozilla/rust.git
cd rust

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

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

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

Host: Ubuntu 11.10 x86_64

Install:

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

In /etc/odbcinst.ini:

@schemacs
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": {