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
ttf() { | |
if [ -z "$1" ]; then | |
echo >&2 Please specify CD number | |
return 1 | |
fi | |
_cd_num=$1 | |
set -- | |
_dir=$(echo ~/Music/Tunnel*/*_${_cd_num}-*) |
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
$erroractionpreference = 'stop' | |
if (-not (new-object security.principal.windowsprincipal( | |
[security.principal.windowsidentity]::getcurrent() | |
)).isinrole([security.principal.windowsbuiltinrole]::administrator)) { | |
write-error "Must be elevated." | |
} | |
$bash = resolve-path /tools/msys64/usr/bin/bash.exe |
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
function ttf { | |
$cds = gci ~/Music/Tunnel*/*"_$($args[0])-"*/*.mp3 | |
$i = 1 | |
$choices = $cds | %{ '&' + $i++ + " - $($_.name)" } | |
$picked = $host.ui.promptforchoice('CD to play:', "`n", $choices, 0) | |
mpv $cds[$picked] | |
} |
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
param( | |
[string]$ApiKey, | |
[validatescript({ | |
if (-not (test-path -pathtype leaf $_)) { | |
throw "Certificate file '$_' does not exist." | |
} | |
$true | |
})] | |
[system.io.fileinfo]$Certificate | |
) |
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
(if (and (is (window_class) "firefox-nightly") (is (window_role) "browser")) | |
(begin | |
(undecorate) | |
(geometry "1920x2160+0+0") | |
) | |
) |
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
irclog() { | |
chan_log=$(find ~/.weechat/logs -name "*.#${1}.*" -printf '%p ' | sed 's/ $//') | |
case "$chan_log" in | |
*" "*) | |
echo >&2 'irclog: multiple matches' | |
unset chan_log | |
return 1 | |
;; | |
"") |
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
BoldAsFont=1 | |
Transparency=67 | |
CursorType=block | |
CursorBlinks=no | |
Font=SF Mono | |
FontHeight=11 | |
AllowBlinking=yes | |
Locale=en_US | |
Charset=UTF-8 | |
ClickTargetMod=alt |
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
pacman --noconfirm --needed -S git make zip mingw-w64-x86_64-gcc mingw-w64-x86_64-gcc-libs \ | |
mingw-w64-x86_64-gcc-libgfortran mingw-w64-x86_64-zlib mingw-w64-x86_64-binutils mingw-w64-x86_64-cmake \ | |
mingw-w64-x86_64-crt-git mingw-w64-x86_64-extra-cmake-modules mingw-w64-x86_64-headers-git \ | |
mingw-w64-x86_64-make mingw-w64-x86_64-pkgconf mingw-w64-x86_64-tools-git \ | |
mingw-w64-x86_64-windows-default-manifest mingw-w64-x86_64-libmangle-git mingw-w64-x86_64-ninja \ | |
mingw-w64-x86_64-gdb mingw-w64-x86_64-ccache |
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
function ver_windows { | |
$osver = [environment]::osversion.version | |
$major = $osver.major | |
$build = $osver.build | |
if ($major -eq 10 -and $build -gt 22000) { | |
$major = 11 | |
} | |
try { |
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
if has('win32') || has('gui_win32') | |
if executable('pwsh') | |
set shell=pwsh | |
else | |
set shell=powershell | |
endif | |
set shellquote= shellpipe=\| shellredir=> shellxquote= | |
set shellcmdflag=-nologo\ -noprofile\ -executionpolicy\ remotesigned\ -noninteractive\ -command | |
endif |