Skip to content

Instantly share code, notes, and snippets.

View orubel's full-sized avatar
💭
API Research & Development

Owen Rubel orubel

💭
API Research & Development
View GitHub Profile
@orubel
orubel / gist:ea308cc361913b0dd5561c53f5749018
Created July 11, 2021 18:36
Raspberry Pi WIFI detect script (GROOVY)
#!/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)
"show": {
"METHOD":"GET",
"DESCRIPTION":"Get Person by ID",
"ROLES":{
"BATCH":["ROLE_ADMIN"],
"HOOK":["ROLE_ADMIN"]
},
"REQUEST": {
"permitAll":[],
"ROLE_ADMIN":["id"]
@orubel
orubel / gist:41437261b80cd2bba724890987fa1d14
Last active April 10, 2018 22:17
simple script for finding networks
# 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'
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
/* ****************************************************************************
* 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.
*****************************************************************************/