Git Product home page Git Product logo

scripts's Introduction

Personal

(But not private. Do whatever you want with any of this)



Import zshrc

cp ~/.zshrc ~/.zshrc$(date +%Y%m%d%H%M%S%N).bak ; wget -O- -q "https://github.com/JJenkx/Personal/raw/main/.zshrc" >~/.zshrc ; exec zsh

Import scripts


scripts='https://raw.githubusercontent.com/JJenkx/Personal/main/.zshrcscripts='https://raw.githubusercontent.com/JJenkx/Personal/main/.zshrc
https://raw.githubusercontent.com/JJenkx/Personal/main/backupplasmadesktop.sh
https://raw.githubusercontent.com/JJenkx/Personal/main/CIDRtoIP.sh
https://raw.githubusercontent.com/JJenkx/Personal/main/convertwebp
https://raw.githubusercontent.com/JJenkx/Personal/main/gclone.sh
https://raw.githubusercontent.com/JJenkx/Personal/main/hwall
https://raw.githubusercontent.com/JJenkx/Personal/main/manx
https://raw.githubusercontent.com/JJenkx/Personal/main/mpv_randomwall
https://raw.githubusercontent.com/JJenkx/Personal/main/mpvhist
https://raw.githubusercontent.com/JJenkx/Personal/main/namekill
https://raw.githubusercontent.com/JJenkx/Personal/main/plex_dl
https://raw.githubusercontent.com/JJenkx/Personal/main/plex_dl_list
https://raw.githubusercontent.com/JJenkx/Personal/main/pw
https://raw.githubusercontent.com/JJenkx/Personal/main/randomplay
https://raw.githubusercontent.com/JJenkx/Personal/main/restoreplasmadesktop.sh
https://raw.githubusercontent.com/JJenkx/Personal/main/searchstackoverflowdatadump.sh
https://raw.githubusercontent.com/JJenkx/Personal/main/searchwikipedia.sh
https://raw.githubusercontent.com/JJenkx/Personal/main/timer
https://raw.githubusercontent.com/JJenkx/Personal/main/tts.sh
https://raw.githubusercontent.com/JJenkx/Personal/main/vwall'
cat<<< "$scripts" | parallel -j 8 wget -O $HOME/.local/scripts/{/} {}


Get random quotes from deadwood

All

printf '\n' ; perl -e 'srand; rand($.) < 1 && ( $line = $_ ) while <>; print $line' /home/jjenkx/Scripts/deadwood.txt | perl -p -e 's/    /\n\n/g' | fold -w 80 -s ; printf '\n'

Jane

printf '\n' ; perl -e 'srand; rand($.) < 1 && ( $line = $_ ) while <>; print $line' jane.deadwood.txt | perl -p -e 's/    /\n\n/g' | fold -w 80 -s ; printf '\n'



Convert CIDR IP Range to DNSCrypt format for InviZible Pro

Generate a list via autonomous system number (ASN) query

Facebook's ASN is AS32934

whois -h whois.radb.net -- '-i origin AS32934' | grep -ioP '^route:.*\s\K\d.*' | aggregate6 | perl -0777 -pe 's/\A(?!\n)|\n\Z(?<!\n)/\n/igm' >>Facebook.Instagram.CIDR.Notation.IPs.txt

credit https://stackoverflow.com/questions/16986879/bash-script-to-list-all-ips-in-prefix/22499574#22499574 for .sh script

chmod +x CIDRtoIP.sh
cat Facebook.Instagram.CIDR.Notation.IPs.txt | while IFS= read -r line ; do ./CIDRtoIP.sh "$line" >>completely.expanded.single.ips.txt; done
cat completely.expanded.single.ips.txt | perl -0777 -pe 's/^(\d+\.\d+\.\d+.)(0)(?:\1\d+|\n)+(?<=255)/$1*\n/gim' | perl -0777 -pe 's/(?<!\n)\n(?=\d)/\n\n/gim' >converted.to.dnscrypt.format.txt

The file with the properly formatted schema for "ip-blacklist.txt" will be "converted.to.dnscrypt.format.txt"


Backup InviZible Pro to a zip file.


Paste the contents from file "converted.to.dnscrypt.format.txt" into IZBackup.zip/app_data/dnscrypt-proxy/ip-blacklist.txt


Save zip file


Restore from zip

scripts's People

Contributors

jjenkx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.