Changes with .dev domains in
mind.
Create /etc/pf.anchors/dev, containing:
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443
| /* | |
| * Test that libmemcached is built with SASL support. | |
| */ | |
| #include <stdio.h> | |
| #include <libmemcached/memcached.h> | |
| const char* key = "abc"; | |
| const char* value = "value"; | |
| // test basic get/set operation works. |
| #/bin/env/python | |
| #Author : Psycho_Coder | |
| #Date : 7/11/2014 | |
| import os | |
| import sys | |
| import binascii | |
| hex_link_pat = "".join("0A 2F 42 6F 72 64 65 72 20 5B 20 30 20 30 20 30 20 5D " | |
| "0A 2F 41 20 3C 3C 0A 2F 54 79 70 65 20 2F 41 63 74 69 " |
| <?php | |
| $rbls = [ | |
| 'b.barracudacentral.org', | |
| 'cbl.abuseat.org', | |
| 'http.dnsbl.sorbs.net', | |
| 'misc.dnsbl.sorbs.net', | |
| 'socks.dnsbl.sorbs.net', | |
| 'web.dnsbl.sorbs.net', | |
| 'dnsbl-1.uceprotect.net', |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| require 'sinatra' | |
| get '/long_process' do | |
| child_pid = Process.fork do | |
| # hard work is done here... | |
| sleep 10 | |
| Process.exit | |
| end | |
Changes with .dev domains in
mind.
Create /etc/pf.anchors/dev, containing:
rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080
rdr pass inet proto tcp from any to any port 443 -> 127.0.0.1 port 8443
| Use the -f option to git tag: | |
| -f | |
| --force | |
| Replace an existing tag with the given name (instead of failing) | |
| You probably want to use -f in conjunction with -a to force-create an annotated tag instead of a non-annotated one. | |
| Example |
| #!/usr/bin/env python | |
| import pika | |
| connection = pika.BlockingConnection(pika.ConnectionParameters( | |
| 'localhost')) | |
| channel = connection.channel() | |
| channel.queue_declare(queue='queuename') | |
| channel.basic_publish(exchange='', |
| #!/usr/bin/env python3 | |
| import sys | |
| import re | |
| import shutil | |
| import argparse | |
| import binascii | |
| pattern = b'''0a2f54797065202f416e6e6f740a2f53756274797065202f4c696e6b0a2f52656 | |
| 374205b20.*?205d0a2f426f7264657220.*?\n0a2f41203c3c0a2f54797065202f416374696f6e |
Free O'Reilly books and convenient script to just download them.
Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post
How to use:
download.sh file and put it into a directory where you want the files to be saved.cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.