View show_progressbar.sh
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/bash | |
BAR_SIZE=40 | |
BAR_CHAR_DONE='#' | |
BAR_CHAR_TODO='-' | |
BAR_PERCENTAGE_SCALE=2 | |
show_progress() { | |
CURRENT=$1 | |
TOTAL=$2 |
View docker-compose.yaml
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
version: '3' | |
services: | |
homeassistant: | |
container_name: homeassistant | |
image: "ghcr.io/home-assistant/home-assistant:stable" | |
volumes: | |
- /var/lib/homeassistant/config:/config | |
- /etc/localtime:/etc/localtime:ro | |
restart: unless-stopped | |
privileged: true |
View 1.boot-debian.txt
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
~ $ pkg upgrade -y | |
~ $ pkg install screen qemu-utils qemu-common qemu-system-x86_64-headless -y | |
~ $ mkdir debian && cd $_ | |
~/debian $ screen | |
~/debian $ qemu-img create -f qcow2 debian.img 4G | |
~/debian $ qemu-system-x86_64 -nographic -m 4G -hda debian.img | |
< PRESS Ctrl+B quickly > | |
iPXE> dhcp net0 | |
iPXE> kernel http://ftp.jaist.ac.jp/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux console=ttyS0 | |
< Keep in mind, Backspace key doesn't work well. Use Delete key instead. > |
View boot.sh
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
pkg update && pkg install qemu-utils qemu-common qemu-system-x86_64-headless | |
mkdir alpine && cd $_ | |
wget http://dl-cdn.alpinelinux.org/alpine/v3.12/releases/x86_64/alpine-virt-3.12.3-x86_64.iso | |
qemu-img create -f qcow2 alpine.img 4G | |
qemu-system-x86_64 -machine q35 -m 2048 -smp cpus=2 -cpu qemu64 \ | |
-drive if=pflash,format=raw,read-only=on,file=$PREFIX/share/qemu/edk2-x86_64-code.fd \ | |
-netdev user,id=n1,hostfwd=tcp::2222-:22 -device virtio-net,netdev=n1 \ | |
-cdrom alpine-virt-3.12.3-x86_64.iso \ | |
-nographic alpine.img |
View ubuntudde-setup.sh
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
echo "deepin-wm --replace > /dev/null 2>&1 < /dev/null &" >> ~/.profile | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install fcitx fcitx-mozc -y | |
sudo apt purge ibus | |
sudo apt install dconf-cli -y | |
dconf write /com/deepin/dde/sound-effect/desktop-login false | |
dconf write /com/deepin/dde/sound-effect/desktop-logout false |
View tweetdeck.twitter.com.css
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
@-moz-document domain("tweetdeck.twitter.com") | |
{ | |
:root | |
{ | |
/* Change this var to adjust width */ | |
--column-width: 270px; | |
} | |
/* Tweet composer */ |
View fastest_arrest.js
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
for(;;)alert() |
View initialize.sh
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/bash | |
check_success() | |
{ | |
if [ "$?" -ne "0" ]; then | |
echo -e "\033[31m✘\033[0m" | |
exit 1 | |
fi | |
echo -e "\033[32m✔\033[0m" | |
} |
View youtube-music-plus.user.css
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
/* ==UserStyle== | |
@name Youtube Music Plus | |
@namespace kataba.me | |
@version 0.1.0 | |
@description Make youtube music great again | |
@author katabame | |
==/UserStyle== */ | |
@-moz-document domain("music.youtube.com") | |
{ | |
html:not([style-scope]):not(.stype-scope) |
View ConnectionTime.plugin.js
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
//META{"name":"ConnectionTime","website":"https://kataba.me/","source":"https://gist.github.com/katabame/ef65c6379c8d50af8702c5932c6dbf5b"}*// | |
/* | |
MIT License | |
Copyright (c) 2018 katabame | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |
NewerOlder