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
| set-option -g base-index 1 | |
| set-option -g default-shell /bin/zsh |
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
| #!/usr/bin/env python | |
| # conding: utf-8 | |
| # | |
| # It works on Mac OS X only. | |
| # | |
| import os | |
| import time | |
| import pipes |
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
| # | |
| # install GNU Binutils | |
| # | |
| # cd /tmp | |
| # curl -O http://ftp.gnu.org/gnu/binutils/binutils-2.22.tar.gz | |
| # tar vxf binutils-2.22.tar.gz | |
| # cd binutils-2.22 | |
| # ./configure | |
| # sudo make install | |
| # |
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
| #!/bin/sh | |
| brew install nasm omake doxygen mercurial | |
| brew qemu --use-gcc |
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
| #define PCI_IOPORT_CONFIG_ADDRESS 0x0cf8 | |
| #define PCI_IOPORT_CONFIG_DATA 0x0cfc | |
| #define PCI_BUS_MAX 255 | |
| #define PCI_DEVICE_MAX 31 | |
| #define PCI_FUNC_MAX 7 | |
| #define PCI_CONFIGREG_VENDOR_AND_DEVICE_ID 0x00 | |
| #define PCI_CONFIGREG_INTERRUPT 0x3c | |
| typedef unsigned char u8; | |
| typedef unsigned short u16; |
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
| #define IOPORT_SERIALPORT_BASE 0x03f8 | |
| void serialport_sendString (const char* str){ | |
| unsigned int i; | |
| asm_out8(IOPORT_SERIALPORT_BASE+1, 0x00); | |
| asm_out8(IOPORT_SERIALPORT_BASE+3, 0x80); | |
| asm_out8(IOPORT_SERIALPORT_BASE+0, 0x03); |
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
| #!/bin/sh | |
| # | |
| # build the kernel and download linux-0.2.img from http://wiki.qemu.org/Testing | |
| # | |
| KERNEL_VERSION=3.3.2 | |
| qemu -hda linux-0.2.img -append "root=/dev/sda" -kernel linux-$KERNEL_VERSION/arch/i386/boot/bzImage |
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
| import pynotify | |
| pynotify.init("pynotify_test") | |
| n = pynotify.Notification("Hi!", "1\n2") | |
| n.show() |
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
| import twitter4j.*; | |
| import twitter4j.conf.*; | |
| import twitter4j.auth.*; | |
| public class Main{ | |
| public static void main(String[] args){ |
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 <stdlib.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdbool.h> | |
| #include <sys/socket.h> | |
| #include <sys/types.h> | |
| #include <netdb.h> | |
| #include <netinet/in.h> |