Skip to content

Instantly share code, notes, and snippets.

View 831jsh's full-sized avatar
πŸ’­
I may be slow to respond.

SeongHo's Project 831jsh

πŸ’­
I may be slow to respond.
View GitHub Profile
@831jsh
831jsh / nginx-tuning.md
Created March 17, 2023 00:44 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@leoh0
leoh0 / README.md
Last active April 28, 2025 04:23
mac μ—μ„œ docker-desktop 을 lima둜 λŒ€μ²΄ν•˜κΈ° lima-docker.sh μ‹€ν–‰

mac μ—μ„œ docker-desktop을 λŒ€μ²΄ν•˜κΈ°

https://gist.github.com/leoh0/3b3c908f0e931d7c620d273c77ea3757

docker-desktop λ₯Ό 2022λ…„ 1μ›” 31μΌκΉŒμ§€ λŒ€μ²΄ν•΄μ•Ό ν•˜κΈ°μ— λ‹€λ“€ μ—¬λŸ¬ 방법을 μ‚¬μš©ν•˜μ‹€ 것 같은데 windowsμ—μ„œλŠ” 사싀 wsl2 λ₯Ό μ‚¬μš©ν•˜λ©΄μ„œ docker λ₯Ό κ·ΈλŒ€λ‘œ κΉ”μ•„μ„œ μ“Έ 수 μžˆλ‹€λŠ” 것 λ•Œλ¬Έμ— 큰 μ œμ•½μ—†μ΄(eg. wsl이 κ²°κ΅­ λΈŒλ¦Ώμ§€λ₯Ό 거치기 λ•Œλ¬Έμ— vpnλ“± μ‚¬μš©μ‹œ mtu 쑰절이 ν•„μš”ν•  수 μžˆλŠ” μ œμ•½μ΄ 있음)μ‚¬μš© κ°€λŠ₯ν•œλ° λ§₯은 사싀 linux μŠ€νƒμ„ κ·ΈλŒ€λ‘œ μ‚¬μš©ν•  수 μ—†κΈ°λ•Œλ¬Έμ— vm을 μ˜¬λ €μ•Ό ν•˜λŠ” μƒνƒœμž…λ‹ˆλ‹€.

λΆˆνŽΈν•œ 점

ν•˜μ§€λ§Œ 이에 따라 μ—¬λŸ¬κ°€μ§€ λΆˆνŽΈν•œ 점듀이 μžˆμŠ΅λ‹ˆλ‹€.

@ruo91
ruo91 / ocp4-self-upstream-dns.md
Last active June 3, 2021 00:20
OpenShift v4.x - Self Upstream DNS μ„œλ²„κ΅¬μ„±

OpenShift v4.x - Self Upstream DNS μ„œλ²„κ΅¬μ„±

OpenShiftμ—μ„œ μ œκ³΅ν•˜λŠ” CoreDNS Operator의 κΈ°λŠ₯적 ν•œκ³„μ— λŒ€ν•œ 자체 κ΅¬ν˜„μ΄ μ£Ό λͺ©μ μ΄λ©°,
CoreDNS Container 이미지λ₯Ό 톡해 μ™ΈλΆ€ μ§ˆμ˜μ— λŒ€ν•œ 것듀을 μ œμ–΄ ν•˜λ„λ‘ ν•œλ‹€.

이 글을 톡해 Production λ ˆλ²¨μ—μ„œ 적용 ν›„ λ¬Έμ œκ°€ λ°œμƒν•˜λŠ” 뢀뢄에 λŒ€ν•΄μ„œλŠ” μ±…μž„μ„ μ§€μ§€ μ•ŠλŠ”λ‹€.

ν…ŒμŠ€νŠΈ ν™˜κ²½

  • Bastion VM (NAT)
  • RHEL 8.x
  • Podman / SKOPEO / CRI-O
@lesstif
lesstif / winget-package-install.ps1
Last active November 3, 2023 02:32
windows package install using winget package manager
## copy from https://gist.github.com/cdekkerpossibilit/d023602c29fdf039c7eabadf64f708e9
function Confirm-Choice {
param (
[string]$Message
)
$yes = new-Object System.Management.Automation.Host.ChoiceDescription "&Yes","Yes";
$no = new-Object System.Management.Automation.Host.ChoiceDescription "&No","No";
$choices = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no);
$answer = $host.ui.PromptForChoice("", $message, $choices, 1)
@premek
premek / mv.sh
Last active March 5, 2024 17:43
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
#
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
@mrpeardotnet
mrpeardotnet / PVE-host-backup.md
Created December 17, 2019 18:03
Proxmox PVE Host Config Backup Script

Proxmox PVE Host Config Backup Script

This script can be used to backup essential configuration files from the Proxmox Virtual Enivronment (PVE) host.

The script will create backups using tar with specified backup prefix and date and time stamp in the file name. Script will also delete backups that are older then number of days specified.

Create backup script file

To create backup script that will be executed every day we can create backup script in /etc/cron.daily/ folder. We need to make it writeable by root (creator) only, but readable and executable by everyone:

touch /etc/cron.daily/pvehost-backup
@judero01col
judero01col / Service KMS
Last active April 28, 2025 05:41
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato

Papers (and articles) for the Container Technologies

For own self-education purpose

Containers

  1. TBD
  2. Docker: Lightweight Linux Containers for Consistent Development and Deployment, Dirk Merkel, Linux Journal, March 2014
  3. Networking in Containers and Container Clusters, Victor Marmol, Rohit Jnagal, and Tim Hockin, netdev 0.1, Feb 14-17, 2015
@Vartkat
Vartkat / buildresticexcludes.sh
Last active February 20, 2025 14:54
Bash script to build a restic exclude list that mimics Apple TimeMachine exclude list
#!/bin/bash
# This script intend to mimic TimeMachine exclude list.
# As the exclude list can evolve between backups it has to be rebuilt before every backup
# Apple uses 5 types of excludes, four from the /System/Library/CoreServices/backupd.bundle/Contents/Resources/StdExclusions.plist file
# and files from applications where metadata says to not backup, these can be found usinf
# sudo mdfind "com_apple_backup_excludeItem = 'com.apple.backupd'"
SYSLOG=/usr/bin/syslog;
TEMPFILE=$1;
@serithemage
serithemage / AWSSecurityContents.md
Last active March 20, 2025 22:45
AWS λ³΄μ•ˆ κ΄€λ ¨ 자료 λͺ¨μŒμ§‘

AWS ν•™μŠ΅ 링크집 μ‹œλ¦¬μ¦ˆ