Skip to content

Instantly share code, notes, and snippets.

View jmkim's full-sized avatar

Jongmin Kim jmkim

  • Senior Engineer, SSD FW Eng @doubleOplus
  • Busan, Republic of Korea
  • 02:10 (UTC +09:00)
View GitHub Profile
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);
@jmkim
jmkim / code-server-4.0.0-service-worker.patch
Created December 26, 2021 07:19
Patch for Coder's code-server 4.0.0 (pre-release) service-worker.js 404 Not Found bug
diff --git a/out/node/routes/index.js b/out/node/routes/index.js
index 55bdaec..e35e526 100644
--- a/out/node/routes/index.js
+++ b/out/node/routes/index.js
@@ -90,6 +90,18 @@ const register = async (app, args) => {
res.set("Content-Type", (0, util_2.getMediaMime)(resourcePath));
return res.send(await fs_1.promises.readFile(resourcePath));
}
+ // Return service-worker.js
+ if (req.originalUrl === "/service-worker.js") {
@jmkim
jmkim / nifs-crawler.py
Created December 5, 2021 22:05
NIFS crawler
import bs4
import requests
import collections
import copy
import time
URL = 'https://www.nifs.go.kr/page?id=aq_seafood_2_7&type=tot&from=totList&fim_col_id=2018-MF0006689-6-D01'
#URL = 'https://www.nifs.go.kr/page?id=aq_seafood_2_7&fim_col_id=2018-MF0006689-Z-D33&mode=all'
RULES = {
"일반성분": 1,
Start time
Nov 9 16:36
End time End - Start Elapsed time Result
Nov 9 18:32 1 hour 56 mins 1 hour 56 mins results_ml100k_all.csv
Nov 11 19:29 2 days 2 hours 57 mins 2 days 1 hour 1 min results_ml1m_all.csv
Nov 12 02:53 2 days 10 hours 17 mins 7 hours 20 mins results_jester_all.csv
@jmkim
jmkim / DisplayProductID-a045
Last active October 23, 2021 14:54
Macbook Air M1 2020 Display HiDPI patch
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DisplayPixelDimensions</key>
<data>
AAAKAAAABkA=
</data>
<key>DisplayProductID</key>
<integer>41033</integer>
@jmkim
jmkim / 20210531-assignment-pknu-dl-2.ipynb
Created June 24, 2021 16:48
Assignment 2: Deep Learning A05442-001 @ PKNU
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jmkim
jmkim / 20210622-assignment-pknu-dl-3.ipynb
Created June 22, 2021 20:47
Assignment 3: Deep Learning A05442-001 @ PKNU
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
MIRRORS=(
"archlinux:mirrors.tuna.tsinghua.edu.cn:archlinux"
"CPAN:cpan-rsync.perl.org:CPAN"
"CRAN:cran.r-project.org:CRAN"
"CTAN:rsync.dante.ctan.org:CTAN"
"debian:rsync.osuosl.org:debian"
"debian-archive:mirror.math.princeton.edu:pub/debian-archive/"
"debian-cd:ftp.acc.umu.se:debian-cd"