Skip to content

Instantly share code, notes, and snippets.

View alsemo's full-sized avatar

Ahmad Zulkarnain alsemo

  • Rantau, Malaysia
  • 07:08 (UTC +08:00)
View GitHub Profile
@alsemo
alsemo / dmesg
Created May 4, 2013 12:48
OpenBSD 5.3 amd64 dmesg for Lenovo Thinkpad X200
OpenBSD 5.3 (GENERIC.MP) #62: Tue Mar 12 18:21:20 MDT 2013
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2037059584 (1942MB)
avail mem = 1960398848 (1869MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version "6DET72WW (3.22 )" date 10/25/2012
bios0: LENOVO 745AU5L
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
@alsemo
alsemo / xorg.conf
Created April 28, 2013 14:32
My /etc/X11/xorg.conf for Lenovo Thinkpad X200.
# /etc/X11/xorg.conf Alsemo - Thinkpad X200
Section "ServerLayout"
Identifier "Thinkpad X200"
Screen 0 "Screen0" 0 0
#Screen 1 "Screen1" RightOf "Screen0"
InputDevice "Trackpoint" "CorePointer"
InputDevice "Keyboard" "CoreKeyboard"
EndSection
@alsemo
alsemo / dmesg
Created April 25, 2013 06:46
Lenovo Thinkpad X200 dmesg on OpenBSD 5.2 (amd64)
OpenBSD 5.2 (GENERIC.MP) #368: Wed Aug 1 10:04:49 MDT 2012
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 2037059584 (1942MB)
avail mem = 1960521728 (1869MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (68 entries)
bios0: vendor LENOVO version "6DET72WW (3.22 )" date 10/25/2012
bios0: LENOVO 745AU5L
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
@alsemo
alsemo / .scrotwm.conf
Created March 2, 2012 03:54
Simple ksh script to use Asus K43U keyboard shortcuts with spectrwm
# This is for asusfn.sh
program[asusaup] = /home/karl/asusfn.sh aup
program[asusadn] = /home/karl/asusfn.sh adn
program[asusamt] = /home/karl/asusfn.sh amt
# This is for asusfn.sh
bind[asusaup] = MOD+F12
bind[asusadn] = MOD+F11
bind[asusamt] = MOD+F10
@alsemo
alsemo / dmesg
Created November 30, 2011 05:17
OpenBSD 5.0 amd64 dmesg
OpenBSD 5.0 (GENERIC.MP) #63: Wed Aug 17 10:14:30 MDT 2011 [85/162]
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8165330944 (7787MB)
avail mem = 7933849600 (7566MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeafd0 (50 entries)
bios0: vendor American Megatrends Inc. version "217" date 11/08/2011
bios0: ASUSTeK Computer Inc. K43U
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
@alsemo
alsemo / fdisk
Created November 30, 2011 04:51
OpenBSD 5.0 fdisk
Disk: sd0 geometry: 60801/255/63 [976773168 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
-------------------------------------------------------------------------------
*0: 07 0 32 33 - 12 223 19 [ 2048: 204800 ] NTFS
1: 07 12 223 20 - 35304 195 27 [ 206848: 566964224 ] NTFS
2: A6 35304 195 28 - 60801 80 63 [ 567171072: 409602096 ] OpenBSD
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
@alsemo
alsemo / .scrotwm.conf
Created September 8, 2011 03:33
/usr/local/share/scrotwm/audioout.sh
# My scrotwm config
# Programs
program[swap_audio] = /usr/local/share/scrotwm/audioout.sh
# Key Bindings
bind[swap_audio] = MOD+Shift+a
@alsemo
alsemo / celcom3g.chat
Created September 5, 2011 09:32
/etc/ppp/peers/celcom3g.chat
ABORT "BUSY"
ABORT "NO CARRIER"
ABORT "ERROR"
ABORT "VOICE"
ABORT "NO DIALTONE"
SAY "Calling Celcom3G...\n"
"" AT
OK ATV1
OK ATE0
OK AT&F&D2&C1S0=0
@alsemo
alsemo / celcom3g
Created September 5, 2011 09:32
/etc/ppp/peers/celcom3g
/dev/ttyU2
debug
384000
noauth
noipdefault
ipcp-restart 10
ipcp-accept-local
ipcp-accept-remote
0.0.0.0:10.64.64.64
defaultroute
@alsemo
alsemo / .scrotwm.conf
Created August 25, 2011 07:37
~/.scrotwm.conf
# .scrotwm.conf Ahmad Zulkarnain - OpenBSD 4.8
# Change modkey to Mod4 (Windows key)
modkey = Mod4
# Status Bar
bar_font = -*-terminus-medium-*-*-*-*-*-*-*-*-*-*-*
#bar_action = conky
#bar_delay = 1
# Region