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
for j in $(for i in $(sudo ufw status numbered | (grep -E '[0-9]+/(tc|ud)p' |awk -F"[][]" '{print $2}') ) ; do echo $i ; done | tac) ; do sudo ufw --force delete $j ; done |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.2/normalize.min.css" rel="stylesheet"> | |
<link href="/z1.css" rel="stylesheet"> | |
<title>Canvas</title> | |
</head> | |
<body> |
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 | |
# NOTE you need coreutils for this - `brew install coreutils` | |
MUSIC_DIR="/Volumes/Shared/iTunes/iTunes Media/Music" | |
COPY_TO_DIR="/Volumes/LABEOUF/MUSIC" | |
echo "this will erase everything in '$COPY_TO_DIR'." | |
while true; do | |
read -p "ok? [y/N] " yn |
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
(()=>{var a=document.querySelectorAll('.stream-item');for(var b=0;b<a.length;b++){var c=a[b];if(c.children[0]&&c.children[0].classList.contains('js-original-tweet')){var h=c.querySelector('.tweet-text').innerText,j=h.match(/ via @[a-z0-9_]+( #[a-z0-9_])*$/i);j&&(c.style.display='none')}}})(); |
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
// "wait for ready or just run immediately" function | |
import ready from 'ready' | |
// https://stackoverflow.com/a/21210643 | |
import queryMap from 'query-map' | |
const transitionQueryParam = '__dynamic' | |
ready(() => { | |
if(queryMap[transitionQueryParam] === '1') | |
return |
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
$ nix-shell -p rustup | |
this derivation will be built: | |
/nix/store/akk9d52ainbdvd8x9v9l34csl1hr8ilz-rustup-1.25.1.drv | |
building '/nix/store/akk9d52ainbdvd8x9v9l34csl1hr8ilz-rustup-1.25.1.drv'... | |
unpacking sources | |
unpacking source archive /nix/store/aba6g2cy03bs08i6np6kpj0y4dygya77-source | |
source root is source | |
Executing cargoSetupPostUnpackHook | |
unpacking source archive /nix/store/ajl6f5p85qmp396m9nndmpm7dbhli2nm-rustup-1.25.1-vendor.tar.gz |