Skip to content

Instantly share code, notes, and snippets.

View jprvita's full-sized avatar

João Paulo Rechi Vita jprvita

View GitHub Profile
#!/bin/sh
### BEGIN INIT INFO
# Provides: deluge-daemon
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Daemonized version of deluge and webui.
iface eth0 inet static
address 192.168.1.11
netmask 255.255.255.0
gateway 192.168.1.1
UUID=<your_partition_uuid> /mnt/hd ntfs-3g defaults 0 0
# Configuration for /etc/init.d/deluge-daemon
# The init.d script will only run if this variable non-empty.
DELUGED_USER="pi"
# Should we run at startup?
RUN_AT_STARTUP="YES"
[Name of your share]
comment = Description of your share
path = /path/to/your/hd/mountpoint
read only = no
create mask = 0660
directory mask = 0771
valid users = @users
force group = users
# Start watchdog at boot time? 0 or 1
run_watchdog=1
# Load module before starting watchdog
watchdog_module="bcm2708_wdog"
# Specify additional watchdog options here (see manpage).
@jprvita
jprvita / hardware-summary
Created June 16, 2015 22:47
d-i logs for dmraid failure
uname -a: Linux espero 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux
lspci -knn: 00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 0b)
lspci -knn: Subsystem: Acer Incorporated [ALI] Device [1025:0915]
lspci -knn: 00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b)
lspci -knn: Subsystem: Acer Incorporated [ALI] Device [1025:0915]
lspci -knn: 00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 0b)
lspci -knn: Subsystem: Acer Incorporated [ALI] Device [1025:0915]
lspci -knn: 00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC [8086:9c31] (rev 04)
lspci -knn: Subsystem: Acer Incorporated [ALI] Device [1025:0915]
lspci -knn: Kernel driver in use: xhci_hcd
@jprvita
jprvita / lsblk.txt
Created June 16, 2015 23:22
lsblk from Fedora live
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 119.2G 0 disk
└─md126 9:126 0 238.5G 0 raid0
├─md126p1 259:0 0 600M 0 md
├─md126p2 259:1 0 300M 0 md
├─md126p3 259:2 0 128M 0 md
├─md126p4 259:3 0 39.1G 0 md
├─md126p5 259:4 0 16G 0 md
├─md126p6 259:5 0 174.5G 0 md
└─md126p7 259:6 0 7.9G 0 md [SWAP]
@jprvita
jprvita / dsdt.dsl
Last active September 10, 2015 20:13
DSDT ASUS-E202SA
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20141107-64 [Dec 17 2014]
* Copyright (c) 2000 - 2014 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
* Disassembly of dsdt.dat, Tue Jul 21 11:27:17 2015
*
* Original Table Header:
$ DISPLAY=:2 xinput list-props 10
Device 'Elan Touchpad':
Device Enabled (142): 1
Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (272): 1
Device Accel Constant Deceleration (273): 2.500000
Device Accel Adaptive Deceleration (274): 1.000000
Device Accel Velocity Scaling (275): 12.500000
Synaptics Edges (276): 124, 2996, 92, 1624
Synaptics Finger (277): 25, 30, 0