Skip to content

Instantly share code, notes, and snippets.

View lonehack's full-sized avatar

Dimas Toha Pramawitra lonehack

  • Surabaya, Indonesia
View GitHub Profile
@lonehack
lonehack / wipe.sh
Created May 25, 2017 04:00
Linux shellscript for secure wipe drive
#!/bin/bash
YELLOW="\033[1;33m"
RED="\033[1;31m"
WHITE="\033[1;37m"
ENDCOLOR="\033[0m"
if [ $USER != root ]; then
echo -e $RED"Error: must be root"$ENDCOLOR
echo "command : sudo $0"
@lonehack
lonehack / repair.sh
Created May 25, 2017 03:58
Shell script for disk repair
#!/bin/bash
YELLOW="\033[1;33m"
RED="\033[1;31m"
WHITE="\033[1;37m"
ENDCOLOR="\033[0m"
# Root Check
if [ $USER = root ]; then
echo -e $RED"Error: must be not root"$ENDCOLOR
@lonehack
lonehack / cleaner.sh
Last active June 13, 2016 12:23
Linux System Cleaning Script
#!/bin/bash
#########################################################################################################
## Linux System Cleaning Script
##
## Code by : Dimas Toha Pramawitra (Lonehack)
## <[email protected]>
## Created : 04 Feb 2014
## Modified : 13 Jun 2016
##
@lonehack
lonehack / opencv-uninstall.sh
Last active September 5, 2020 13:15
Ubuntu shellscript for uninstall OpenCV
#!/bin/bash
#########################################################################################################
## OpenCV Uninstallation Script
##
## Code by : Dimas Toha Pramawitra (Lonehack)
## <[email protected]>
## Created : 20 Mar 2016
## Modified : 16 Apr 2016
##
@lonehack
lonehack / opencv-install.sh
Last active April 17, 2016 01:08
Ubuntu shellscript to install OpenCV
#!/bin/bash
#########################################################################################################
## OpenCV Installation Script
##
## Code by : Dimas Toha Pramawitra (Lonehack)
## <[email protected]>
## Created : 20 Mar 2016
## Modified : 16 Apr 2016
##