This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
// ==UserScript== | |
// @name MEGA.nz Ultimately Import | |
// @name:zh-TW MEGA.nz Ultimately Import / | |
// @name:zh-CN MEGA.nz Ultimately Import | |
// @namespace methusela | |
// @version 1.0 | |
// @description Bypass import limit on Mega Web client & remove warning about the space usage | |
// @author muneebwanee | |
// @match chrome-extension://bigefpfhnfcobdlfbedofhhaibnlghod/* | |
// @match http://mega.co.nz/* |
subfinder -d target.com -all -silent -t 10 | naabu -p "21,22,80,81,280,300,443,583,591,593,832,981,1010,1099,1311,2082,2087,2095,2096,2480,3000,3128,3333,4243,4444,4445,4567,4711,4712,4993,5000,5104,5108,5280,5281,5601,5800,6543,7000,7001,7002,7396,7474,8000,8001,8008,8009,8014,8042,8060,8069,8080,8081,8083,8088,8090,8091,8095,8118,8123,8172,8181,8222,8243,8280,8281,8333,8337,8443,8500,8530,8531,8834,8880,8887,8888,8983,9000,9001,9043,9060,9080,9090,9091,9092,9200,9443,9502,9800,9981,10000,10250,10443,11371,12043,12046,12443,15672,16080,17778,18091,18092,20720,28017,32000,55440,55672" -silent -nc | httprobe -prefer-https | xargs -P 10 -I @ bash -c "echo @ | gau" 2> /dev/null | grep -E "password|password\-reset|reset\-token|token\=" | anew -q urls.txt | |
xargs -a urls.txt -P 5 -I @ bash -c "curl -ks -L \"@\" -H \"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36\" | grep -iE \"enter password|new password|new\-password|confirm password|co |
1. Update all package system | |
sudo xbps-install -Suv | |
2. add non-free repo | |
sudo xbps-install -Rs void-repo-nonfree | |
3. Software & utilities | |
sudo xbps-install -Rs xdg-desktop-portal xdg-desktop-portal-gtk xdg-user-dirs xdg-user-dirs-gtk xdg-utils vlc pipewire libspa-bluetooth noto-fonts-cjk noto-fonts-emoji noto-fonts-ttf noto-fonts-ttf-extra libreoffice-writer libreoffice-calc libreoffice-impress rhythmbox neofetch ntfs-3g gimp inkscape lm_sensors wget udisks2 gvfs mtpfs gvfs-mtp gvfs-gphoto2 xtools WoeUSB xz unrar qt5-wayland nano ffmpeg Kooha handbrake inxi streamlink | |
4. Install chrome gnome, gnome menu For Gnome & extension |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
// Make sure you are pulling ALL your posts from the ghost API [No limit] | |
function LatestPost (props) { | |
const [ postNum, setPostNum] = useState(3); // Default number of posts dislplayed | |
function handleClick() { | |
setPostNum(prevPostNum => prevPostNum + 3) // 3 is the number of posts you want to load per click | |
} |
###################################### | |
# | |
# Termux bash.bashrc | |
# by brainf+ck | |
# | |
# Last modified: 2022/06/30 | |
# | |
###################################### | |
#### Global ########################## |
#!/bin/bash | |
# Backup Mysql DB, Wordpress (https://dutainformasi) | |
# Author Yusuf Ayuba (hello@yusufayuba.net) | |
#override endpoint aws amazone s3 with endpoint s3 kilatstorage | |
alias aws='aws --endpoint-url https://s3-id-jkt-1.kilatstorage.id' | |
# inisial variabel | |
tgl=$(date +'%H:%M:%S_%d-%m-%Y') | |
USER_DB="user_db" |
opkg update | |
opkg install tar | |
cd / | |
tar -cvpzf /mnt/data/rootfs.tar.gz --exclude=/mnt/data/rootfs.tar.gz --one-file-system / | |
tar -cvpzf /mnt/data/overlay.tar.gz --exclude=/mnt/data/overlay.tar.gz --one-file-system /overlay-boot/ | |
# if not full tar package just busybox tar | |
cat <<EOT >> /tmp/exclude.list | |
sys | |
tmp |
# progress bar with autosizing in text mode, works in the standard Windows command line interface too | |
# based on https://stackoverflow.com/a/34325723 | |
# alternative solution to https://gist.github.com/greenstick/b23e475d2bfdc3a82e34eaa1f6781ee4 without | |
# doing an subprocess (why even..?) | |
# | |
# modifications: | |
# - autosizing to console with, also works with Windows command line. | |
# - percent display has been made optional | |
# |