Skip to content

Instantly share code, notes, and snippets.

View okitavera's full-sized avatar
🏖️
Hiatus (kind of)

Nanda Oktavera okitavera

🏖️
Hiatus (kind of)
View GitHub Profile
@okitavera
okitavera / install.sh
Last active August 29, 2022 08:43
My Xperia's Bloatware Lists, Uninstaller, and Restorer
#!/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
@okitavera
okitavera / vol-overamp.sh
Last active March 21, 2019 06:55
Better overamplified-volume icon for gnome
#!/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">
@okitavera
okitavera / dzen2-wttr.sh
Last active February 19, 2021 10:08
wttr.in example with dzen2 and polybar module
#!/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'
@okitavera
okitavera / X550IU Thermal Table Patcher.bat
Created September 13, 2018 13:53
Modify Temperature Limit via PowerPlay Table for X550IU
@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
.method public static IsEnableX()Z
.locals 4
.prologue
const/4 v0, 0x0
return v0
.end method
## 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
masuk ke mode root:
# sudo su
masuk ke folder www
# cd /var/www
buat folder nya (contoh cobaweb) :
# mkdir /var/www/cobaweb.com
buat file index.html nya :
/*
my indicator in lightdm-gtk-greeter.conf
indicators = ~host;~power;~spacer;~~Arch Linux;~spacer;~session;~clock
*/
@define-color bg rgba(20, 45, 50, 0.9);
@define-color bg_darken rgba(20, 45, 50, 0.75);
@define-color clear rgba(0, 0, 0, 0);
@define-color bg_alt #b13041;
@okitavera
okitavera / userChrome.css
Created January 27, 2018 16:51
My Current userChrome.css
/* Auto-hide toolbar */
:root[uidensity=compact] #navigator-toolbox {
--nav-bar-height: 33px;
}
:root:not([uidensity]) #navigator-toolbox {
--nav-bar-height: 39px;
}
:root[uidensity=touch] #navigator-toolbox {
@okitavera
okitavera / material-colors.json
Created January 26, 2018 15:22 — forked from kawanet/material-colors.json
Material Design Style Color Palette as JSON
{
"red": {
"50": "#ffebee",
"100": "#ffcdd2",
"200": "#ef9a9a",
"300": "#e57373",
"400": "#ef5350",
"500": "#f44336",
"600": "#e53935",
"700": "#d32f2f",