This file contains 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_CURRENT_USER\Software\Classes\Directory\shell\Open with &CMD] | |
@="Open with &CMD" | |
"Icon"="C:\\Windows\\System32\\conhost.exe" | |
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &CMD\command] | |
@="C:\\Windows\\System32\\conhost.exe cmd /s /k pushd \"%V\"" | |
This file contains 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
# hidutil property --set '{"UserKeyMapping":[ { "HIDKeyboardModifierMappingSrc": 0x700000065, "HIDKeyboardModifierMappingDst": 0x7000000E6 } ]}' | |
hidutil property --set '{"UserKeyMapping":[ | |
{ | |
"HIDKeyboardModifierMappingSrc": 0x700000065, | |
"HIDKeyboardModifierMappingDst": 0x7000000E6 | |
}, | |
]}' |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
if [ "$(id -u)" -ne 0 ]; then | |
echo -e 'Script must be run as root. Use sudo, su, or add "USER root" to your Dockerfile before running this script.' | |
exit 1 | |
fi | |
# go1.19.linux-amd64.tar.gz | |
export GO_DOWNLOAD_FILE=$(curl -L -Ss https://go.dev/dl/\?mode\=json | jq -r '.[0].files[] | select(.arch == "amd64") | select(.os == "linux") | .filename') |
This file contains 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
apk --no-cache add curl | |
curl -L -Ss "https://github.com/cloverstd/tcping/releases/download/v0.1.1/tcping-linux-amd64-v0.1.1.tar.gz" -o "/tmp/tcping-linux.tgz" | |
tar zxf /tmp/tcping-linux.tgz -C /usr/local/bin && cd /usr/local/bin/ && chown root.root tcping && chmod 755 tcping |
This file contains 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
#Requires -version 5.1 | |
function Check-IAMUserLastUsed () { | |
param | |
( | |
[Parameter(Mandatory = $true)] | |
[string]$UserName, | |
[Parameter(Mandatory = $false)] | |
[int]$TargetDays = 180, |
This file contains 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
#Requires -version 5.1 | |
cd C:\Users\giseong.eom\Source | |
$repolist1 = dir -Directory -Exclude archived C:\Users\giseong.eom\Source | % { $_.FullName } | |
$repolist2 = ( | |
"c:\Users\giseong.eom\.dotfiles", | |
"c:\Users\giseong.eom\tools" | |
) | |
$repolist = $repolist1 + $repolist2 |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
# Unattended install of homebrew | |
# https://docs.brew.sh/Installation#unattended-installation | |
export NONINTERACTIVE=1 && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# Adding Homebrew to your PATH | |
# https://docs.brew.sh/Homebrew-on-Linux | |
test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)" |
This file contains 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
#Requires -version 5.1 | |
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory = $false)] | |
[string]$list_file_path = 'list.txt' | |
) | |
# Tools |
This file contains 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
#Requires -version 5 | |
#Requires -RunAsAdministrator | |
# Enable tls1.2 from default (SSL3, TLS) | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Ssl3 -bor [Net.SecurityProtocolType]::Tls -bor [Net.SecurityProtocolType]::Tls11 -bor [Net.SecurityProtocolType]::Tls12 | |
# Enable TLS1.2 permanently | |
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord -Force | |
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord -Force |
This file contains 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
#Requires -version 5.1 | |
Param ([string]$region = 'ap-northeast-2') | |
Import-Module AWS.Tools.Common | |
Import-Module aws.tools.ec2 | |
Param ([string]$region = 'ap-northeast-2') | |
Set-AWSCredential -ProfileName default | |
Set-DefaultAWSRegion -Region $region |
NewerOlder