- root
- vpn server (can obtain any free openVPN from playstore)
- Using a VPN gateway will make tethered traffic to go through the VPN.
This file contains 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 | |
# source https://docs.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using#post-a-message-to-the-webhook-using-curl | |
URL="https://yourllc.webhook.office.com/webhookb2/uuid@tenant/IncomingWebhook/uuid" | |
MSG="$@" | |
# on macOS or Linux | |
curl -H 'Content-Type: application/json' -d "{\"text\": \"$MSG\"}" $URL |
This file contains 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
socat TCP4-LISTEN:9236,bind=0.0.0.0,fork SOCKS4A:localhost:your-onion.onion:80,socksport=9050 | |
#then visit server:9236 |
- Stop the docker daemon
sudo service docker stop
- Add a configuration file to tell the docker daemon what is the location of the data directory
Using your preferred text editor add a file named daemon.json under the directory /etc/docker. The file should have this content:
This file contains 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
/* Tested with these devices | |
Smartwatch: https://www.aliexpress.com/item/JUNWER-Graphene-ECG-Smart-Band-CK12-Heart-Rate-Monitor-Blood-Pressure-Monitoring-Smart-Wriatband-IP67-Waterproof/32824701799.html | |
Nokia Scale: https://www.amazon.com/Nokia-Body-Composition-Wi-Fi-Scale/dp/B071XW4C5Q | |
*/ | |
//list of GATT servicess (excluding incompatibles or not recognized) | |
const gattServices = [ | |
'alert_notification', | |
'automation_io', | |
'battery_service', |
sudo mount -t cifs -o username=myuser,password=mypasswd,rw,_netdev,vers=1.0 //host-ip-or-domain-name/share /mnt/share
This file contains 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 | |
# Script: my-pi-temp.sh | |
# Purpose: Display the ARM CPU and GPU temperature of Raspberry Pi 2/3 | |
# Author: Vivek Gite <www.cyberciti.biz> under GPL v2.x+ | |
# ------------------------------------------------------- | |
cpu=$(</sys/class/thermal/thermal_zone0/temp) | |
echo "$(date) @ $(hostname)" | |
echo "-------------------------------------------" | |
echo "GPU => $(/opt/vc/bin/vcgencmd measure_temp)" | |
echo "CPU => $((cpu/1000))'C" |
mkdir $HOME/espeak
cd ~/espeak
wget https://raspberry-pi.fr/download/espeak/mbrola3.0.1h_armhf.deb -O mbrola.deb
sudo dpkg -i mbrola.deb
sudo apt install mbrola-mx1 -y
espeak -a 200 -v mb-mx1 -s 150 "Pepe pecas pica papas" --stdout | aplay
This file contains 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
mail -s "test emai hashmail" ninjutsu756@mroldan.mx <<< 'This is a message' |
This file contains 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
``` | |
ffmpeg -i broken.mp4 -c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p working.mp4 | |
``` |
NewerOlder