Mock server for testing using flask
License
MIT
Prepare
Install flask and requests to run this example.
#!/bin/bash | |
# start the gcloud command | |
# change the case of the command option | |
task=$(echo $1 | tr '[:upper:]' '[:lower:]') | |
# catch user input and check for validity | |
if [ $# -ne 2 ] | |
then | |
echo " " |
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666", GROUP="plugdev" #Acer | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev" #ASUS | |
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666", GROUP="plugdev" #Dell | |
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666", GROUP="plugdev" #Foxconn | |
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" #Fujitsu | |
SUBSYSTEM=="usb", ATTR{idVendor}=="04c5", MODE="0666", GROUP="plugdev" #Fujitsu Toshiba | |
SUBSYSTEM=="usb", ATTR{idVendor}=="091e", MODE="0666", GROUP="plugdev" #Garmin-Asus | |
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev" #Google | |
SUBSYSTEM=="usb", ATTR{idVendor}=="201E", MODE="0666", GROUP="plugdev" #Haier | |
SUBSYSTEM=="usb", ATTR{idVendor}=="109b", MODE="0666", GROUP="plugdev" #Hisense |
MIT
Install flask and requests to run this example.
#!/usr/bin/env bash | |
# how_wifi_clients.sh | |
# Shows MAC, IP address and any hostname info for all connected wifi devices | |
# written for openwrt 12.09 Attitude Adjustment | |
# modified by romano@rgtti.com from http://wiki.openwrt.org/doc/faq/faq.wireless#how.to.get.a.list.of.connected.clients | |
function mon () { | |
echo "# All connected wifi devices, with IP address," |
#!/usr/bin/env bash | |
set -e # Quit on first error | |
count=0 | |
for i in ./*/* | |
do | |
my_array["$count"]="$i" # Creates an array with the filenames | |
((++count)) # Increase the array index | |
echo ${my_array[@]} # Echo the contents of the array | |
done |
[ | |
{ | |
"metadata": { | |
"id": "850c6bb1-4a81-4f83-a81f-835d651a211c", | |
"publisherId": "Mikael.Angular-BeastCode", | |
"publisherDisplayName": "Mikael" | |
}, | |
"name": "Angular-BeastCode", | |
"publisher": "Mikael", | |
"version": "8.0.7" |