List, add or delete Wireguard peers. Also show client configuration for already added peers.
wg-peer [add|show <peer>|del <peer>|list]
where:
a[dd]
add a new peer
The headset pinout in some phones has changed, see the picture for the adapter you need to make to be able to use it |
sudo tc qdisc del dev enp4s0 root;sudo tc qdisc add dev enp4s0 root tbf rate 2000kbit limit 800kbit burst 800kbit |
# to gracefully restart apache2 in docker container | |
supervisorctl signal USR1 apache2 |
docker logs --tail 1000 docker-ahttpd-1 | grep 'sitemap-pt' | awk '{print $1}' | uniq | xargs -i sh -c 'echo -n "{} _ " && dig -x {} +short' | grep -i 'banRDNSHERE\|server\|seznam' | awk '{print $1}' | xargs -i iptables -I INPUT -s {} -j DROP |
Lexmark E460dn prints are very slow with the defuault PPD provided by Lexmark | |
Using the Generic PCL 5e Printer Foomatic/ljet4 solves the problem | |
Connection: socket://192.168.0.0:9100 |
operaNewPage = async function(browser) { | |
const browserPages = await browser.pages(); | |
//count pages | |
console.log((await browser.pages()).length); | |
const pageCount = (await browser.pages()).length; | |
const mainPage = (await browser.pages())[0]; | |
await mainPage.evaluate( function (){ | |
window.open('about:blank'); | |
}); |
./mountRPI.sh | |
// Make audio AC3 | |
ffmpeg -i input.mkv -acodec ac3 -vcodec copy -c:s copy -map 0 -analyzeduration 999999999 -probesize 999999999 ~/RPI/EXTERNAL/Tainies/output.mkv | |
// Make audio AC3 and remove Subs | |
ffmpeg -i input.mkv -acodec ac3 -vcodec copy -map 0 -map -0:s -analyzeduration 999999999 -probesize 999999999 ~/RPI/EXTERNAL/Tainies/output.mkv |
Replace slot=x | |
Replace ld ( LD not id ) with target logical disk | |
> hpacucli | |
> ctrl slot=2 show config detail | |
> ctrl slot=2 ld 1 modify size=max | |
> Warning: Extension may not be supported on certain operating systems. | |
Performing extension on these operating systems can cause data to | |
become inaccessible. See ACU documentation for details. Continue? |
#logging | |
logoutput: stdout | |
#debug: 1 | |
#server address specification | |
internal: 192.168.1.51 port = 1080 | |
external: eth0 | |
#server identities (not needed on solaris) | |
#user.privileged: root |