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
import requests | |
import json | |
for x in range(0,10): | |
# GET captcha id and answer | |
r = requests.get("http://127.0.0.1:3000/rest/captcha/") | |
data = r.json() |
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
:local newanimal [("lease status = ".[$leaseBound]." | ".[$"lease-hostname"]." | ".[$leaseActIP]." | ".[$leaseActMAC])] | |
/tool fetch "https://api.telegram.org/botAPIKEY/sendmessage\?chat_id=CHATID&text=Movement in the animal farm!%0a $newanimal" keep-result=no; | |
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
{ | |
/tool fetch url="http://myip.dnsomatic.com/" mode=http dst-path=mypublicip.txt | |
local ip [file get mypublicip.txt contents ] | |
put $ip | |
/tool fetch "https://api.telegram.org/<BOTAPI>/sendmessage\?chat_id=<CHATID>&text=Wan IP: $ip" keep-result=no; | |
} |
https://askubuntu.com/questions/730799/installing-firmware-b43-installer-offline
You need to install firmware-b43-installer.
If you do not have an alternative internet connection, do it this way.
If you installed bcmwl-kernel-source, then remove it.
sudo apt-get purge bcmwl-kernel-source
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
# install | |
sudo apt install -y conky | |
# foreground conky | |
$ export NETWORK_INTERFACE=eth0 | |
$ cat <<EOF > ~/.conkyrc | |
conky.config = { | |
use_spacer = 'left', | |
pad_percents = 3, | |
background = true, |
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
#!/usr/bin/python | |
import string, os, requests | |
allchars = string.ascii_letters | |
found = False | |
quit = False | |
dumpstr = "" | |
index = 1 | |
table="database()" |
Create a new repository, or reuse an existing one.
Generate a new SSH key:
ssh-keygen -t rsa -C "[email protected]"
Copy the contents of the file ~/.ssh/id_rsa.pub
to your SSH keys in your GitHub account settings (https://github.com/settings/keys).
Test SSH key:
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 rm -v /etc/X11/xorg.conf* |
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
# note: leave a seperate sudo terminal running and test if works eg. with sudo first | |
sudo apt update | |
sudo apt install libpam-u2f pamu2fcfg | |
mkdir -p ~/.config/Yubico | |
pamu2fcfg > ~/.config/Yubico/u2f_keys | |
# touch yubikey when flashing to associate | |
# edit /etc/pam.d/sud |
OlderNewer