Skip to content

Instantly share code, notes, and snippets.

View brlin-tw's full-sized avatar
Loading status...

林博仁 Buo-ren Lin brlin-tw

Loading status...
View GitHub Profile
@brlin-tw
brlin-tw / CGGPKICryptAdapterSetup.patched.install.sh
Created January 18, 2019 16:56
CGGPKICryptAdapterSetup.patched.install.sh
#!/usr/bin/env bash
set -o errexit
if test "${USER}" != root; then
echo You should run this program as root.
exit 1
fi
if test -e /opt/Changingtec/CGServiSign; then
@brlin-tw
brlin-tw / guvcview.strace.log
Created June 20, 2018 22:45
Strace Log when guvcview-brlin Snap Package is Launched Without Connecting to `hardware-observe` Interface
This file has been truncated, but you can view the full file.
14079 execve("/usr/lib/snapd/snap-confine", ["/usr/lib/snapd/snap-confine", "snap.guvcview-brlin.guvcview", "/usr/lib/snapd/snap-exec", "guvcview-brlin.guvcview"], [/* 102 vars */]) = 0
14079 brk(NULL) = 0x1265000
14079 fcntl(0, F_GETFD) = 0
14079 fcntl(1, F_GETFD) = 0
14079 fcntl(2, F_GETFD) = 0
14079 access("/etc/suid-debug", F_OK) = -1 ENOENT (No such file or directory)
14079 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
14079 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
14079 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
14079 fstat(3, {st_mode=S_IFREG|0644, st_size=231591, ...}) = 0
@brlin-tw
brlin-tw / Clean Filter for GNU Bash Scripts.bash
Created May 2, 2018 11:06
Source'd parameter definition in AND LIST in bash script isn't find afterwards - Stack Overflow
#!/usr/bin/env bash
declare -r APPLICATION_NAME='Clean Filter for GNU Bash Scripts'
# 林博仁 © 2017, 2018
# NOTE: ALWAYS PRINT MESSAGES TO STDERR as output to stdout will contaminate the input files when the program is operate in filter mode.
## Makes debuggers' life easier - Unofficial Bash Strict Mode
## BASHDOC: Shell Builtin Commands - Modifying Shell Behavior - The Set Builtin
set -o errexit
set -o errtrace
@brlin-tw
brlin-tw / strings.xml
Created April 10, 2018 14:34
strings.xml translation shared with Stringlate
<resources>
<string name="original_string">原始字串:</string>
<string name="translated_string_colon">翻譯好的字串:</string>
<string name="next">下一個</string>
<string name="current_string_id">目前的字串識別名:</string>
<string name="selected_locale">被選取的語言系統:</string>
<string name="welcome">歡迎使用 Stringlate!請輸入專案名稱與其擁有者名稱或是將版控庫的網址貼到下面以繼續。</string>
<string name="owner_hint">擁有者識別名稱</string>
<string name="repository_hint">版控庫名</string>
<string name="or">或</string>

This markdown source:

# 林博仁<br>Buo-Ren, Lin
關於林博仁的資訊<space><space>
Information about Buo-Ren, Lin<space><space>
<https://Lin-Buo-Ren.github.io>

Renders on GitHub as:

@brlin-tw
brlin-tw / testcase-issue-10.bash
Created May 29, 2017 11:10
bashbeautify #10 reproducing scipt
#!/usr/bin/env bash
# shellcheck disable=SC2034
## ############ META_PROGRAM_*: Metadata about This Program ###################
## Fill in metadata about this program for reusing in the script and documenting purposes
## You may safely remove this entire section if you don't need it
### Program's name, by default it is determined in runtime according to the filename, set this variable to override the autodetection, default: ${RUNTIME_EXECUTABLE_NAME}(optional)
declare META_PROGRAM_NAME_OVERRIDE=""
### Program's identifier, program's name with character limitation exposed by platform(optional)
# UEFI 開機模式之可開機可移除式媒體研究<br>Bootable Removable Media Research under UEFI Boot Mode
## 本作品採用之智慧財產授權條款<br>License
本作品採用 Creative Commons 姓名標示 - 相同方式分享授權條款第 4.0 版或其任意更近期版本釋出供任何人在授權範圍內自由使用。
授權範圍外之使用請先來信取得授權。
## UEFI 規範研究
## 美好的想像