Skip to content

Instantly share code, notes, and snippets.

@norrs
norrs / rom.txt
Created January 2, 2011 00:06
contents of rom.zip inside RRU htc hero
| Directory of C:\rom
02.01.2011 01:05 <DIR> .
02.01.2011 01:05 <DIR> ..
27.08.2009 09:57 237 android-info.txt
27.08.2009 11:00 1 781 760 boot.img
04.08.2009 19:47 524 288 hboot_7200A_1.76.0007_090804.nb0
27.08.2009 11:00 21 889 024 radio.img
27.08.2009 11:00 2 017 280 recovery.img
02.08.2009 04:00 307 200 splash1_Hero_320x480.nb0
C:\Program Files\Android\android-sdk-windows\tools>fastboot.exe boot C:\rom\reco
very.img
downloading 'boot.img'... FAILED (remote: not allow)
finished. total time: 0.002s
#!/usr/bin/perl
## dotkom kill, dkill.pl
## Roy Sindre Norangshol, <norangsh>
use Getopt::Std;
use strict;
use vars qw/ %opt /;
my $MAX_HOURS = 4;
@norrs
norrs / links.md
Created February 22, 2012 01:47
List over useful links etc
Test
Bind zone files:
Always fetch latest zonefile from files/ in dns::server module and put it in /tmp/
Always run named-checkzone on zonefile in /tmp/ , report with loglevel > info IF errors. Silent if not.
Copy zonefile from /tmp/ to bind directory where it should be if no complaints from named-checkzone
and refresh zonefile with rndc reload.
Problem with loglevel => info :
@norrs
norrs / server.pp
Created February 25, 2012 03:19
Ugly ugly ugly ugly hacks on puppet
define zonefile() {
if $name!="" and $name!="," {
file { "tmp.db.$name":
path => "/tmp/$title",
owner => "bind",
group => "bind",
mode => "0644",
source => "puppet:///modules/dns/db.$title",
require => File["/etc/bind/db.d"],
Feb 28 03:20:44 fernet kernel: [2471192.348623] ------------[ cut here ]------------
Feb 28 03:20:44 fernet kernel: [2471192.348636] WARNING: at /build/buildd-linux-2.6_2.6.32-41-amd64-ReqhZF/linux-2.6-2.6.32/debian/build/source_amd64_none/fs/fs-writeback.c:588 writeback_inodes_wb+0x36b/0x4ff()
Feb 28 03:20:44 fernet kernel: [2471192.348642] Hardware name: System Product Name
Feb 28 03:20:44 fernet kernel: [2471192.348645] Modules linked in: tun xt_multiport iptable_filter ip_tables x_tables nfsd nfs lockd fscache nfs_acl auth_rpcgss sunrpc ext3 jbd mbcache hwmon_vid loop firewire_sbp2 snd_hda_codec_analog snd_
hda_intel snd_hda_codec nouveau evdev psmouse snd_hwdep ttm drm_kms_helper snd_pcm snd_timer serio_raw parport_pc pcspkr drm parport edac_core i2c_algo_bit k8temp edac_mce_amd snd soundcore asus_atk0110 i2c_nforce2 snd_page_alloc i2c_core
button processor xfs exportfs raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx raid1 md_mod sd_mod crc_t10dif ohci_hcd ata_generic fir
stage { 'first' : before => Stage['main'] }
stage { 'bootstrap' : before => Stage['first'] }
stage { 'last' : require => Stage['main'] }
class bootstrap($release="squeeze") {
apt::source { "debian_${release}":
location => "http://debian.samfundet.no/debian/",
release => $release,
repos => "main contrib non-free",
required_packages => "debian-keyring debian-archive-keyring",
How to pin bitlbee? Can't use origin nor an empty c= :(
absint:~# apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
990 http://debian.samfundet.no/debian/ squeeze/non-free i386 Packages
release v=6.0.4,o=Debian,a=stable,n=squeeze,l=Debian,c=non-free
origin debian.samfundet.no
990 http://debian.samfundet.no/debian/ squeeze/contrib i386 Packages