Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Nono Heryana nonohry

🎯
Focusing
View GitHub Profile
@nonohry
nonohry / gist:017c886f9b664db7e72981af15e9aeaf
Created Dec 6, 2020
Install Lets Encrypt Certificate on CentOS 8
View gist:017c886f9b664db7e72981af15e9aeaf
$ 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 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,
libck-connector0
libgssrpc4
libkadm5clnt-mit9
libkdb5-7
libkadm5srv-mit9
@nonohry
nonohry / errorpma.txt
Created Dec 1, 2020
PhpMyAdmin 404 error on CWP
View errorpma.txt
run this command:
sh /scripts/mysql_phpmyadmin_update
@nonohry
nonohry / unzip.sh
Created Jun 2, 2020
Unzip file on Terminal
View unzip.sh
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
Convert Rar To Zip
View rar2zip
#!/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
8 TB collection of data
View 8TB
Hey! i'm sharing 8 TB collection of data include over 8000 Courses, Ebooks, Etc
https://mega.nz/folder/TjAGxSLD#pi9cuU55Kqze_7v9tzsMHQ
View markt.m
https://mega.nz/folder/WuYAQIxA#aCniH_khrni035C-VIfKjQ
@nonohry
nonohry / snap.md
Created Apr 25, 2020
How to completely remove snap
View snap.md

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 Apr 21, 2020
Change the Python3 default version in Debian/Ubuntu
View python3default.md

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
{