Category: Uncategorized
-
PowerShell: Byte to String
Create some string from byte array and print it as ASCII string Create some string from byte array and print it as UTF8 string
-
PowerShell: File Write
Writing to a file from stdin line by line Writing to a file from a variable Writing to a file as Byte[]
-
PowerShell: File Read
Read a file and stream to stdout Read a file line by line and save it to a variable Read a file as Byte[]
-
PowerShell: Serial Port
Get available serial port Setup the port Set port property Construct the request Send request to the port References: SerialPort Class (System.IO.Ports) | Microsoft Docs
-
Curl: GET and POST Request
GET Request To call a GET request to localhost:8080/path GET Request with Parameter Query To call a GET request to localhost:8080/path?param1&value1¶m2=value2 Use wget: POST Request (application/x-www-form-urlencoded) To call a POST request to localhost:8080/path POST Request with Query Parameters POST Request (multipart/form-data) To call a POST request to localhost:8080/path
-
S3 API: Object Operations
S3 will show the result lexicographically. List buckets String to sign: Get bucket ACL String to sign: List bucket contents String to sign: String to sign: List object String to sign: Get object String to sign: Delete object String to sign: String to sign: String to sign: Resources:
-
Vim: Split Pane
Ctrl-w + Ctrl-vCtrl-w + v:vsplit:vs:wincmd v:winc v New vertical split. Ctrl-w + Ctrl-sCtrl-w + s:split:sp:wincmd s:winc s New horizontal split. Ctrl-w + Ctrl-wCtrl-w + w Cycle pane. Ctrl-w + Ctrl-h / j / k / lCtrl-w + h / j / k / l Navigate to left / down / up / right pane. Ctrl-w…
