Skip to content

Instantly share code, notes, and snippets.


Nono Heryana nonohry

View GitHub Profile
nonohry / gist:017c886f9b664db7e72981af15e9aeaf
Created Dec 6, 2020
Install Lets Encrypt Certificate on CentOS 8
View gist:017c886f9b664db7e72981af15e9aeaf
$ sudo curl -O
$ sudo mv certbot-auto /usr/local/bin/certbot-auto
$ chmod 0755 /usr/local/bin/certbot-auto
$ sudo /usr/local/bin/certbot-auto --nginx
nonohry / gist:e46cea8e8c54371d39246a2eafa7f500
Created Dec 6, 2020
Remove all packages installed after a certain date/time
View gist:e46cea8e8c54371d39246a2eafa7f500
Specific date %d-%m-%d replace on here,
grep "2020-12-9.*.install " /var/log/dpkg.log | awk '{ print $4 }' | cut -d: -f1
You get a list of packages,
nonohry / errorpma.txt
Created Dec 1, 2020
PhpMyAdmin 404 error on CWP
View errorpma.txt
run this command:
sh /scripts/mysql_phpmyadmin_update
nonohry /
Created Jun 2, 2020
Unzip file on Terminal
If the unzip command isn't already installed on your system, then run:
sudo apt-get install unzip
After installing the unzip utility, if you want to extract to a particular destination folder, you can use:
unzip -d destination_folder
If the source and destination directories are the same, you can simply do:
nonohry / rar2zip
Created May 23, 2020
Convert Rar To Zip
View rar2zip
echo "Converting RARs to ZIPs"
# Separate files using ␜
# Use RAM disk for temporary files.
# Set name for the temp dir. This directory will be created under WORKDIR
nonohry / 8TB
Created May 22, 2020
8 TB collection of data
View 8TB
Hey! i'm sharing 8 TB collection of data include over 8000 Courses, Ebooks, Etc
View markt.m
nonohry /
Created Apr 25, 2020
How to completely remove snap

Find installed snaps: snap list

Remove installed snaps: sudo snap remove

Remove snapd: sudo apt purge snapd

Remove snap directory from home: rm -rf ~/snap

If you receive an error removing snapd then do the following sudo rm -rf /var/cache/snapd then run sudo apt purge snapd

nonohry /
Created Apr 21, 2020
Change the Python3 default version in Debian/Ubuntu

You can achieve this by applying below simple steps -

  • Check python version on terminal - python --version
  • Get root user privileges. On terminal type - sudo su
  • Write down the root user password
  • Execute this command to switch to python 3.6 -
  • update-alternatives --install /usr/bin/python python /usr/bin/python3 1
  • Check python version - python --version
  • Done.
View datamhs.cpp
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
using namespace std;
//Deklarasi struct
struct data_mahasiswa