Skip to content

Instantly share code, notes, and snippets.

View tyanyaw's full-sized avatar

TyaNyaw tyanyaw

  • TyaNyaw
  • Semarang, Indonesia
View GitHub Profile
@tyanyaw
tyanyaw / clean-docker-for-mac.sh
Created September 2, 2023 10:20
Cleaning Docker.raw on Mac OS
#!/bin/bash
# Copyright 2017 Théo Chamley
# 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 to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
# to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
@tyanyaw
tyanyaw / install_minimal_server_debian_debootstrap.md
Last active March 26, 2022 08:11
Create Debian minimal server with debootstrap

GOAL : Debian 11 minimal server, size 700 MB

TOOL :

  • Linux : Debian 11 at /dev/sda, Target at /dev/sdb
  • Application : debootstrap, parted
  • User : root

@tyanyaw
tyanyaw / bash_sh_blink.sh
Created March 12, 2022 07:16
Bash SH Green Blinking promt with PS4
@tyanyaw
tyanyaw / linux-dialog-shortcut.sh
Created March 12, 2022 07:09
Linux Shorcut Dialog Command For Newbie
#!/bin/bash
#Variable for PS4
COL_NORM="$(tput setaf 9)"
COL_GREEN="$(tput setaf 2)"
T_BOLD="$(tput bold)"
COL_NORMAL="\033[0m"
BOLD="\033[1;33m"
BLINK="$(tput blink)"