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: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 / 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
{
@nonohry
nonohry / vboxmanjaro.md
Created September 10, 2019 11:13
Install Virtualbox on Manjaro Linux

To install VirtualBox, you need to install the packages virtualbox and linux*-virtualbox-host-modules. The latter must match the version of the kernel you are running. To install VirtualBox and automatically install the kernel modules for your installed kernels enter the following command in the terminal:

pamac install virtualbox $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-virtualbox-host-modules"}' ORS=' ') 

Once the installation has completed, it will then be necessary to add the VirtualBox Module to your kernel. The easy way is to simply reboot your system. Otherwise, to start using VirtualBox immediately, enter the following command:

sudo vboxreload
@nonohry
nonohry / matrics.html
Created September 3, 2019 06:24
Article Matrics
<div id="IssueFull">
<img src="https://1.bp.blogspot.com/-bI59Tfv3L2M/XW3uqpfOG7I/AAAAAAAAgnk/lWPVTOhxKDQBgCBZg54cOwKa5XoCOU5FQCLcBGAs/s1600/graph.png" height="15px">
{if is_a($article, 'PublishedArticle')}{assign var=galleys value=$article->getGalleys()}{/if}
<span> | {$totalViews}</span> <span>{translate key="article.abstract"} views:</span> <span><strong>{$article->getViews()}</strong></span>
{if $galleys}
{foreach from=$galleys item=galley name=galleyList}
<span> | <img src="(https://1.bp.blogspot.com/-8PoENXHuRM0/W6Bm4_-ECKI/AAAAAAAAZbE/r_91Jl_xujAXM281Dxx89i8QYHm2Xu4GgCPcBGAYYCw/s1600/pdf.png" height="15px"> {$galley->getGalleyLabel()} views:</span> <span><strong>{$galley->getViews()}</strong></span>
{/foreach}
{/if}
</div>