sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| KEYMAPOPTS="us us" | |
| HOSTNAMEOPTS="-n alpine" | |
| INTERFACESOPTS="auto lo | |
| iface lo inet loopback | |
| auto eth0 | |
| iface eth0 inet dhcp | |
| hostname alpine | |
| " | |
| TIMEZONEOPTS="-z UTC" |
| KEYMAPOPTS="us us" | |
| HOSTNAMEOPTS="-n alpine" | |
| INTERFACESOPTS="auto lo | |
| iface lo inet loopback | |
| auto eth0 | |
| iface eth0 inet dhcp | |
| hostname alpine | |
| " | |
| TIMEZONEOPTS="-z UTC" |
| # extraction pattern: ngram TAB year TAB match_count TAB volume_count NEWLINE | |
| # out: unique_ngram TAB sum(match_count) NEWLINE | |
| import re | |
| import os, sys, mmap | |
| from pathlib import Path | |
| from tqdm import tqdm | |
| from concurrent.futures import ThreadPoolExecutor | |
| abv = re.compile(r'^(([A-Z]\.){1,})(_|[^\w])') # A.B.C. |
| <?php | |
| error_reporting( error_reporting() & ~E_NOTICE ); // evil | |
| // config | |
| $enable_jsonp = false; | |
| $enable_native = false; | |
| $valid_url_regex = '/.*/'; | |
| // ############################################################################ |
| #!/usr/bin/env ruby | |
| icon_list = "alligator, anteater, armadillo, auroch, axolotl, badger, bat, beaver, buffalo, camel, chameleon, cheetah, chipmunk, chinchilla, chupacabra, cormorant, coyote, crow, dingo, dinosaur, dolphin, duck, dragon, elephant, ferret, fox, frog, giraffe, gopher, grizzly, hedgehog, hippo, hyena, jackal, ibex, ifrit, iguana, koala, kraken, lemur, leopard, liger, llama, manatee, mink, monkey, narwhal, nyan cat, orangutan, otter, panda, penguin, platypus, python, pumpkin, quagga, rabbit, raccoon, rhino, sheep, shrew, skunk, slow loris, squirrel, turtle, walrus, wolf, wolverine, wombat" | |
| for icon in icon_list.split ', ' do | |
| element = icon.sub ' ', '' | |
| `curl https://ssl.gstatic.com/docs/common/profile/#{element}_lg.png -o icons/#{element}.png` | |
| end |
| #!/usr/bin/python | |
| import curses, random | |
| screen = curses.initscr() | |
| width = screen.getmaxyx()[1] | |
| height = screen.getmaxyx()[0] | |
| size = width*height | |
| char = [" ", ".", ":", "^", "*", "x", "s", "S", "#", "$"] | |
| b = [] |