This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# C | |
% ./8.out | |
4 1 x8r8g8b8 0 83 41 889 739 83 41 889 739 | |
# rc, message by python | |
% named-image.rc | |
close failed: [Errno 12] Invalid argument | |
5 1 x8r8g8b8 0 83 41 889 739 83 41 889 739 | |
% python named-image.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% ape/patch -p1 --verbose <../ruby-1.8.6-p230.patch | |
Hmm... Looks like a normal diff to me... | |
can't find file to patch at input line 3 | |
Perhaps you used the wrong -p or --strip option? | |
The text leading up to this was: | |
-------------------------- | |
|Only in ruby-1.8.6-p230: draw.rb | |
|diff ruby-1.8.6-p230-origin/file.c ruby-1.8.6-p230/file.c | |
-------------------------- | |
File to patch: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
term% ape/psh | |
$ make | |
cc -D_POSIX_SOURCE -D_BSD_EXTENSION -DPLAN9 -DT386 -DRUBY_EXPORT -I. -I. -c array.c | |
cc -D_POSIX_SOURCE -D_BSD_EXTENSION -DPLAN9 -DT386 -DRUBY_EXPORT -I. -I. -c bignum.c | |
cc -D_POSIX_SOURCE -D_BSD_EXTENSION -DPLAN9 -DT386 -DRUBY_EXPORT -I. -I. -c class.c | |
cc -D_POSIX_SOURCE -D_BSD_EXTENSION -DPLAN9 -DT386 -DRUBY_EXPORT -I. -I. -c compar.c | |
cc -D_POSIX_SOURCE -D_BSD_EXTENSION -DPLAN9 -DT386 -DRUBY_EXPORT -I. -I. -c dir.c | |
cc -D_POSIX_SOURCE -D_BSD_EXTENSION -DPLAN9 -DT386 -DRUBY_EXPORT -I. -I. -c dln.c | |
cc -D_POSIX_SOURCE -D_BSD_EXTENSION -DPLAN9 -DT386 -DRUBY_EXPORT -I. -I. -c enum.c | |
cc -D_POSIX_SOURCE -D_BSD_EXTENSION -DPLAN9 -DT386 -DRUBY_EXPORT -I. -I. -c error.c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ aplay -l | |
**** List of PLAYBACK Hardware Devices **** | |
card 0: Intel [HDA Intel], device 0: VT1708S Analog [VT1708S Analog] | |
Subdevices: 1/2 | |
Subdevice #0: subdevice #0 | |
Subdevice #1: subdevice #1 | |
card 0: Intel [HDA Intel], device 1: VT1708S Digital [VT1708S Digital] | |
Subdevices: 1/1 | |
Subdevice #0: subdevice #0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ irb --simple-prompt | |
>> module Connection; end | |
=> nil | |
>> module Redis | |
>> class Connection | |
>> end | |
>> end | |
=> nil | |
>> Redis::Connection.class | |
=> Class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir site | |
~$ cd site/ | |
~/site$ cat >index.html | |
<html> | |
<head> | |
<title>Home</title> | |
</head> | |
<body> | |
<h1>Home</title> | |
<p>Welcome to our site! We've already made several pages:</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
html { background:white; } | |
body { background:cyan; } | |
h1 { margin-top:50px; } | |
</style> | |
<p>hello</p> | |
<h1>I'm header!</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ lspci | |
00:00.0 Host bridge: Intel Corporation System Controller Hub (SCH Poulsbo) (rev 07) | |
00:02.0 VGA compatible controller: Intel Corporation System Controller Hub (SCH Poulsbo) Graphics Controller (rev 07) | |
00:1b.0 Audio device: Intel Corporation System Controller Hub (SCH Poulsbo) HD Audio Controller (rev 07) | |
00:1c.0 PCI bridge: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 1 (rev 07) | |
00:1c.1 PCI bridge: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 2 (rev 07) | |
00:1d.0 USB Controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #1 (rev 07) | |
00:1d.1 USB Controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #2 (rev 07) | |
00:1d.2 USB Controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #3 (rev 07) | |
00:1d.7 USB Controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB EHCI #1 (rev 07) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: example |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <X11/XKBlib.h> | |
int | |
main() | |
{ | |
char* displayName = ""; | |
int eventCode; | |
int errorReturn; | |
int major = XkbMajorVersion; |