$ wget -e robots=off -r -np 'http://example.com/folder/'
- -e robots=off causes it to ignore robots.txt for that domain
- -r makes it recursive
- -np = no parents, so it doesn't follow links up to the parent folder
import m from "mithril" | |
import React, {useLayoutEffect, Component} from "react" | |
import ReactDOM from "react-dom" | |
// Bottom-up to Mithril, top-down to React | |
export function useMithril(ref, view) { | |
useLayoutEffect(() => { m.render(ref.current, view()) }) | |
useLayoutEffect(() => () => { m.render(ref.current, null) }, []) | |
} |
$ wget -e robots=off -r -np 'http://example.com/folder/'
#!/bin/sh | |
# | |
# The command should be run in the git repository root. | |
# It adds all symlinks to a .gitignore file that aren't in there already. | |
for f in $(git status --porcelain | grep '^??' | sed 's/^?? //'); do | |
if test -L "$f" | |
then | |
test -L "$f" && echo $f >> .gitignore; | |
elif test -d "$f" |