- Simple Brainfuck REPL interpreter in Python
- Here are some sample programs:
$ ./brainfuck_repl.py
$ ./brainfuck_repl.py
There are plenty of ONLINE websites that claimed to be generating your password OFFLINE. This sounds quite absurd to me, as there are no way to tell if they are collecting your data or not, unless you look into their Javascript code or something. At the end of the day, generating one's password using someone else's website just doesn't make sense. Therefore, this code is meant to be run locally and is easy to understand, which is essential to provide confidence that it is safe.
python3 random_password_generator.py
[Dot][] is a graph description language in extensions .dot
or .gv
, and can be read by programs such as Graphviz ([try it online][]). However, it's syntax is too complicated for the goal of generating a simple control-flow graph, and is not very well human readable. Therefore, I defined a new language, prettydot, for this purpose.
I am a big fan of Monokai theme and colors. This color scheme is basically the same as Agila's Monokai Extended color scheme, except that all gray backgrounds have been replaced with a nice looking brown one! :) (plus issue #43 been fixed)
Note that I only demonstrated the Color Scheme, not the Theme. The theme I used was Spacegray Eighties.
We are using CTFd for in-class projects. Here I share some modifications on CTFd for better in-class managements.
I was using rsync -e "ssh"
to transfer files between local and remote computer. If I want to transfer a file from remote to local, the command will be like rsync -av --delete -e "ssh" user@ip:/path/to/fileA /home/user/folder/
. One day, however, I thought I could transfer a remote folder /path/to/folderA/
to my home /home/user/
. After running the command, I found that it started erasing my home directory! Since Linux has disk encryption by default, I failed to rescue those files eventually ;(
My bash history was stored as ~/.bash_history
. One day, I was running a huge apt upgrade. It took me plenty of time, so I left it and went to sleep. However, I forgot that my laptop was in battery mode. So eventually, the battery ran out, and my computer experienced an abnormal power off, which resulted in me having a corrupted bash_history
. I have no backups, so I lost all my bash history ;(
I just learned how to use tee
to app