Skip to content

Instantly share code, notes, and snippets.

View charlienewey's full-sized avatar

Charles Newey charlienewey

View GitHub Profile
@dahoba
dahoba / rk68-manual-text.md
Last active February 17, 2024 01:12
RK68 manual in text

RK68 user manual ⌨️

conections

  • BT 5.1
  • USB-A 2.4GHz
  • Wired

BT connection wind

@willb
willb / backup-db.rb
Created August 29, 2012 21:00
Backup script for SQLite databases
#!/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 (willb@redhat.com)
# Public domain.
require 'sqlite3'
require 'fileutils'
@mathieue
mathieue / reverse.es
Created June 29, 2012 09:11
Simple apache read only reverse proxy on elasticsearch
<VirtualHost *:80>
ServerName es.yourhost.com
<Proxy balancer://main>
BalancerMember http://127.0.0.1:9200 max=1 retry=5
<Limit GET >
order deny,allow
deny from all
allow from 127.0.0.1