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
## set term title example | |
_termdrawtitle () { | |
setopt EXTENDED_GLOB | |
printf '\e]2;%s\a' "$USER@$(hostname)" | |
} | |
add-zsh-hook precmd _termdrawtitle | |
add-zsh-hook preexec _termdrawtitle |
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
.method public static IsEnableX()Z | |
.locals 4 | |
.prologue | |
const/4 v0, 0x0 | |
return v0 | |
.end method |
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
@echo off | |
NET SESSION >nul 2>&1 | |
IF %ERRORLEVEL% EQU 0 GOTO install_mod | |
echo Run As Administrator to make this script works. | |
pause | |
goto:eof | |
:install_mod | |
echo :: Finding the right registry key | |
reg query HKLM\SYSTEM\CurrentControlSet\Control\Class /F "AMD Radeon (TM) RX 460 Graphics" /s | Find "HKEY" | Findstr /vi "Settings" > %TEMP%\RX460REGKEY.TXT |
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
#!/usr/bin/env bash | |
# width of window | |
W=250 | |
# City | |
C=Malang | |
prin_weather() { | |
printf '\n\n %s Now \n\n' $C | |
curl -s "wttr.in/$C?0QT" | |
printf '\n' |
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
#!/usr/bin/env bash | |
# Better overamplified-volume icon for gnome with exclamation mark | |
# thanks @addy-dclxvi for the idea :) | |
IC=/usr/share/icons/Adwaita | |
OAMP=/tmp/overamplified.svg | |
command -v inkscape >/dev/null 2>&1 || { echo >&2 "Inkcape not found. exiting"; exit 1; } | |
cat <<-EOF > $OAMP | |
<svg width="16" height="16" version="1.1" xmlns="http://www.w3.org/2000/svg"> |
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
#!/usr/bin/env bash | |
# ./install.sh applist.txt | |
for appname in $(cat $1); do | |
echo -ne "Install> $appname\nStatus: " | |
adb shell cmd package install-existing $appname | |
done |
OlderNewer