Skip to content

Instantly share code, notes, and snippets.

View jmkim's full-sized avatar

Jongmin Kim jmkim

View GitHub Profile
#!/bin/bash
pushd ~/.local/share/applications
sed -ri 's/^(Exec=)(.*)/\1\2 --gtk-version=4/' chrome-*.desktop
popd
@jmkim
jmkim / gen-key-script
Last active June 7, 2024 04:30
Automatic GPG key generation script with fancy output
Key-Type: 1
Key-Length: 4096
Subkey-Type: 1
Subkey-Length: 4096
Name-Real: John Doe
Name-Email: [email protected]
Expire-Date: 0
%no-protection
import orjson
from typing import NamedTuple
IN_FILE="전체 내려받기_한국어기초사전_json_20230901/3_5000_20230901.json"
class WordEquivalent(NamedTuple):
language: str = None
lemma: str = None
@jmkim
jmkim / nginx-rproxy-nas-infinite.conf
Last active January 18, 2023 11:21
Infinity upload · download configuration for Nginx
location /nas/ {
rewrite ^/nas(.*) /$1 break;
proxy_pass http://$HOST:$PORT;
proxy_buffering off;
proxy_request_buffering off;
proxy_max_temp_file_size 0;
client_max_body_size 10000G;

Diagnostic snippet

Aug 17, 2022

System

  • system_profiler SPSoftwareDataType SPHardwareDataType

    Software:
    
[{
"title": "AU6983BT-4 89 d5 94 3e 2x2",
"id": "AU6983BT-4\u00a0\u00a0\u00a089 d5 94 3e\u00a0\u00a0\u00a02x2",
"url": "http://flash-extractor.com/library/AU/AU6983/AU6983BT-4__89_d5_94_3e__2x2",
"parents": ["AU/AU6983/"],
"images": [],
"texts": [{
"Layout": ["AU6986 536"],
"Mix": {
"Input": {
# Generated by iptables-save v1.8.7 on Sat Mar 5 02:18:24 2022
*filter
:INPUT ACCEPT [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
:DOCKER - [0:0]
:DOCKER-ISOLATION-STAGE-1 - [0:0]
:DOCKER-ISOLATION-STAGE-2 - [0:0]
:DOCKER-USER - [0:0]
-A FORWARD -j DOCKER-USER
Add-WindowsFeature -Name Wireless-Networking
:100000000C94B3060C94FA060C94FA060C94FA06B7
:100010000C94FA060C94FA060C94FA060C94FA0660
:100020000C94FA060C94FA060C9400160C94D21652
:100030000C94A9250C94FA060C94FA060C94FA0672
:100040000C94FA060C94FA060C94FA060C94FA0630
:100050000C94FA060C9449260C94FA060C94FA06B1
:100060000C94FA060C9447090C94FA060C94FA06C0
:100070000C94FA060C94FA060C94FA060C94FA0600
:100080000C94FA060C94FA060C94FA060C94FA06F0
:100090000C94FA060C94FA060C94FA060C94FA06E0
@jmkim
jmkim / forwarded-parse-ignore-escape-error.patch
Created December 26, 2021 07:27
Patch for ignoring unexpected escape character (\) in forwarded-parse
diff --git a/index.js b/index.js
index df16834..0330d3a 100644
--- a/index.js
+++ b/index.js
@@ -118,6 +118,7 @@ function parse(header) {
parameter = undefined;
start = end = -1;
} else {
+ continue
throw new ParseError(unexpectedCharacterMessage(header, i), header);