PS> choco install golang
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
$list = Get-ChildItem | |
foreach($ls in $list) { | |
$ls.CreationTime.ToString("yyyy-MM-dd_")+$ls.Name | |
} |
I hereby claim:
- I am rumrais1n on github.
- I am rumraisin (https://keybase.io/rumraisin) on keybase.
- I have a public key ASB6v_9zxBFs9At7KK7jT9R4mVOs9vn2Az0iH3YVMyxtego
To claim this, I am signing this object:
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
# プロファイルがないとTab補完が効かなくなるのでない場合は追加 | |
$PROFILE_PARENT = $(Split-Path $PROFILE -Parent) | |
If( !(Test-Path $PROFILE_PARENT) ) { | |
New-Item -Type Directory $PROFILE_PARENT | |
} | |
New-Item -Type File $PROFILE | |
# 公式ページにあるダウンロードスクリプト | |
Set-ExecutionPolicy Bypass -Scope Process -Force | |
Invoke-Expression ( (New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1') ) |
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
cmd /c powercfg -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c |
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
xrandr | |
cvt 1920 1080 | |
sudo xrandr | |
sudo xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync | |
sudo xrandr --addmode LVDS-1 "1920x1080_60.00" |
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/zsh | |
for file in `find . -maxdepth 1 -type f`; do | |
playlistHead=`head -n 1 $file` | |
playlistName=`echo $playlistHead | cut -b 2-` | |
echo "File Name : $file" | |
echo "Playlist Name: $playlistName" | |
mv $file $playlistName | |
done |