Skip to content

Instantly share code, notes, and snippets.

@daktak
daktak / wot_ccg_dice_ti83.txt
Created December 4, 2012 05:46
Wheel Of Time Card Game Dice Rolling Program for TI83 Calculators
\start83\
\comment=WOT CCG Dice Rolling Prog
\name=WOTDICE
\file=F:\WOTDICE.TXT
Lbl 0
ClrHome
0\->\Xmin
94\->\Xmax
1\->\Xscl
0\->\Ymin
@daktak
daktak / rc.lua
Last active December 10, 2015 20:48
awesome 3.5 rc.lua
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
@daktak
daktak / MAME-crc.py
Created January 16, 2013 22:32
Load your CRCs into MAME description for loading into RCB
#!/bin/env python
# This script adds the CRC values of your ROMs to the description file
# http://code.google.com/p/romcollectionbrowser/wiki/HowToAddMAMEOffline
# Use the linked MAME.txt to generate your custom description file for
# offline loading into http://code.google.com/p/romcollectionbrowser/
import os
import stat
import zlib
from time import gmtime, strftime
import argparse
@daktak
daktak / dvd2xvid_2pass.sh
Created January 17, 2013 00:52
2 Pass DVD to xvid
#! /bin/bash
## Usage: dvdiso2xvid_2pass.sh file.iso
## http://www.axllent.org/docs/video/mencoder_dvd_to_mpeg4
## http://www.axllent.org/uploads/files/divxcalc.html
## http://quadpoint.org/projects/simplerip
VBR=1000 ## higher, better quality
ABR=128 ## 96 recommended
for file in "$@"
@daktak
daktak / dvd2xvid.sh
Created January 17, 2013 00:54
Single pass DVD to xvid
#! /bin/bash
## Usage: dvdiso2xvid.sh file.iso
## http://www.howforge.com/how-to-encode-dvd-to-avi-using-mencoder
## http://forum.videohelp.com/threads/288190-(SOLVED)-Need-mencoder-help-certain-files-have-no-audio
for file in "$@"
do
bn=`basename "$file"`
NameNoExt=${bn%.*} ## no extension
mencoder dvd://1 -dvd-device "$bn" -oac mp3lame -lameopts mode=2:cbr:br=128:vol=0 -ovc xvid -xvidencopts bitrate=-1 -vf scale -zoom -xy 480 -o "$NameNoExt.avi"
@daktak
daktak / xbmc dvico Lircmap.xml
Created July 11, 2013 02:39
Dvico devinput XBMC lircmap
<!-- This file contains the mapping of LIRC keys to XBMC keys used in
Keymap.xml -->
<!--
-->
<!-- How to add remotes
-->
<!-- <remote device="name_Lirc_calls_the_remote">
-->
<!--
-->
@daktak
daktak / Xresources
Created July 11, 2013 02:48
color and font settings for xterm
! Use a nice truetype font and size by default...
xterm*faceName: DejaVu Sans Mono Book
xterm*faceSize: 11
! Every shell is a login shell by default (for inclusion of all necessary environment variables)
xterm*loginshell: true
! I like a LOT of scrollback...
xterm*savelines: 16384
@daktak
daktak / .screenrc
Last active December 30, 2018 22:39
screenrc
# set a big scrolling buffer
defscrollback 5000
# Set the caption on the bottom line
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c"
defutf8 on
termcapinfo xterm* ti@:te@
term xterm-256color
@daktak
daktak / BOPO.html
Created August 14, 2013 04:19
BoPoMoFo html table, lengthwise
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
<TITLE></TITLE>
<STYLE>
td { font-size:40px }
span { font-size:20px }
@daktak
daktak / .bashrc_colors
Last active December 21, 2015 06:48
.bashrc colors and kernel information
#------------------------------------------////
# Colors:
#------------------------------------------////
black='\e[0;30m'
blue='\e[0;34m'
green='\e[0;32m'
cyan='\e[0;36m'
red='\e[0;31m'
purple='\e[0;35m'
brown='\e[0;33m'