Skip to content

Instantly share code, notes, and snippets.

CLANG (clang++):
tyson@tyson-VirtualBox:~/pistachio/user/apps/counter$ clang++ -v
Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2)
Target: i386-pc-linux-gnu
Thread model: posix
tyson@tyson-VirtualBox:~/pistachio/user/apps/counter$ clang++ -x c++ -I../../include -I../.. -I/usr/lib/gcc/i686-linux-gnu/4.8/include -fno-stack-protector -nostdinc -g -O2 -m32 -O2 -g -Wall -Wshadow -DLUA_COMPAT_ALL -std=c++11 -DINT_MAX -DUCHAR_MAX -Wno-conversion -fno-exceptions -c counter.cc -o counter.o
In file included from counter.cc:40:
In file included from ../../include/l4io.h:35:
int reg_pio_data_in_lba28( unsigned char dev, // device (0 or 1)
unsigned char cmd, // command register
int fr, // feature register
int sc, // sector count
int main (void) {
char *iEnvStatus[255];
InitHwDev();
iEnvStatus[CMD_RESULT] = (char*)WAITING;
iEnvStatus[ACTIVE_CMD] = GetPolledKbdLine();
printf(iEnvStatus[ACTIVE_CMD]);
@vmlemon
vmlemon / kashiru3.py
Created January 4, 2014 23:47
A broken, experimental "port" of Kashiru.py to Python 3.
#!/usr/bin/python
#from bs4 import BeautifulSoup #sudo easy_install beautifulsoup4
import sys
#Download CURL from http://www.confusedbycode.com/curl/, to use under Windows... (Tested with 64-bit version + Python 3.3.3 + Win8)
#If using the HTML slugs generated by this script in Chrome, please add this somewhere to the HTML file:
#<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
@vmlemon
vmlemon / kashiru.py
Last active December 24, 2015 12:19
#!/usr/bin/python
#from bs4 import BeautifulSoup #sudo easy_install beautifulsoup4
import sys
#Download CURL from http://www.confusedbycode.com/curl/, to use under Windows... (Tested with 64-bit version + Python 3.3.3 + Win8)
#If using the HTML slugs generated by this script in Chrome, please add this somewhere to the HTML file:
#<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.ui'
#
# Created: Wed Jun 19 13:29:18 2013
# by: pyside-uic 0.2.13 running on PySide 1.1.1
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
@vmlemon
vmlemon / gist:5777206
Created June 13, 2013 20:48
iDEN SIM App Files
~/usimtool.py s:3f00/7f31 printtree:3f00/7f31
/home/tyson/usimtool.py: using reader Gemalto PC Twin Reader 00 00
s:3f00/7f31 = 7f31 DF pins=1+2 18=83
printtree:3f00/7f31:3f00/7f31 = 7f31 DF pins=1+2 18=83
printtree:3f00/7f31:3f00/7f31/6f01[1] = 54616c6b47727020414c4c000100000000000001
printtree:3f00/7f31:3f00/7f31/6f01[2] = 0000000000000000000000000000000000000002
printtree:3f00/7f31:3f00/7f31/6f01[3] = 0000000000000000000000000000000000000003
printtree:3f00/7f31:3f00/7f31/6f01[4] = 0000000000000000000000000000000000000004
printtree:3f00/7f31:3f00/7f31/6f01[5] = 0000000000000000000000000000000000000005
printtree:3f00/7f31:3f00/7f31/6f01[6] = 0000000000000000000000000000000000000006
No. Time Source Destination Protocol Length
396 90.647910000 82.132.221.233 192.168.1.4 WTP+WSP 208 WSP Connect (0x01)
Frame 396: 208 bytes on wire (1664 bits), 208 bytes captured (1664 bits) on interface 0
Interface id: 0
Encapsulation type: Linux cooked-mode capture (25)
Arrival Time: May 26, 2013 12:42:54.674299000 BST
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1369568574.674299000 seconds
[Time delta from previous captured frame: 0.371763000 seconds]
bearerbox /etc/kannel/kannel.conf
2013-05-26 12:42:41 [16085] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2013-05-26 12:42:41 [16085] [0] WARNING: DLR: using default 'internal' for storage type.
2013-05-26 12:42:41 [16085] [0] INFO: DLR using storage type: internal
2013-05-26 12:42:41 [16085] [0] DEBUG: Kannel bearerbox version `svn-r5040'.
Build `May 26 2013 00:14:15', compiler `4.7.2'.
System Linux, release 3.5.0-28-generic, version #48-Ubuntu SMP Tue Apr 23 23:05:48 UTC 2013, machine i686.
Hostname tyson-HP-Compaq-2510p-Notebook-PC, IP 127.0.1.1.
Libxml version 2.8.0.
Using native malloc.
2013-05-26 12:42:41 [16085] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 16085.
2013-05-26 12:42:54 [16085] [6] DEBUG: datagram received
2013-05-26 12:42:54 [16085] [8] DEBUG: Did not find previous routing info for WDP, generating new
2013-05-26 12:42:54 [16085] [8] WARNING: Cannot route message, discard it