Skip to content

Instantly share code, notes, and snippets.

@nmunson
nmunson / gist:5743582
Created June 9, 2013 13:41
Fix no sound after resume from suspend OpenElec 3.0.3 nvidia ION
mkdir -p /storage/.xbmc/addons/reviveaudio/sleep.d/
nano /storage/.xbmc/addons/reviveaudio/sleep.d/reviveaudio.power
# contents of reviveaudio.power below
#!/bin/sh
case "$1" in
resume)
# that defines the default primary output
@nmunson
nmunson / gist:4691794
Created February 1, 2013 14:58
.vimrc
set autoindent
set expandtab
set smarttab
set number
set hlsearch
set ignorecase
set smartcase
set nowrap
set showmode
set showcmd
@nmunson
nmunson / rc.local
Created November 4, 2012 14:58
XBMC box rc.local file for waking from suspend
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
@nmunson
nmunson / gist:1932224
Created February 28, 2012 12:24
Allow async calls locally and local cookies in Chrome
chrome.exe --enable-file-cookies --allow-file-access-from-files
@nmunson
nmunson / gist:1926540
Last active October 1, 2015 05:08
Sublime preferences
{
"font_size": 11,
"vintage_start_in_command_mode": true,
"word_wrap": false,
"tab_size": 2,
"translate_tabs_to_spaces": true,
"hot_exit": false,
"remember_open_files": false
}
set autoindent
set expandtab
set smarttab
set number
set hlsearch
set ignorecase
set smartcase
@nmunson
nmunson / .conkyrc
Created March 21, 2011 03:23
My setup for conky
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
@nmunson
nmunson / console.xml
Created April 8, 2015 02:56
Console2 config file
<?xml version="1.0"?>
<settings>
<console change_refresh="10" refresh="100" rows="25" columns="80" buffer_rows="5000" buffer_columns="0" shell="" init_dir="C:\" start_hidden="0" save_size="0">
<colors>
<color id="0" r="0" g="0" b="0"/>
<color id="1" r="0" g="0" b="128"/>
<color id="2" r="0" g="150" b="0"/>
<color id="3" r="0" g="150" b="150"/>
<color id="4" r="170" g="25" b="25"/>
<color id="5" r="128" g="0" b="128"/>
@nmunson
nmunson / gist:e78711b5d6dc9a17ee05
Created February 7, 2015 16:04
Fix for no sound after resume on OpenElec 5+, nvidia ion
1) Put http://pastebin.com/raw.php?i=PCrGz1rT in /storage/.config/xorg.conf and uncomment the ModeDebug option and reboot
2) touch /storage/.config/debug.xorg
3) curl https://dl.dropboxusercontent.com/u/8224157/OpenELEC-Ultra/nvidia-xconfig.x86_64 -o /storage/nvidia-xconfig.x86_64
4) chmod +x /storage/nvidia-xconfig.x86_64
5) /storage/nvidia-xconfig.x86_64 --extract-edids-from-file=/var/log/Xorg.0.log --extract-edids-output-file=/storage/.config/edid.bin
6) Comment out ModeDebug from /storage/.config/xorg.conf
7) rm /storage/.config/debug.xorg
8) Uncomment all the following lines with DFP-0:
Option "VertRefresh" "DFP-0: 23-60"
Option "HorizSync" "DFP-0: 25-100"