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
| https://www.boring.co/pages/contact |
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
| # ignore files with no extention: | |
| * | |
| !*/ | |
| !*.* | |
| # normal ignores: | |
| *.exe | |
| nimcache | |
| *.pdb | |
| *.ilk |
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
| func PrintMemUsage() { | |
| var m runtime.MemStats | |
| runtime.ReadMemStats(&m) | |
| // For info on each, see: https://golang.org/pkg/runtime/#MemStats | |
| fmt.Printf("Alloc = %v MiB", bToMb(m.Alloc)) | |
| fmt.Printf("\tTotalAlloc = %v MiB", bToMb(m.TotalAlloc)) | |
| fmt.Printf("\tSys = %v MiB", bToMb(m.Sys)) | |
| fmt.Printf("\tNumGC = %v\n", m.NumGC) | |
| } |
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
| if path == "~" { | |
| // In case of "~", which won't be caught by the "else if" | |
| path = dir | |
| } else if strings.HasPrefix(path, "~/") { | |
| // Use strings.HasPrefix so we don't match paths like | |
| // "/something/~/something/" | |
| path = filepath.Join(dir, path[2:]) | |
| } |
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
| func orDone(done, c <-chan interface{}) <-chan interface{} { | |
| valStream := make(chan interface{}) | |
| go func() { | |
| defer close(valStream) | |
| for { | |
| select { | |
| case <-done: | |
| return | |
| case v, ok := <-c: | |
| if ok == false { |
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
| function isHidden(el) { | |
| if(el) return (el.offsetParent === null); | |
| else return false; | |
| } | |
| TotalUnfollowed = 0; | |
| var LoadingAnimation = document.getElementsByClassName("initial-load-animation")[0]; | |
| var CatchLoadingAnimation = setInterval(function(){ | |
| if(isHidden(LoadingAnimation) == true) { |
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
| // https://stackoverflow.com/a/56602780 | |
| package main | |
| import ( | |
| "context" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "time" |
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
| package main | |
| import ( | |
| "database/sql" | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "sync" | |
| "time" |
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 | |
| # Converter.sh by @xdavidhu | |
| # This is a script inspired by the Bug Hunter's Methodology 3 by @Jhaddix | |
| # With this script, you can convert domain lists to resolved IP lists without duplicates. | |
| # Usage: ./converter.sh [domain-list-file] [output-file] | |
| echo -e "[+] Converter.sh by @xdavidhu\n" | |
| if [ -z "$1" ] || [ -z "$2" ]; then | |
| echo "[!] Usage: ./converter.sh [domain-list-file] [output-file]" | |
| exit 1 |
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/sh | |
| # call with domaintoips.sh <domain> <list of subdomains.txt> | |
| ulimit -n 800000 | |
| while read -r domain; do dig +short $domain | grep -v '[[:alpha:]]' | sort -u >> $1-ipf.txt; done < $2 | |
| cat $1-ipf.txt | anew $1-ipz.txt |
NewerOlder