Skip to content

Instantly share code, notes, and snippets.

View h0tw1r3's full-sized avatar
🏝️
Living the dream

Jeffrey Clark h0tw1r3

🏝️
Living the dream
View GitHub Profile
@h0tw1r3
h0tw1r3 / sub-path redmine
Created November 9, 2011 19:34
config/environment.rb
Redmine::Utils::relative_url_root = "/redmine"
@h0tw1r3
h0tw1r3 / local_manifest.xml
Created July 29, 2012 23:31
Cyanogenmod 10 local_manifest for SGH-I717 build
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_samsung_msm8660-common" path="device/samsung/msm8660-common" />
<project name="h0tw1r3/android_device_samsung_quincyatt" path="device/samsung/quincyatt" />
<project name="h0tw1r3/android_device_samsung_quincy-common" path="device/samsung/quincy-common" />
<project name="h0tw1r3/android_kernel_samsung_msm8660-common" path="kernel/samsung/msm8660-common" revision="jb-test" />
<project name="h0tw1r3/android_vendor_samsung_quincyatt" path="vendor/samsung/quincyatt" />
</manifest>
@h0tw1r3
h0tw1r3 / xcache.ini
Created July 31, 2012 16:59
Centos 5.8 xcache config for PHP 5.3.3
[xcache-common]
; change 'lib64' to 'lib' for 32bit
zend_extension = /usr/lib64/php/modules/xcache.so
[xcache]
xcache.shm_scheme = "mmap"
xcache.size = 64M
xcache.count = 1
xcache.slots = 8K
xcache.ttl = 3600
@h0tw1r3
h0tw1r3 / .gitconfig
Created September 21, 2012 04:03
My git config
[core]
excludesfile = ~/.gitexcludes
[alias]
co = checkout
pv = pull -v
unstage = reset HEAD --
amend = commit -a --amend
last = log -1 HEAD
st = status -s
dh = diff HEAD
@h0tw1r3
h0tw1r3 / rtc-i2c
Last active July 9, 2022 14:37
Initializing I2C RTC (DS3231) on Raspberry PI bootup with Systemd without recompiling the kernel or devicetree support.
# /etc/conf.d/rtc-i2c
#
# My chip is actually a ds3231n, but ds1307 driver works fine (ds3232 does not!)
#
CHIP="ds1307"
ADDRESS="0x68"
BUS="1"
@h0tw1r3
h0tw1r3 / install.sh
Last active August 29, 2015 14:00
Arch Linux for ARM setup
## Device specific stuff
# Wandboard
pacman -Sy uboot-wandboard
pacman -Sy firmware-imx
pacman -Sy firmware-brcm43xx
curl https://raw.githubusercontent.com/Freescale/meta-fsl-arm-extra/master/recipes-bsp/broadcom-nvram-config/files/wandboard/nvram.txt \
> /lib/firmware/brcmfmac-sdio.txt
ln -s /lib/firmware/brcmfmac4329-sdio.bin /lib/firmware/brcmfmac-sdio.bin
@h0tw1r3
h0tw1r3 / ifup-d.sh
Last active August 29, 2015 14:00
enom dynamic dns scripts for various net config systems
#!/bin/bash
#
# You must set a domain access password in the eNom control panel.
#
ENOMURL="http://dynamic.name-services.com"
if [ "$METHOD" = loopback ]; then
exit 0
fi
@h0tw1r3
h0tw1r3 / adblock.sh
Created May 29, 2014 18:21
DNS ad and malware block script for DNSmasq and pixelserv
#!/bin/ash
#
# DNS Ad/Malware blocker for Tomato/DD-Wrt based routers
#
# Requires: DNSmasq and Pixelserv
#
# Merges block lists:
# * Winhelp2002
# * Pgl Yoyo
# * Malware Domains
@h0tw1r3
h0tw1r3 / aria2.daemon
Last active April 16, 2024 22:30
Aria2c systemd service
continue
dir=/var/www/downloads
file-allocation=falloc
max-connection-per-server=4
max-concurrent-downloads=2
max-overall-download-limit=0
min-split-size=25M
rpc-allow-origin-all=true
rpc-secret=YouShouldChangeThis
input-file=/var/tmp/aria2c.session
@h0tw1r3
h0tw1r3 / createdb.php
Created September 21, 2014 23:41
Create db for phalcon invo demo
<?php
use \Phalcon\Db\Column as Column;
use \Phalcon\Db\Index as Index;
use \Phalcon\Db\Reference as Reference;
$config = new Phalcon\Config\Adapter\Ini(__DIR__ . '/../app/config/config.ini');
$connection = new \Phalcon\Db\Adapter\Pdo\Sqlite(array('name' => $config->database->name));