Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block bonanza123

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View xa2 flashtool
21/058/2019 11:58:15 - INFO - <- This level is successfully initialized
21/058/2019 11:58:16 - INFO - Flashtool Version built on 17-06-2018 16:00:00
21/058/2019 11:58:16 - INFO - Searching for a web proxy
21/058/2019 11:58:17 - INFO - No proxy found, using direct connection
21/058/2019 11:58:17 - INFO - Syncing devices from github
21/058/2019 11:58:17 - INFO - Opening devices repository.
21/058/2019 11:58:17 - INFO - Scanning devices folder for changes.
21/058/2019 11:58:30 - INFO - Pulling changes from github.
21/058/2019 11:58:31 - INFO - Devices sync finished.
21/058/2019 11:58:33 - INFO - Loading devices database
bonanza123 / word_count.lua
Created Mar 1, 2019 — forked from phi-gamma/word_count.lua
Word count with LuaTEX
View word_count.lua
packagedata = packagedata or { } -- namespace proposal for packages
local word_count = { threshold = 3, }
packagedata.word_count = packagedata.word_count or word_count
dofile(kpse.find_file"char-def.lua") -- unicode tables
dofile(kpse.find_file"lualibs-table.lua") -- old Context table code
local utf = unicode.utf8
local node = node
local type = type
bonanza123 /
Last active Aug 5, 2017
rebuild initramfs from live image
cryptsetup luksOpen /dev/nvme0n1p4 root
mount /dev/system/root /mnt
mount /dev/nvme0n1p3 /mnt/boot/
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /dev /mnt/dev
chroot /mnt
View MATLAB MEX GCC archlinux
MATLAB usually requires acient gcc versions to compile MEX files (e.g. v4.9.x for R2016b). However, archlinux usually ships with the most recent version of gcc and this may results in some conflicts with linked C++ ABI.
Fortunately, archlinux AUR provides also older gcc versions (such as gcc49). The problem is that MATLAB's `mex -setup` doesn't find these additionally installed gcc versions. The solution is to go into your local mex config in:
and replace the line
`<cmdReturns name="which g++" />`
e.g. with
`<cmdReturns name="which g++-4.9" />`.
Additionally, change
`<cmdReturns name="g++"`
bonanza123 / rules.txt
Last active Sep 26, 2015
NoScript MIME rules
View rules.txt
You can’t perform that action at this time.