음..
일단 만들긴 했는데 뭐적지
이딴거 적으라고 만든 건
# yt-dlp launcher | |
### Scripting trick: | |
### `"` is multiline! You can write multiline with just covering with `"`. | |
## Step 1. Set the batch path to where this `.ps1` is. | |
### TIP: This script is written assuming that it's placed with yt-dlp. | |
### You'd like to change the path part (`(Split-Path ~ .path)`) | |
### to where yt-dlp binary is. | |
### Example: |
I've been using wsl
(version 2) with genie
mod for years without issue, but one day, Windows 10 finally catch up on wsl
Windows 11 features and gives us a way to use systemD
natively.
I wanted to use the new "right way" to enable systemD
on Windows Subsystem for Linux (without genie
), and I also had a (probably related) infinite Windows RemoteApp error poping in.
#!/bin/bash | |
# Fix korean font | |
if [ ! -f /bin/wget ] || [ ! -f /bin/unzip ] || [ ! -f /bin/fc-cache ]; then | |
echo "Please check if these installed:" | |
echo " wget, unzip, fontconfig" | |
exit | |
fi | |
if [ ! -x /bin/sudo ]; then | |
echo "Please check if you're trying to launch this script" |
#include <iostream> | |
#include <fstream> | |
int main(int argc, char* argv[]) { | |
std::string file = "args.log"; // log file path | |
std::ofstream stream(file.data()); // out file stream: fstream as write mode | |
if (stream.is_open()) { | |
for (int i = 0; i < argc; i++) // arguments count at argc, so log it all with file name in argv[0] | |
stream << argv[i] << std::endl; // write args into file | |
stream.close(); |
To run the shell file:
wget https://gist.github.com/HotoRas/85163c0884312c802a2f0676c3a96263/raw/07192a59b0e1efc9fa73205e115a1ce0df73713f/zp-0172-monitor.sh
chmod +x zp-0172-monitor.sh
./zp-0172-monitor.sh
All the details are considerably written down.
# Source: https://unix.stackexchange.com/questions/124407/what-color-codes-can-i-use-in-my-bash-ps1-prompt/124409#124409 | |
function colorgrid( ) | |
{ | |
iter=16 | |
while [ $iter -lt 52 ] | |
do | |
second=$[$iter+36] | |
third=$[$second+36] | |
four=$[$third+36] | |
five=$[$four+36] |
HEXRAYS_LICENSE 6.8 | |
USER Giancarlo Russo, HT Srl | |
EMAIL [email protected] | |
ISSUED_ON 2015-05-25 18:07:13 | |
LICENSE_ID PRODUCT # SUPPORT EXPIRES DESCRIPTION | |
--------------- -------- -- ---------- --------- ----------------------------- | |
48-3255-7514-28 IDAPRONW 1 2016-04-08 Never IDA Professional Named License (Windows) | |
48-B055-7514-8E IDAPRONM 1 2016-04-08 Never IDA Professional Named License (Mac) |