wget -mpck --html-extension --user-agent="" -e robots=off --wait 1 -P . www.foo.com- -m (Mirror) Turns on mirror-friendly settings like infinite recursion depth, timestamps, etc.
| I use the first | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 |
| #!/usr/bin/env bash | |
| # this can be useful when developing against a custom DNS server, or | |
| # for example, if you made a change to the DNS settings of a domain, and you | |
| # know the authoritative nameserver IP address for a domain, you could use this | |
| # to bypass the intermediate DNS cache, and apply an HTTP request using the new | |
| # DNS settings supplied by your specified (authoritative) nameserver | |
| curl --dns-servers <DNSIP,DNSIP> url.com |
| <?php | |
| /** | |
| * simple method to encrypt or decrypt a plain text string | |
| * initialization vector(IV) has to be the same when encrypting and decrypting | |
| * | |
| * @param string $action: can be 'encrypt' or 'decrypt' | |
| * @param string $string: string to encrypt or decrypt | |
| * | |
| * @return string | |
| */ |
| <?php | |
| /** | |
| * @param $baseUrl - non protected part of the URL including hostname, e.g. http://example.com | |
| * @param $path - protected path to the file, e.g. /downloads/myfile.zip | |
| * @param $secret - the shared secret with the nginx server. Keep this info secure!!! | |
| * @param $ttl - the number of seconds until this link expires | |
| * @param $userIp - ip of the user allowed to download | |
| * @return string | |
| */ |
| <?php | |
| $codes = [ | |
| 'ab' => 'Abkhazian', | |
| 'aa' => 'Afar', | |
| 'af' => 'Afrikaans', | |
| 'ak' => 'Akan', | |
| 'sq' => 'Albanian', | |
| 'am' => 'Amharic', | |
| 'ar' => 'Arabic', |
| <?php | |
| $url = 'http://google.com'; | |
| if ($argc > 1){ | |
| $url = $argv[1]; | |
| } | |
| $ch=curl_init(); | |
| // user credencial |
| ########################################################################### | |
| # | |
| ## @file database.py | |
| # | |
| ########################################################################### | |
| import sqlite3 | |
| ########################################################################### | |
| # |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| // TextEncoder/TextDecoder polyfills for utf-8 - an implementation of TextEncoder/TextDecoder APIs | |
| // To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. | |
| // You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | |
| // Some important notes about the polyfill below: | |
| // Native TextEncoder/TextDecoder implementation is overwritten | |
| // String.prototype.codePointAt polyfill not included, as well as String.fromCodePoint | |
| // TextEncoder.prototype.encode returns a regular array instead of Uint8Array | |
| // No options (fatal of the TextDecoder constructor and stream of the TextDecoder.prototype.decode method) are supported. | |
| // TextDecoder.prototype.decode does not valid byte sequences |