This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # 1. 환경 설정 | |
| WG_CONF="/etc/wireguard/wg0.conf" | |
| SERVER_PUB_KEY=$(wg show wg0 public-key 2>/dev/null) | |
| ENDPOINT="hostname:51820" | |
| DNS="8.8.8.8" | |
| ALLOWED_IPS_CLIENT="10.50.0.0/24, 10.10.10.0/24" | |
| # 2. 실시간 상태 분석 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IP=$(nslookup myip.opendns.com resolver1.opendns.com | awk '/^Address: /{ ip=$2 } END{ print ip }') | |
| curl -s -X PUT \ | |
| "https://api.cloudflare.com/client/v4/zones/[Zone ID]/dns_records/[DNS Record ID]" \ | |
| -H "Authorization: Bearer [API Token]" \ | |
| -H "Content-Type: application/json" \ | |
| --data '{ | |
| "type": "A", | |
| "name": "[Target Domain]", | |
| "content": "'"$IP"'", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export LC_ALL=ko_KR.UTF-8 | |
| clear() { | |
| if [[ "$1" == "--hard" ]]; then | |
| # 히스토리 파일 비우기 | |
| :> ~/.zsh_history | |
| # 현재 세션 히스토리 지우기 | |
| history -p | |
| # 화면 지우기 | |
| command clear |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # 1. Add IBM Repo | |
| curl https://public.dhe.ibm.com/software/ibmi/products/odbc/debs/dists/1.1.0/ibmi-acs-1.1.0.list | sudo tee /etc/apt/sources.list.d/ibmi-acs-1.1.0.list | |
| # 2. Update repo list | |
| sudo apt update -y | |
| # 3. Install ODBC Drivers | |
| sudo apt install -y ibm-iaccess |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| powercfg /batteryreport | |
| start battery-report.html | |
| timeout /t 5 | |
| del /f /q battery-report.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ls -hal --group-directories-first --time-style=+'%Y/%m/%d %H:%M:%S' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rd /s /q linux-x64 | |
| for %%i in (1,1,3) do cd .. | |
| dotnet publish -r linux-x64 --self-contained true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name 하이웍스 메일발송 UI/UX 개선 | |
| // @version 1.4 | |
| // @author MinkiDev | |
| // @match https://*.office.hiworks.com/*/mail* | |
| // ==/UserScript== | |
| (function() { | |
| if(window.location.href.includes("m_write")) { | |
| document.getElementsByClassName("main-btn")[0].style = "background-color: #cccccc; color: #808080; pointer-events: none;"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo 'unset HISTFILE' >> ~/.bash_profile | |
| set +o history | |
| rm -f .bash_history | |
| echo 'done' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
| "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,5b,e0,00,00,5c,e0,00,00,00,00 |
NewerOlder