Skip to content

Instantly share code, notes, and snippets.

root@host:~# nlbw -c show
Fam Host ( MAC ) Layer7 Conn. > Downld. ( > Pkts. ) Upload ( Pkts. )
IPv4 10.1.1.1 (00:00:00) other 277 0 B ( 0 ) 0 B ( 0 )
IPv4 10.1.2.1 (00:00:00) other 277 0 B ( 0 ) 0 B ( 0 )
IPv4 10.253.32.1 (00:00:00) other 17 0 B ( 0 ) 0 B ( 0 )
IPv4 192.168.1.1 (00:00:00) other 5 0 B ( 0 ) 0 B ( 0 )
IPv4 192.168.1.8 (11:22:33) ICMP 1.35 K 0 B ( 0 ) 0 B ( 0 )
IPv4 192.168.1.9 (22:33:44) ICMP 59 0 B ( 0 ) 0 B ( 0 )
IPv4 192.168.1.3 (00:11:11) ICMP 1 0 B ( 0 ) 0 B ( 0 )
IPv4 192.168.1.1 (00:00:00) IGMP 1 0 B ( 0 ) 0 B ( 0 )
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]
"Present"=dword:00000001
"HostName"=""
"LogFileName"="putty.log"
"LogType"=dword:00000000
"LogFileClash"=dword:ffffffff
"LogFlush"=dword:00000001
"SSHLogOmitPasswords"=dword:00000001
# Flush existing entries
ip6tables -F
# Allow ICMPv6 everywhere
ip6tables -A INPUT -p icmpv6 -j ACCEPT
ip6tables -I OUTPUT -p icmpv6 -j ACCEPT
ip6tables -I FORWARD -p icmpv6 -j ACCEPT
# Allow anything on the local loopback link
ip6tables -A INPUT -i lo -j ACCEPT
Decompressing..........done
CFE for WNR3500L version: v1.0.36
Build Date: Tue Aug 11 15:09:14 CST 2009
Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
Found a 8MB ST compatible serial flash
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 5.10.56.28
static float sensor1 = 99.99;
static int sensor2 = 88;
static int sensor3 = 77;
static char sprintfbuffer[15];
static char dtostrfbuffer[6];
static char mergedbuffer[15];
void setup() {
dtostrf(sensor1,5, 2, dtostrfbuffer);
@jmccrohan
jmccrohan / hardcode_6channel_audio.patch
Created May 27, 2012 20:21
Wine 1.3.25+ 5.1 Surround
--- a/dlls/winealsa.drv/mmdevdrv.c
+++ b/dlls/winealsa.drv/mmdevdrv.c
@@ -1372,7 +1372,7 @@ static HRESULT WINAPI AudioClient_IsForm
goto exit;
}
if(max > 8)
- max = 2;
+ max = 6;
if(fmt->nChannels > max){
hr = S_FALSE;
static float floatvar = 12345.67;
static char sprintfbuffer[2];
static char dtostrfbuffer1[2];
static char dtostrfbuffer2[2];
void setup() {
sprintf(sprintfbuffer,"%f", floatvar);
dtostrf(floatvar,8, 2, dtostrfbuffer1);
dtostrf(floatvar,8, 2, dtostrfbuffer2);
jmccrohan@lambda:~$ pyrit benchmark
Pyrit 0.4.0 (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+
Running benchmark (24345.1 PMKs/s)... -
Computed 24345.13 PMKs/s total.
#1: 'OpenCL-Device 'Juniper'': 23073.1 PMKs/s (RTT 2.8)
#2: 'CPU-Core (SSE2)': 808.9 PMKs/s (RTT 3.0)
#3: 'CPU-Core (SSE2)': 807.6 PMKs/s (RTT 3.0)
static float floatvar = 12345.67;
static char sprintfbuffer[15];
static char dtostrfbuffer[15];
void setup() {
sprintf(sprintfbuffer,"%f", floatvar);
dtostrf(floatvar,8, 2, dtostrfbuffer);
Serial.begin(9600);
Serial.print("sprintf: ");
@jmccrohan
jmccrohan / EtherShield_ntp.pde
Created November 5, 2011 17:58
Nanode NTP Test/Demo
/*
* Arduino ENC28J60 Ethernet shield NTP client
* With extra bits for nanode
*/
#define NANODE
#define DEBUG
// uses RTClib from Jeelabs to provide DateTime functions
// http://cafe.jeelabs.net/software/#index3h1