The program below can take one or more plain text files as input. It works with python2 and python3.
Let's say we have two files that may contain email addresses:
- file_a.txt
foo bar
ok [email protected] sup
[email protected],wyd
hello world!
| 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 |
The program below can take one or more plain text files as input. It works with python2 and python3.
Let's say we have two files that may contain email addresses:
foo bar
ok [email protected] sup
[email protected],wyd
hello world!
This is a ServiceWorker template to turn small github pages into offline ready app.
Whenever I make small tools & toys, I create github repo and make a demo page using github pages (like this one).
Often these "apps" are just an index.html file with all the nessesary CSS and JavaScript in it (or maybe 2-3 html/css/js files). I wanted to cache these files so that I can access my tools offline as well.
Make sure your github pages have HTTPS enforced, you can check Settings > GitHub Pages > Enforce HTTPS of your repository.
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
| docker build -t friendlyname . # Create image using this directory's Dockerfile | |
| docker run -p 4000:80 friendlyname # Run "friendlyname" mapping port 4000 to 80 | |
| docker run -d -p 4000:80 friendlyname # Same thing, but in detached mode | |
| docker exec -it [container-id] bash # Enter a running container | |
| docker ps # See a list of all running containers | |
| docker stop <hash> # Gracefully stop the specified container | |
| docker ps -a # See a list of all containers, even the ones not running | |
| docker kill <hash> # Force shutdown of the specified container | |
| docker rm <hash> # Remove the specified container from this machine | |
| docker rm $(docker ps -a -q) # Remove all containers from this machine |
| /* | |
| --PIETZ OBFUSCATE CODE-- | |
| 2019-06-01 | |
| from MAKEbook.io | |
| Instructions: | |
| 1) put this in your functions.php file | |
| 2) add this to the post you want to obfuscate, on top | |
| 3) [obfuscate] | |
| 4) to start obfuscating, add a HTML code or HTML block with <start></start> |