Skip to content

Instantly share code, notes, and snippets.

21/058/2019 11:58:15 - INFO - <- This level is successfully initialized
21/058/2019 11:58:16 - INFO - Flashtool Version 0.9.25.0 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
bonanza123 / word_count.lua
Created March 1, 2019 08:17 — forked from phi-gamma/word_count.lua
Word count with LuaTEX
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
bonanza123 / rebuild.sh
Last active August 5, 2017 11:56
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
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:
`/home/XX/.matlab/R2016b/mex_C++_glnxa64.xml`
and replace the line
`<cmdReturns name="which g++" />`
e.g. with
`<cmdReturns name="which g++-4.9" />`.
Additionally, change
`<cmdReturns name="g++ -print-file-name=libstdc++.so"`
to
@bonanza123
bonanza123 / rules.txt
Last active September 26, 2015 17:59
NoScript MIME rules
video/ogg@https?://[a-z0-9\-]*\.googlevideo\.com
application/x-shockwave-flash@https?://s\.ytimg\.com
video/webm@https?://img-9gag-fun\.9cache\.com
video/mp4@https?://img-9gag-fun\.9cache\.com
application/x-shockwave-flash@https?://www\.arte\.tv