Skip to content

Instantly share code, notes, and snippets.

View nonohry's full-sized avatar
🎯
Focusing

Nono Heryana nonohry

🎯
Focusing
View GitHub Profile
@nonohry
nonohry / gist:017c886f9b664db7e72981af15e9aeaf
Created December 6, 2020 14:28
Install Lets Encrypt Certificate on CentOS 8
$ sudo curl -O https://dl.eff.org/certbot-auto
$ sudo mv certbot-auto /usr/local/bin/certbot-auto
$ chmod 0755 /usr/local/bin/certbot-auto
$ sudo /usr/local/bin/certbot-auto --nginx
@nonohry
nonohry / gist:e46cea8e8c54371d39246a2eafa7f500
Created December 6, 2020 11:13
Remove all packages installed after a certain date/time
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,
libck-connector0
libgssrpc4
libkadm5clnt-mit9
libkdb5-7
libkadm5srv-mit9
@nonohry
nonohry / errorpma.txt
Created December 1, 2020 13:45
PhpMyAdmin 404 error on CWP
run this command:
sh /scripts/mysql_phpmyadmin_update
@nonohry
nonohry / unzip.sh
Created June 2, 2020 09:43
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 file.zip -d destination_folder
```
If the source and destination directories are the same, you can simply do:
```
@nonohry
nonohry / rar2zip
Created May 23, 2020 16:51
Convert Rar To Zip
#!/bin/bash
echo "Converting RARs to ZIPs"
# Separate files using ␜ http://graphemica.com/%E2%90%9C.
IFS="␜"
# Use RAM disk for temporary files.
WORKDIR="/dev/shm/"
# Set name for the temp dir. This directory will be created under WORKDIR
@nonohry
nonohry / 8TB
Created May 22, 2020 16:18
8 TB collection of data
Hey! i'm sharing 8 TB collection of data include over 8000 Courses, Ebooks, Etc
https://mega.nz/folder/TjAGxSLD#pi9cuU55Kqze_7v9tzsMHQ
@nonohry
nonohry / markt.m
Created May 22, 2020 06:41
Marketing
https://mega.nz/folder/WuYAQIxA#aCniH_khrni035C-VIfKjQ
@nonohry
nonohry / snap.md
Created April 25, 2020 12:23
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
nonohry / python3default.md
Created April 21, 2020 09:17
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.
@nonohry
nonohry / datamhs.cpp
Created February 25, 2020 05:07
Data Mahasiswa
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
using namespace std;
//Deklarasi struct
struct data_mahasiswa
{