Skip to content

Instantly share code, notes, and snippets.

View andydvsn's full-sized avatar
😎
I may be slow to respond.

Andrew Davison andydvsn

😎
I may be slow to respond.
View GitHub Profile
@andydvsn
andydvsn / alsa.conf
Last active September 11, 2018 00:18
Sound Config on OpenFrame OS
#
# ALSA library configuration file
#
# pre-load the configuration files
@hooks [
{
func load
files [
@andydvsn
andydvsn / 3.18.2op4-fine
Last active September 10, 2018 19:59
alsa-info from kernels 3.18 and 4.14
upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.64
!!################################
!!Script ran on: Sun Sep 9 02:24:48 UTC 2018
!!Linux Distribution
!!------------------
diff -rupN linux-4.14.68/sound/pci/hda/patch_sigmatel.c linux-4.14.68-stac9202/sound/pci/hda/patch_sigmatel.c
--- linux-4.14.68/sound/pci/hda/patch_sigmatel.c 2018-09-05 08:26:42.000000000 +0100
+++ linux-4.14.68-stac9202/sound/pci/hda/patch_sigmatel.c 2018-09-05 15:12:43.000000000 +0100
@@ -60,6 +60,11 @@ enum {
};
enum {
+ STAC_9202_OPENPEAK,
+ STAC_9202_MODELS
+};
config wifi-device 'radio0'
option type 'mac80211'
option channel '11'
option hwmode '11g'
option path 'pci0000:00/0000:00:01.0'
option txpower '20'
option country 'GB'
option legacy_rates '1'
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0.1'
option proto 'static'
## This first bit is for OpenWrt
##
log-append /var/log/openvpn.log
status /var/log/openvpn-status.log
script-security 2
pull-filter ignore "redirect-gateway"
up "/etc/openvpn/tun-up"
down "/etc/openvpn/tun-down"
##
## The rest is the Streisand .ovpn config for OpenVPN.
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
option disable_ipv6 '1'
config zone
option name 'lan'
@andydvsn
andydvsn / dropbox
Created May 24, 2018 09:03 — forked from anonymous/dropbox
/etc/init.d/dropbox
#!/bin/sh
# To configure, add line with DROPBOX_USERS="user1 user2" to /etc/sysconfig/dropbox
# Probably should use a dropbox group in /etc/groups instead.
# Source function library.
. /etc/rc.d/init.d/functions
prog=dropboxd
lockfile=${LOCKFILE-/var/lock/subsys/$prog}
@andydvsn
andydvsn / dropbox.service
Last active May 24, 2018 09:03 — forked from anonymous/dropbox.service
dropbox.service
[Unit]
Description=Dropbox is a filesyncing sevice provided by dropbox.com. This service starts up the dropbox daemon.
After=network.target syslog.target
[Service]
Environment=LC_ALL=en_GB.utf8
Environment=LANG=en_GB.utf8
EnvironmentFile=-/etc/sysconfig/dropbox
ExecStart=/etc/init.d/dropbox start
ExecReload=/etc/init.d/dropbox restart