Skip to content

Instantly share code, notes, and snippets.


Charles Newey charlienewey

View GitHub Profile
willb / backup-db.rb
Created Aug 29, 2012
Backup script for SQLite databases
View backup-db.rb
#!/usr/lib/env ruby
# Acquires a shared lock on a SQLite database file and copies it to a backup
# usage: backup-db.rb DBFILE.db BACKUPFILE.db
# author: William Benton (
# Public domain.
require 'sqlite3'
require 'fileutils'
mathieue /
Created Jun 29, 2012
Simple apache read only reverse proxy on elasticsearch
<VirtualHost *:80>
<Proxy balancer://main>
BalancerMember max=1 retry=5
<Limit GET >
order deny,allow
deny from all
allow from
You can’t perform that action at this time.