Skip to content

Instantly share code, notes, and snippets.

View gnh1201's full-sized avatar
๐Ÿ‰
Your Watermelon OPEN UP!

Namhyeon, Go gnh1201

๐Ÿ‰
Your Watermelon OPEN UP!
View GitHub Profile
@gnh1201
gnh1201 / batch_hwp_to_pdf_recover.py
Created October 24, 2025 09:01
HWP to PDF conversion python
# batch_hwp_to_pdf_recover.py
# Namhyeon Go <[email protected]>
# MIT license
import os
import time
import subprocess
import pythoncom
from win32com.client import Dispatch
HWP_EXE_PATH = r"C:\Program Files (x86)\HNC\Office 2020\HOffice110\Bin\Hwp.exe"
@gnh1201
gnh1201 / chakracore.md
Last active September 28, 2025 12:27
ChakraCore.dll (ChakraCore build) download links

ChakraCore.dll (ChakraCore build) download links

ChakraCore is an open-source JavaScript engine with a C API. It was originally developed and released by Microsoft, but official build links are no longer actively maintained.

Since parts of the WelsonJS project depend on ChakraCore, we are providing alternative download links here for convenience.

Please note that the WelsonJS maintainers and Catswords OSS do not provide any warranties or accept any liability for the use of these files.

x86

@gnh1201
gnh1201 / directus-websocket-example.js
Last active September 21, 2025 11:18
Directus WebSocket and File Upload realtime example
// Directus + WebSocket + File Upload + Realtime + Jquery example
// Namhyeon Go <[email protected]>
const CommentWs = (function() {
const ws_url = "wss://mydata.tld/websocket"; // websocket server url
const fs_url = "https://mydata.tld/files";
const download_url = "https://mydata.tld/assets";
const access_token = ""; // authentication token
const collection = "collection_name"; // collection (data store) name

Keybase proof

I hereby claim:

  • I am gnh1201 on github.
  • I am gnh1201 (https://keybase.io/gnh1201) on keybase.
  • I have a public key ASC_O7oQ1xDbfCLM5dFB8KtkNr4Kysgd_6hCwqoEOGpkAgo

To claim this, I am signing this object:

@gnh1201
gnh1201 / jsonrpc2.php
Last active March 25, 2024 09:02
Super-simple JSON-RPC 2.0 framework for PHP
<?php
// Super-simple JSON-RPC 2.0 framework for PHP
// MIT License
// Namhyeon Go <[email protected]>
// created: 2024-03-22
// updated: 2024-03-25
function jsonrpc2_encode($method, $params, $id = '') {
$data = array(
"jsonrpc" => "2.0",
@gnh1201
gnh1201 / hello.py
Last active March 27, 2024 04:15
A customized translation service that is compatible with the LibreTranslate API
#!/usr/bin/env python3
#
# hello.py
# serverless translation service gateway
#
# @author: Namhyeon Go <[email protected]>
# @created_on: 2024-03-15
# @updated_on: 2024-03-19
#
@gnh1201
gnh1201 / worker.js
Created October 27, 2023 09:46
Cloudflare Workers code to integrate IBM Translator to Mastodon
/**
* Welcome to Cloudflare Workers! This is your first worker.
*
* - Run "npm run dev" in your terminal to start a development server
* - Open a browser tab at http://localhost:8787/ to see your worker in action
* - Run "npm run deploy" to publish your worker
*
* Learn more at https://developers.cloudflare.com/workers/
*/
@gnh1201
gnh1201 / deobfusate_ps.py
Last active October 4, 2023 11:16
Powershell format string deobfusation
# Namhyeon Go <[email protected]>
# 2023-10-04
import re
# Text to search (Example text using PowerShell format strings)
text = """
&("{0}{1}{2}" -f 'Set','-Var','iable')
&("{0} {1} {2}" -f 'Set','-Var','iable')
&("This is a test {0}" -f 'arg1')
@gnh1201
gnh1201 / error.log
Last active September 9, 2023 21:12
IBM Cloud Language Translator in Mastodon (Not working yet)
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0] method=POST path=/api/v1/statuses/111036983556043247/translate format=html controller=Api::V1::Statuses::TranslationsController action=create status=500 error='NoMethodError: undefined method `model_name' for Request:Class
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0]
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0] NoMethodError (undefined method `model_name' for Request:Class
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0]
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0] app/controllers/api/v1/statuses/translations_controller.rb:14:in `create'
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0] app/controllers/concerns/localized.rb:11:in `set_locale'
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0] lib/mastodon/rack_middleware.rb:9:in `call'
@gnh1201
gnh1201 / ipfs_nat.md
Created August 19, 2023 10:37
IPFS configuration with NAT

IPFS configuration with NAT

IPFS (here, referring to go-ipfs or kubo) already supports NAT environments, but there is a lack of documentation explaining this, leading to difficulties in configuration for many users.

Below is an configuration example for supporting NAT environments in IPFS.

{
	"Addresses": {
 "API": "/ip4/0.0.0.0/tcp/5001",