Skip to content

Instantly share code, notes, and snippets.

View Oshuma's full-sized avatar

Dale Campbell Oshuma

View GitHub Profile
2013-12-29 21:53:24,532 DEBUG AI : AI_1 logger initialized.
2013-12-29 21:53:24,532 DEBUG AI : AIClientApp and logging initialized. Running app.
2013-12-29 21:53:24,532 DEBUG AI : PythonAI::PythonAI()
2013-12-29 21:53:24,546 DEBUG AI : Python initialized
2013-12-29 21:53:24,546 DEBUG AI : Python version: 2.7.5 (default, May 12 2013, 12:27:12)
[GCC 4.8.0 20130502 (prerelease)]
2013-12-29 21:53:24,546 DEBUG AI : Python prefix: /usr
2013-12-29 21:53:24,546 DEBUG AI : Python module search path: /usr/local/freeorion/lib/python2.7:/usr/local/freeorion/lib/python2.7/lib-dynload:/usr/lib/python27.zip:/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload
2013-12-29 21:53:24,546 DEBUG AI : Initializing C++ interfaces for Python
2013-12-29 21:53:24,645 DEBUG AI : Python stdout and stderr redirected
@Oshuma
Oshuma / .conkyrc
Last active December 29, 2015 09:59
#################
# Size & Position
#################
alignment top_right
gap_x 12
gap_y 36
maximum_width 350
minimum_size 200 200
gem list | cut -d ' ' -f 1 | xargs gem uninstall -aIx
package de.nerdno.rpc.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
@Oshuma
Oshuma / dma
Created May 8, 2012 00:41
dmesg |grep -i dma
$ dmesg | grep -i dma
(standard input):105:[ 0.000000] DMA 0x00000010 -> 0x00001000
(standard input):118:[ 0.000000] DMA zone: 32 pages used for memmap
(standard input):119:[ 0.000000] DMA zone: 0 pages reserved
(standard input):120:[ 0.000000] DMA zone: 3949 pages, LIFO batch:0
(standard input):473:[ 0.262679] pnp 00:04: [dma 4]
(standard input):619:[ 1.914246] ata1: SATA max UDMA/133 abar m1024@0xfeb4f000 port 0xfeb4f100 irq 19
(standard input):620:[ 1.914252] ata2: SATA max UDMA/133 abar m1024@0xfeb4f000 port 0xfeb4f180 irq 19
(standard input):621:[ 1.914258] ata3: SATA max UDMA/133 abar m1024@0xfeb4f000 port 0xfeb4f200 irq 19
#!/bin/sh
prev_dir=`pwd`
log_dir="/opt/workers/ios/nodelogger"
output="$HOME/mlogs/iphone_logs-`date +%Y%m%d-%H%M%S`.tar.gz"
cd $log_dir
echo -e "\nCompressing '$log_dir/logs' to $output"
<target
name="run"
description="Build and run the app on the default emulator."
depends="clean, debug, installd">
<property name="adb"
value="${sdk.dir}/platform-tools/adb" />
<property name="main.activity"
value="de.nerdno.android/de.nerdno.android.NerdNode" />
bind r source-file ~/.tmux.conf
bind k up-pane
bind j down-pane
bind s split-window -h
bind v split-window -v
set-option -g status-keys vi
@Oshuma
Oshuma / core_ext-irb.rb
Created April 29, 2011 18:02
Patch to IRB to allow a custom context.
module IRB
def IRB.parse_opts
# Don't touch ARGV, which belongs to the app which called this module.
end
def IRB.start_session(*args)
unless $irb
IRB.setup nil
end
UTF-8 encoded sample plain-text file
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
Markus Kuhn [ˈmaʳkʊs kuːn] <http://www.cl.cam.ac.uk/~mgk25/> — 2002-07-25
The ASCII compatible UTF-8 encoding used in this plain-text file
is defined in Unicode, ISO 10646-1, and RFC 2279.