This file contains 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
egrep -o '^.*:[0-9]+' | sed -E 's/:([0-9]+)$/\n+\1/' | while read fname; do read lname; gedit "$fname" $lname; done |
This file contains 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
time ab -k -c 1000 -n 2000000 http://127.0.0.1:3000/ | |
This is ApacheBench, Version 2.3 <$Revision: 1807734 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient) | |
Completed 200000 requests | |
Completed 400000 requests | |
Completed 600000 requests | |
Completed 800000 requests |
This file contains 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
time ab -k -c 1000 -n 2000000 http://127.0.0.1:8080/ | |
This is ApacheBench, Version 2.3 <$Revision: 1807734 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient) | |
Completed 200000 requests | |
Completed 400000 requests | |
Completed 600000 requests | |
Completed 800000 requests |
This file contains 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
time ab -k -c 1000 -n 2000000 http://127.0.0.1:80/ | |
This is ApacheBench, Version 2.3 <$Revision: 1807734 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient) | |
Completed 200000 requests | |
Completed 400000 requests | |
Completed 600000 requests | |
Completed 800000 requests |
This file contains 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
POP {R4, R5, R6, R7, R8, PC} | |
BL #0xFFFB7C0C | |
TST R4, #0x20 | |
BNE #0xFFFFFFC0 | |
B #0xFFFFFFC8 | |
MOV R0, R5 | |
BL #0xFFFB1698 | |
CMP R0, #0 | |
BNE #0xFFFFFFC0 | |
B #0xFFFFFFD0 |
This file contains 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 "libkdump.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char **argv) { | |
// initialize libkdump | |
//Configure libkdump | |
libkdump_config_t config; | |
//get default config |
This file contains 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
def binsearch(commits): | |
if len(commits) == 1: | |
print commits[0] | |
else: | |
print commits[(len(commits)-1)/2] | |
answer = "" | |
while answer not in ["y", "n"]: | |
answer = raw_input("Working? [Y/N] ").lower() | |
if answer == "n": | |
binsearch(commits[(len(commits)+1)/2 : ]) |
This file contains 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
function dosubmit() | |
{ | |
if (getObj("Frm_Username").value == "") | |
{ | |
getObj("errmsg").innerHTML = "Username cannot be empty."; | |
getObj("myLayer").style.visibility = "visible" ; | |
return; | |
} | |
else | |
{ |
This file contains 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 <stdlib.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/inotify.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> |
This file contains 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 <FlexCAN.h> | |
#include <kinetis_flexcan.h> | |
int led = 13; | |
// create CAN object | |
FlexCAN CANReceiver(500000); | |
static CAN_message_t msg; | |
void setup() { | |
// init CAN bus |