This file contains hidden or 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
| #!/bin/bash | |
| # Configuration | |
| # Run IBeam (https://github.com/Voyz/ibeam) on the same host to keep the Client Portal Gateway logged in | |
| API_BASE="https://localhost:5000/v1/api" | |
| CURL_OPTS="-sk -X GET" | |
| POST_OPTS="-sk -X POST" | |
| # Set locale to ensure printf uses commas for thousands separators | |
| export LC_NUMERIC=en_US.UTF-8 |
This file contains hidden or 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
| # Usage notes: | |
| # - Set env vars: | |
| # IBEAM_TWO_FA_HANDLER=CUSTOM_HANDLER | |
| # IBEAM_CUSTOM_TWO_FA_HANDLER=totp_handler.TOTPHandler | |
| # IBEAM_TOTP=otpauth://totp/...:...?secret=...&issuer=... | |
| # IBEAM_TWO_FA_EL_ID=ID@@xyz-field-silver-response | |
| # IBEAM_TWO_FA_INPUT_EL_ID=ID@@xyz-field-silver-response | |
| # - Place this file at project root and mount it to /srv/inputs/totp_handler.py. | |
| # - Quick test: `python -c "from totp_handler import TOTPHandler; print(TOTPHandler().get_two_fa_code())"` | |
| import base64 |
This file contains hidden or 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
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8> | |
| <title>Prebid Atomx example</title> | |
| <head> | |
| <body> |
This file contains hidden or 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
| /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | grep BSSID | awk '{print $2}' | sed "s/^\(.\):/0\1:/" | sed "s/:\(.\):/:0\1:/g" | sed "s/:\(.\):/:0\1:/g" | sed "s/:\(.\)$/:0\1/" | xargs -I{} echo 'curl -s http://www.google.com/loc/json -d '\''{"version":"1.1.0","request_address":true,"wifi_towers": [{"mac_address":"{}"}]}'\'' | awk -F\" '\''{print "{} = "$32" "$36", "$28", "$12}'\''' | $SHELL |
This file contains hidden or 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
| -2 0 1280 | |
| 0 -2 800 | |
| 0 0 1 | |
| 1 0 0 0 | |
| 640 640 0 | |
| 0.5 0.375 0 |