$ 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
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| user www-data; | |
| worker_processes 4; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
| /** | |
| * Copyright 2017 John Hurliman <jhurliman.org> | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: | |
| * |
| # create an account, create an app | |
| # @see https://apps.twitter.com/ | |
| # retrieve the access tokens | |
| # @see https://dev.twitter.com/oauth/reference/post/oauth2/token | |
| # create the file ~/twitter_api | |
| nano ~/twitter_api | |
| Authorization: OAuth oauth_consumer_key="XXXXXX", oauth_nonce="11111111", oauth_signature="XXXXXX", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1450728725", oauth_token="99999-XXXXXX", oauth_version="1.0" |
$ wget -e robots=off -r -np 'http://example.com/folder/'
| import sys, getopt | |
| import tensorflow as tf | |
| usage_str = 'python tensorflow_rename_variables.py --checkpoint_dir=path/to/dir/ ' \ | |
| '--replace_from=substr --replace_to=substr --add_prefix=abc --dry_run' | |
| def rename(checkpoint_dir, replace_from, replace_to, add_prefix, dry_run): | |
| checkpoint = tf.train.get_checkpoint_state(checkpoint_dir) |
| Latency Comparison Numbers Simplified (~2012) | |
| ---------------------------------- log2 log10 | |
| L1 cache reference 0 0 ~ 1 ns | |
| Branch mispredict 3 1 | |
| L2 cache reference 4 1 | |
| Mutex lock/unlock 6 2 | |
| Main memory reference 8 2 | |
| Compress 1K bytes with Zippy 13 4 | |
| Send 1K bytes over 1 Gbps network 14 4 | |
| Read 4K randomly from SSD* 18 5 |
https://gist.github.com/search?q=user%3A%40me&ref=searchresults
Uses @me to refer to itself in the gist search query.
Type this into Github Gist Search (https://gist.github.com/)
user:BoQsc your search query
| import time | |
| from random import randrange | |
| from multiprocessing.pool import ThreadPool | |
| from tqdm import tqdm | |
| def func_call(position, total): | |
| text = 'progressbar #{position}'.format(position=position) |