Skip to content

Instantly share code, notes, and snippets.

View Alex4386's full-sized avatar
🎓
졸업시켜줘

Sanghee Park Alex4386

🎓
졸업시켜줘
View GitHub Profile
@Alex4386
Alex4386 / snakeoil.sh
Last active December 18, 2022 08:22
Generate ssl-cert like snakeoil certificate
#!/bin/bash
TARGET_CERT="/etc/ssl/certs/ssl-cert-snakeoil.pem"
TARGET_KEY="/etc/ssl/private/ssl-cert-snakeoil.key"
DHPARAM="/etc/ssl/certs/dhparam.pem"
C="KR"
ST="Seoul"
L="Yeongdeungpo-gu"
O="Alex4386 Inc."
@Alex4386
Alex4386 / debug-mode.sh
Created December 20, 2022 14:37
Enter debug mode of Huawei Modem
#!/bin/bash
[[ -z $TARGET_IP ]] && TARGET_IP="192.168.8.1"
curl -X POST http://$TARGET_IP/CGI \
-H "Content-Type: application/xml" \
-d '<?xml version="1.0" encoding="UTF-8" ?>
<api version="1.0">
<header>
<function>switchMode</function>
</header>
@Alex4386
Alex4386 / bypass-battery.sh
Last active September 28, 2025 13:57
Bypass Huawei Modem Battery
#!/bin/bash
TARGET_DEVICE="/dev/ttyUSB0"
BYPASS=1
if [ "$1" == "disable" ]; then
BYPASS=0
fi
TARGET_SCRIPT="at^nvwrex=50364,0,4,01 00 00 00"
@Alex4386
Alex4386 / how-to-install-saber.md
Created May 8, 2023 11:57
How to Install VideoCopilot.net's SABER Plugin in macOS Manually

How to install SABER Plugin in macOS manually

If you want to install SABER plugin but if it doesn't work like following:
image

You can do the following to install the SABER plugin manually.

Extract SABER Plugin

  1. Control+Click the Saber installer file.
  2. Click Show Package Contents
@Alex4386
Alex4386 / ssh-legacy-crypto-method.md
Last active January 3, 2024 04:20
SSH 사용시 Cryptographic method negotiation 실패하는 경우

Unable to negotiate with ?????? port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

.ssh/config

Host *
  HostKeyAlgorithms +ssh-rsa

Important: Rollback after you do this. or use -o "HostKeyAlgorithms +ssh-rsa" flag.

@Alex4386
Alex4386 / install-prometheus.md
Last active July 18, 2023 03:34
How to install prometheus

Install

  1. Create users
    sudo useradd --no-create-home --shell /sbin/nologin prometheus
  2. Create config dirs
    sudo mkdir /etc/prometheus
    sudo mkdir /var/lib/prometheus
    sudo chown prometheus:prometheus /etc/prometheus
@Alex4386
Alex4386 / avocado.c
Created June 24, 2023 15:18
아보카도 있었어
#include <stdio.h>
#include "mart.h"
int main() {
// 여보 마트가서
// 우유 사고
Good target_good = GOODTYPE_MILK;
int quantity = 1;
@Alex4386
Alex4386 / upload_crash.py
Created July 3, 2023 07:34
The Error Telemetry for specific anime social credit downloader
# Source Generated with Decompyle++
# File: upload_crash.pyc (Python 3.8)
import requests
import sys
import os
import traceback
debugUrl = 'http://hk4e-uspider.mihoyo.com:8888/fileupload'
releaseUrl = 'http://47.103.71.252:8888/fileupload'
userName = 'WindowsCrash'
@Alex4386
Alex4386 / bingchilling.pinyin.txt
Last active August 27, 2023 16:16
Bing Chilling 🥶 (I think this is the only place that my rudimentary chinese skill can be used)
Zǎoshang hǎo zhōngguó
xiànzài wǒ yǒu bīngqílín
wǒ hěn xǐhuān bīngqílín
dànshì sùdù yǔ jīqíng 9
bǐ bīngqílín
sùdù yǔ jīqíng…
sùdù yǔ jīqíng 9
wǒ zuì xǐhuān
suǒyǐ…xiànzài shì yīnyuè shíjiān
zhǔnbèi 1 2 3
@Alex4386
Alex4386 / MintLife.md
Created September 3, 2023 16:11
민트패드 블로그 엔드포인트

블로그 메인

게시물 전체 개수

  • http://pad.mintpass.co.kr/pad/life.asmx/GetMaxLifeIdx
    <int>17</int>

댓글 가져오기

  • http://pad.mintpass.co.kr/pad/life.asmx/GetLifeCommentList?lifeIdx=69&page=1