Skip to content

Instantly share code, notes, and snippets.

View robbie-cao's full-sized avatar

Robbie Cao robbie-cao

View GitHub Profile
:(){ :|:& };:
\_/| |||| ||\- ... the function ':', initiating a chain-reaction: each ':' will start two more.
 | | |||| |\- Definition ends now, to be able to run ...
 | | |||| \- End of function-block
 | | |||\- disown the functions (make them a background process), so that the children of a parent
 | | |||   will not be killed when the parent gets auto-killed
 | | ||\- ... another copy of the ':'-function, which has to be loaded into memory.
 | | ||   So, ':|:' simply loads two copies of the function, whenever ':' is called
 | | |\- ... and pipe its output to ...
@robbie-cao
robbie-cao / gpt-geti-install-vim-full-feature.md
Last active August 3, 2021 15:51
apt-get install vim with full feature
diff --git a/.config b/.config
index ec32e38..75ebf6a 100644
--- a/.config
+++ b/.config
@@ -278,7 +278,6 @@ CONFIG_OPKGSMIME_PASSPHRASE=y
#
CONFIG_PACKAGE_base-files=y
# CONFIG_PACKAGE_block-mount is not set
-# CONFIG_PACKAGE_bridge is not set
CONFIG_PACKAGE_busybox=y
@robbie-cao
robbie-cao / gist:4612a337d8544849c2ecd9cbf21c9a44
Created September 12, 2016 10:13
Config MT7688 GPIO PinMux
root@mua:/# mt7688_pinmux get
Group i2c - [i2c] gpio
Group uart0 - [uart] gpio
Group uart1 - [uart] gpio
Group uart2 - [uart] gpio pwm
Group pwm0 - [pwm] gpio
Group pwm1 - [pwm] gpio
Group refclk - refclk [gpio]
Group spi_s - spi_s [gpio]
Group spi_cs1 - [spi_cs1] gpio refclk
@robbie-cao
robbie-cao / pn532-writeurl
Last active August 31, 2016 12:58
pn532-writeurl
root@mylinkit:/# pn532-writeurl
writeCommand: Sending:
writeCommand: cmdlen + 8 = 10, offset = 8
0x00 0x00 0xff 0x02 0xfe 0xd4 0x02 0x2a 0x00 0x00
sendCommandCheckAck: IRQ received
readData: read returned 8bytes
(raw) buf (8) = 0x81 0x00 0x00 0xff 0x00 0xff 0x00 0x02
(returned) buf (6) =
0x00 0x00 0xff 0x00 0xff 0x00
➜ linux git:(master) time objdump -C -S vmlinux > vmlinux.dump objdump -C -S vmlinux > vmlinux.dump 547.89s user 3.34s system 99% cpu 9:14.52 total ➜ linux git:(master) time objdump -S -Dz vmlinux > vmlinux.dump2 objdump -S -Dz vmlinux > vmlinux.dump2 10425.69s user 36.12s system 99% cpu 2:55:25.95 total
➜ linux git:(master) time objdump -C -S vmlinux > vmlinux.dump
objdump -C -S vmlinux > vmlinux.dump 547.89s user 3.34s system 99% cpu 9:14.52 total
➜ linux git:(master) time objdump -S -Dz vmlinux > vmlinux.dump2
objdump -S -Dz vmlinux > vmlinux.dump2 10425.69s user 36.12s system 99% cpu 2:55:25.95 total
➜ linux git:(master) time objdump -C -S vmlinux > vmlinux.dump
objdump -C -S vmlinux > vmlinux.dump 547.89s user 3.34s system 99% cpu 9:14.52 total
➜ linux git:(master) time objdump -S -Dz vmlinux > vmlinux.dump2
objdump -S -Dz vmlinux > vmlinux.dump2 10425.69s user 36.12s system 99% cpu 2:55:25.95 total
Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts. Git LFS: (7 of 5 files) 15.85 MB / 23.41 MB Connection to github.com closed by remote host. Git LFS: (8 of 5 files) 19.64 MB / 23.41 MB Put https://github-cloud.s3.amazonaws.com/alambic/media/127311771/67/05/67056e2e097bd5fef7a30019790b3a050798cd41d95246373c8866b58b0e33f8?actor_id=2521404: EOF Put https://github-cloud.s3.amazonaws.com/alambic/media/127311771/67/05/67056e2e097bd5fef7a30019790b3a050798cd41d95246373c8866b58b0e33f8?actor_id=2521404: EOF Client error: https://github-cloud.s3.amazonaws.com/alambic/media/127311771/79/20/79202ca4e8c27bcdcd0c14cf0aea6570f18c19f964a7459cda06ca220f2d901e?actor_id=2521404 Client error: https://github-cloud.s3.amazonaws.com/alambic/media/127311771/79/20/79202ca4e8c27bcdcd0c14cf0aea
Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts. Git LFS: (7 of 5 files) 15.85 MB / 23.41 MB Connection to github.com closed by remote host. Git LFS: (8 of 5 files) 19.64 MB / 23.41 MB Put https://github-cloud.s3.amazonaws.com/alambic/media/127311771/67/05/67056e2e097bd5fef7a30019790b3a050798cd41d95246373c8866b58b0e33f8?actor_id=2521404: EOF Put https://github-cloud.s3.amazonaws.com/alambic/media/127311771/67/05/67056e2e097bd5fef7a30019790b3a050798cd41d95246373c8866b58b0e33f8?actor_id=2521404: EOF Client error: https://github-cloud.s3.amazonaws.com/alambic/media/127311771/79/20/79202ca4e8c27bcdcd0c14cf0aea6570f18c19f964a7459cda06ca220f2d901e?actor_id=2521404 Client error: https://github-cloud.s3.amazonaws.com/alambic/media/127311771/79/20/79202ca4e8c27bcdcd0c14cf0aea