Skip to content

Instantly share code, notes, and snippets.

View kidandcat's full-sized avatar
☀️
Looking for the place of sunrise

Hairok kidandcat

☀️
Looking for the place of sunrise
View GitHub Profile
package main
import (
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"log"
"os"
(()=>{S=String.fromCharCode,W=((...r)=>window[S(...r)]),em=(e=>(r=e[S(109,97,116,99,104)](/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi),r)),l=W(99,111,110,115,111,108,101)[S(108,111,103)],pt=(S=>{S&&l(S.join(" "))});for(var e,o=W(100,111,99,117,109,101,110,116)[S(99,114,101,97,116,101,84,114,101,101,87,97,108,107,101,114)](W(100,111,99,117,109,101,110,116)[S(98,111,100,121)],NodeFilter.SHOW_TEXT,null,!1);e=o.nextNode();)pt(em(e[S(116,101,120,116,67,111,110,116,101,110,116)]))})();
@kidandcat
kidandcat / prime.go
Last active May 30, 2018 10:25
go run prime.go NumberOfDigits
package main
import (
"fmt"
"os"
"strconv"
)
func main() {
// RSA-2048 is a decimal number of 617 digits
# Excluded commands to overwrite in PowerShell
$exclude = @("dir", "cd", "git", "node", "tsc", "magic", "npm", "code", "vsce", "set", "go", "jasmine", "flow", "parcel")
Set-PSReadlineKeyHandler -Key Tab -Function Complete
function bashFunc($cmd, $arg) {C:\windows\system32\bash.exe -c "sudo $cmd $arg"}
$MaximumFunctionCount = 30000
$pat = "^[a-zA-Z0-9\s]+$"
$cmds = bash -c "compgen -ac"
$ErrorActionPreference = "SilentlyContinue"
foreach ($c in $cmds) {