#Linux - System Information
You can use inxi to show details of your system configuration. Inxi is a bash script which ties in a number of other commands to provide an overview of the system configuration.
$ inxi
produces:
| # luna_pinyin.custom.yaml | |
| # | |
| # 【朙月拼音】模糊音定製模板 | |
| # 佛振配製 :-) | |
| # | |
| # 位置: | |
| # ~/.config/ibus/rime (Linux) | |
| # ~/Library/Rime (Mac OS) | |
| # %APPDATA%\Rime (Windows) | |
| # | 
#Linux - System Information
You can use inxi to show details of your system configuration. Inxi is a bash script which ties in a number of other commands to provide an overview of the system configuration.
$ inxi
produces:
| #!/bin/bash | |
| # | |
| # rotate_desktop.sh | |
| # | |
| # Rotates modern Linux desktop screen and input devices to match. Handy for | |
| # convertible notebooks. Call this script from panel launchers, keyboard | |
| # shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
| # | |
| # Using transformation matrix bits taken from: | |
| # https://wiki.ubuntu.com/X/InputCoordinateTransformation | 
| #include <iostream> | |
| #include <openssl/aes.h> | |
| #include <openssl/evp.h> | |
| #include <openssl/rsa.h> | |
| #include <openssl/pem.h> | |
| #include <openssl/ssl.h> | |
| #include <openssl/bio.h> | |
| #include <openssl/err.h> | |
| #include <assert.h> | 
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "io" | |
| "os" | |
| "os/exec" | |
| "strings" | |
| ) | 
| # Pass the env-vars to MYCOMMAND | |
| eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
| # … or ... | |
| # Export the vars in .env into your shell: | |
| export $(egrep -v '^#' .env | xargs) | 
The following error message may be encountered when building CUDA code with CMake:
error LNK2019: unresolved external symbol __cudaRegisterLinkedBinary
It is caused by generated glue code not being linked in. The glue code is generated into files named with the project and a suffix:
myprojectname.device-link.obj
Ensure CUDA is enabled as a language for the project:
| #!/bin/bash | |
| # DLsite Product Downloader | |
| source .session > /dev/null 2>&1 | |
| function sessionchk() { | |
| result=`curl -L -sS "https://ssl.dlsite.com/maniax/mypage" -H 'authority: www.dlsite.com' -H "cookie: AuthCookie="$AuthCookie"; __DLsite_SID="$DSID";" --compressed | grep -oP '(?<=<title>)(.+)(?=</title)'` | |
| if [[ $result == "新規登録 - 新規登録" ]] ; then | |
| echo :-: 認証エラー :-: | |
| return 1 | |
| else |