Skip to content

Instantly share code, notes, and snippets.

Avatar
😍
Happy Today!

Minho Ryang minhoryang

😍
Happy Today!
View GitHub Profile
View ipfs.io.blocked.txt
minhoryang@minhoui-MacBookPro-2 friend-tunnel2 % dig @168.126.63.1 ipfs.io
; <<>> DiG 9.10.6 <<>> @168.126.63.1 ipfs.io
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50999
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available
@minhoryang
minhoryang / sortkey_natural.py
Created December 13, 2022 13:21
sortkey_natural natual/human sort
View sortkey_natural.py
def sortkey_natural(s):
return tuple(
int(part) if re.match(r'[0-9]+$', part) else part
for part in re.split(r'([0-9]+)', s)
)
@minhoryang
minhoryang / openpgp.md
Created November 18, 2022 08:06
openpgp.md
View openpgp.md

$argon2id$v=19$m=64,t=512,p=2$+VsBJhNGCtfOs56qfs0qtA$vEIG1tCy2U9s1G3LzZj27w

View Time Machine exclusions.command
#!/usr/bin/env bash
{ set +x; } 2>/dev/null
IFS=$'\n'
set "$@" $(find ~ -name ".*" ! -name ".CFUserTextEncoding" ! -type l -mindepth 1 -maxdepth 1) # dotfiles
set "$@" $(find ~ -name "Google *" -mindepth 1 -maxdepth 1) # Google Drive
set "$@" ~/git # store on github/etc :)
set "$@" ~/node_modules
set "$@" ~/Applications # install apps with brew cask
@minhoryang
minhoryang / PHP_2019.md
Created December 1, 2019 08:38
FACE PALM...
View PHP_2019.md

PHP @ 2019~

declare(strict_operators=1); declare(strict_types=1); ini_set('display_errors', "1"); error_reporting(E_STRICT); or E_ALL

PHP Version?

Package manager

composer

@minhoryang
minhoryang / Dockerfile
Created November 14, 2019 07:21
Dockerfile.windows:1809
View Dockerfile
FROM mcr.microsoft.com/windows:1809
# Install Chocolatey
RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
# New Powershell, so choco is available
SHELL ["powershell"]
# Choco disable upload progress
RUN choco feature disable --name showDownloadProgress
@minhoryang
minhoryang / receiver.py
Created November 14, 2019 07:07
powershell to flask http file upload
View receiver.py
from flask import Flask, request
from werkzeug.utils import secure_filename
app = Flask(__name__)
@app.route('/<filename>', methods = ['GET', 'POST'])
def upload_file(filename):
if request.method == 'POST':
@minhoryang
minhoryang / git-pr.sh
Last active September 15, 2021 18:56
Fetching Github PR # Only (for CI)
View git-pr.sh
git init
git remote add origin <REMOTE_URL>
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
git fetch --no-tags --depth=1 --recurse-submodules=yes --multiple -j origin pull/<PR_NO>/head:refs/remotes/origin/pr/<PR_NO>
git checkout origin/pr/<PR_NO>
git log # one commit!
git describe —all # remotes/origin/pr/259
@minhoryang
minhoryang / README.md
Last active November 1, 2019 05:34
Simple Typo Error in Korean Download Page for ESET Cyber Security Pro
View README.md
@minhoryang
minhoryang / CyworldInternalUrl.user.js
Last active October 17, 2019 11:40
Cyworld Club URL Strecther -- (Click 'raw' button for installing by Tampermonkey)
View CyworldInternalUrl.user.js
// ==UserScript==
// @name Cyworld Club URL Stretcher
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Cyworld Club Byebye
// @author Minho Ryang
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @match http://club.cyworld.com/ClubV1/Home.cy/*
// @match http://club.cyworld.com/club/main/*