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
/* **************************************************************************** | |
* Copyright 2014 Owen Rubel | |
* BeAPI API Framework | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES | |
* OR CONDITIONS OF ANY KIND, either express or implied. | |
*****************************************************************************/ | |
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
pi@raspberrypi:~ $ ab -c 50 -n 1000 -H "Content-Type: application/json" -H"Authorization: Bearer u0s0t8jn1hi08gi8h26itpjq71629kg8" "http://localhost:8080/v0.1/person/show/2" | |
This is ApacheBench, Version 2.3 <$Revision: 1604373 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking localhost (be patient) | |
Completed 100 requests | |
Completed 200 requests | |
Completed 300 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
# manually update the devices for 'arp' list | |
sudo nmap -sP bottledwind-master | |
# find listening devices on your network | |
arp -a | sed 's/[()]//g' | sed 's/at //g' | awk '{print $1, $2, $3;}' | |
# modification of 'sudo iwlist wlan0 scan' | |
sudo iwlist wlan0 scanning | egrep 'Cell |ESSID|IEEE 802.11i/WPA2 Version 1|WPA Version 1|Group Cipher|Pairwise Ciphers|Authentication Suites' |
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
"show": { | |
"METHOD":"GET", | |
"DESCRIPTION":"Get Person by ID", | |
"ROLES":{ | |
"BATCH":["ROLE_ADMIN"], | |
"HOOK":["ROLE_ADMIN"] | |
}, | |
"REQUEST": { | |
"permitAll":[], | |
"ROLE_ADMIN":["id"] |
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
#!/usr/bin/env groovy | |
@Grab(group='commons-cli', module='commons-cli', version='1.4') | |
import groovy.json.JsonBuilder | |
class Main { | |
static main(args) { | |
CommandLineInterface cli = CommandLineInterface.INSTANCE | |
cli.parse(args) |