# Outgoing
nc -v -u www.google.com 443
# Incoming
nc -v -u 1.1.1.1 443
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 | |
# Function to download file | |
download_file() { | |
url=$1 | |
file_name=$2 | |
if command -v wget > /dev/null; then | |
wget "$url" -O "$file_name" | |
elif command -v curl > /dev/null; then |
ip6tables -t mangle -I POSTROUTING -j HL --hl-set 65
iptables -t mangle -I POSTROUTING -j TTL --ttl-set 65
References
URL browser ASCII code ref https://www.w3schools.com/tags/ref_urlencode.ASP
const Str = require('@supercharge/strings')
- Use
curl
to get the JSON response for the latest release - Use
grep
to find the line containing file URL - Use
cut
andtr
to extract the URL - Use
wget
to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
Error Message
kresd -c /etc/knot-resolver/53/kresd.conf
[system] error: module 'kres_modules.http' not found:
no field package.preload['kres_modules.http']
no file '/usr/lib/knot-resolver/kres_modules/http.lua'
no file '/usr/lib/knot-resolver/kres_modules/http/init.lua'