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
sudo iw wlan0 scan | grep -io '\(^bss [^(]*\)\|\(signal: [-.0-9]*\)' | sed -e :a -e '$!N; s/\n/ /; ta' | sed 's/\.[0-9]\+ BSS /;/g' | sed 's/ signal: /,/g' | sed 's/BSS //g; s/\.00//g' | base64 -w 0 | xargs -I{} curl -v "http://api.mylnikov.org/geolocation/wifi?v=1.1&data=open&search={}" |
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
/******************************* SOURCE LICENSE ********************************* | |
Copyright (c) 2018 MicroModeler. | |
A non-exclusive, nontransferable, perpetual, royalty-free license is granted to the Licensee to | |
use the following Information for academic, non-profit, or government-sponsored research purposes. | |
Use of the following Information under this License is restricted to NON-COMMERCIAL PURPOSES ONLY. | |
Commercial use of the following Information requires a separately executed written license agreement. | |
This Information is distributed WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
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
/******************************* SOURCE LICENSE ********************************* | |
Copyright (c) 2018 MicroModeler. | |
A non-exclusive, nontransferable, perpetual, royalty-free license is granted to the Licensee to | |
use the following Information for academic, non-profit, or government-sponsored research purposes. | |
Use of the following Information under this License is restricted to NON-COMMERCIAL PURPOSES ONLY. | |
Commercial use of the following Information requires a separately executed written license agreement. | |
This Information is distributed WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
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
/******************************* SOURCE LICENSE ********************************* | |
Copyright (c) 2018 MicroModeler. | |
A non-exclusive, nontransferable, perpetual, royalty-free license is granted to the Licensee to | |
use the following Information for academic, non-profit, or government-sponsored research purposes. | |
Use of the following Information under this License is restricted to NON-COMMERCIAL PURPOSES ONLY. | |
Commercial use of the following Information requires a separately executed written license agreement. | |
This Information is distributed WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
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
uint32_t bin2bcd(const uint16_t in) { | |
uint32_t out = 0; | |
for (uint8_t pos = 13; pos >= 0; pos--) { | |
if ((out & 0xF) >= 5) | |
out += 3; | |
if (((out & 0xF0) >> 4) >= 5) | |
out += (3 << 4); | |
if (((out & 0xF00) >> 8) >= 5) | |
out += (3 << 8); | |
out = (out << 1) | ((in >> pos) & 1); |
OlderNewer