Skip to content

Instantly share code, notes, and snippets.

View HotoRas's full-sized avatar
🙃
The line is busy

Hoto Ras HotoRas

🙃
The line is busy
View GitHub Profile
@HotoRas
HotoRas / ida.key
Created October 26, 2024 03:08 — forked from neatlife/ida.key
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)
@HotoRas
HotoRas / colorgrid.sh
Created June 29, 2024 07:36
colorgrid
# 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]
@HotoRas
HotoRas / README.md
Last active February 3, 2024 14:16
ZP-0172 OLED monitor setup batch

To run the shell file:

  1. Copy the file into editor and save, or just wget it.
    • wget command:
      wget https://gist.github.com/HotoRas/85163c0884312c802a2f0676c3a96263/raw/07192a59b0e1efc9fa73205e115a1ce0df73713f/zp-0172-monitor.sh
  2. chmod +x zp-0172-monitor.sh
  3. ./zp-0172-monitor.sh
    • You don't have to and shouldn't pass sudo into the script: stuff will break so disabled in it.
  4. Profit!

All the details are considerably written down.

@HotoRas
HotoRas / main.cpp
Created February 1, 2024 11:08
Argument logger
#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();
@HotoRas
HotoRas / koreanfontfix.sh
Created January 17, 2024 03:55
한국어 폰트 안 뜨면 돌리는 파일
#!/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"
@HotoRas
HotoRas / Reinstall WSL with systemd.md
Last active January 11, 2024 04:28 — forked from 4wk-/README.md
Clean uninstall then reinstall of WSL on Windows 10, with systemD support

Uninstall then reinstall WSL on Windows 10 (clean way)

Background

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.

ToC

@HotoRas
HotoRas / yt-dlp.ps1
Created March 14, 2023 04:25
The yt-dlp launch script for Windows Powershell.
# 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:
@HotoRas
HotoRas / note.md
Created November 1, 2022 03:54
메모장

메모장

2022-11-01

음..

일단 만들긴 했는데 뭐적지

이딴거 적으라고 만든 건