- chcolatey 설치
- Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- 기본 앱 제거 스카이프 : Get-AppxPackage skypeapp | Remove-AppxPackage 앱스토어 : Get-AppxPackage windowsstore | Remove-AppxPackage 윈도우폰 : Get-AppxPackage windowsphone | Remove-AppxPackage 3D빌더 : Get-AppxPackage 3dbuilder | Remove-AppxPackage 알람 앤 클락 : Get-AppxPackage windowsalarms | Remove-AppxPackage 계산기 : Get-AppxPackage windowscalculator | Remove-AppxPackage
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
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation=" | |
http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd | |
"> | |
<bean id="pb" class="java.lang.ProcessBuilder"> | |
<constructor-arg value="ls -al" /> | |
<property name="whatever" value="#{ pb.start() }"/> | |
</bean> |
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
import java.util.* | |
// https://www.hackerrank.com/challenges/no-prefix-set/problem | |
data class TrieNode( | |
val c: Char = '-', | |
var cnt: Int = 0, | |
var isLeaf: Boolean = false, | |
val children: MutableMap<Char, TrieNode> = HashMap() | |
) | |
fun insert(root: TrieNode, keyword: String): Boolean { |
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
#!/bin/sh | |
ARG=($@) | |
arg_count=${#ARG[@]} | |
if [[ $arg_count -lt 4 ]]; then | |
echo "Usage: $0 loopCount (ab -n opt param) (ab -c opt param) url" >&2 | |
exit 1 | |
fi | |
loop=${ARG[0]} | |
num=${ARG[1]} |
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
# Reuse an existing ssh-agent on login, or create a new one. Append this to your .bashrc | |
# I have no idea who the author of the original concept was for reusing agents. This | |
# version also handles the case where the agent exists but has no keys. | |
GOT_AGENT=0 | |
for FILE in $(find /tmp/ssh-* -type s -user ${LOGNAME} -name "agent.[0-9]*" 2>/dev/null) | |
do | |
SOCK_PID=${FILE##*.} |
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
# Set variables in .bashrc file | |
# don't forget to change your path correctly! | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin |
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
// 0 is the first line from the lookAndSay result. | |
fun ant(line: Int): String { | |
var resultString = "1" | |
var lineCounter = line | |
while (lineCounter-- > 0) { | |
var tempBuffer = StringBuilder() | |
var curCompareChar = resultString[0] | |
var curCnt = 1 | |
for (idx in 1..resultString.length - 1) { |
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
# Install Homebrew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Install nvm | |
brew install nvm | |
# Export nvm environment | |
export NVM_DIR="$HOME/.nvm" | |
. "$(brew --prefix nvm)/nvm.sh" |
NewerOlder