zsh -c "$(curl -fsSL https://raw.githubusercontent.com/nrjdalal/silicon-virtualizer/master/install-qemu.sh)"xcode-select --installThis guide was adapted from https://gist.github.com/niw/e4313b9c14e968764a52375da41b4278#running-ubuntu-server-for-arm64
Emacs isn't just an editor, it’s an entire Emacs Lisp interpreter and environment. We can use Emacs Lisp not only to extend and customize our beloved editor, but also to write entire programs and applications. Nic Ferrier’s [elnode][] server is the most ambitious Emacs Lisp application of this sort, but we can start at a smaller scale and try to write our shell scripts and tools with Emacs Lisp.
However, it turns out that writing programs in Emacs Lisp is more intricate than it looks at a first glance. Emacs decades-long history as interactive application have left deep marks in Emacs and Emacs Lisp, which make independent
| #!/bin/bash | |
| # | |
| # By Zibri (2019) | |
| # Modified by @rokibhasansagar | |
| # | |
| # Usage: gitclean git-repo-url | |
| # | |
| gitclean () | |
| { | |
| git clone "$1" workDir && { |
| --- Firefox places.sqlite exploration | |
| -- https://developer.mozilla.org/en-US/docs/Mozilla/Tech/Places/Database | |
| -- https://wiki.mozilla.org/images/d/d5/Places.sqlite.schema3.pdf | |
| -- http://forensicswiki.org/wiki/Mozilla_Firefox_3_History_File_Format (probably somewhat outdated) | |
| -- [select text -> right click -> search] does not set from_visit :( | |
| -- Gotchas :angry-face: https://superuser.com/a/1405880/153095 (Explains why your history is incomplete) |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
| Create a dir to build things into: | |
| $ mkdir ~/stack && cd ~/stack | |
| Download the sources (sqlite 3230100 was broken, 3220000 was used instead): | |
| $ wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz | |
| $ wget https://sqlite.org/2018/sqlite-src-3220000.zip | |
| $ wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz |
What is strict aliasing? First we will describe what is aliasing and then we can learn what being strict about it means.
In C and C++ aliasing has to do with what expression types we are allowed to access stored values through. In both C and C++ the standard specifies which expression types are allowed to alias which types. The compiler and optimizer are allowed to assume we follow the aliasing rules strictly, hence the term strict aliasing rule. If we attempt to access a value using a type not allowed it is classified as undefined behavior(UB). Once we have undefined behavior all bets are off, the results of our program are no longer reliable.
Unfortunately with strict aliasing violations, we will often obtain the results we expect, leaving the possibility the a future version of a compiler with a new optimization will break code we th
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just