Skip to content

Instantly share code, notes, and snippets.

View benzntech's full-sized avatar

Benson benzntech

  • Tech enthusiast
  • Coimbatore
View GitHub Profile
benzntech /
Created September 21, 2022 01:22 — forked from Whistler092/
# options:
# remove stopped containers and untagged images
# $ dkcleanup
# remove all stopped|running containers and untagged images
# $ dkcleanup --reset
# remove containers|images|tags matching {repository|image|repository\image|tag|image:tag}
# pattern and untagged images
# $ dkcleanup --purge {image}
benzntech / hacktext.txt
Last active July 1, 2020 23:47
elementaryOS Open Terminal Here | File Manager UX Hack
To open a command line shell in the pantheon File Browser in elementary OS, you need to create a text file and paste code into it.
The location of the file which needs to be created is:
One command you can use to edit it is:
sudo nano /usr/share/contractor/openinterminal.contract
benzntech /
Created March 7, 2019 14:50 — forked from fideloper/
Create vHost Ubuntu Lamp-Server (bash and python)
#! /usr/bin/python
from sys import argv
from os.path import exists
from os import makedirs
from os import symlink
from os import system
import getopt

Git commands

Tell Git who you are

Configure the author name and email address to be used with your commits.

Note that Git [strips some

benzntech / Instructions for php Installation.txt
Created October 10, 2018 11:46
Install PHP 5.6,7.1,7.2 On linux (Debian, Ubuntu, Mint ...) and Switch From PHP 5.6 => PHP 7.1
Install PHP 5.6,7.1,7.2 On linux (Debian, Ubuntu, Mint ...) and Switch From PHP 5.6 => PHP 7.1
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php5.6
heck Installed PHP Version
php -v
benzntech /
Last active April 25, 2018 06:21
LAMP Easy installation Bash Script.



LAMP is a powerful bash script for the installation of Apache + PHP + MySQL/MariaDB/Percona Server and so on. You can install Apache + PHP + MySQL/MariaDB/Percona Server in an very easy way, just need to choose what you want to install before installation. And all things will be done in a few minutes.

benzntech / convert id_rsa to pem
Created April 23, 2018 18:13 — forked from mingfang/convert id_rsa to pem
Convert id_rsa to pem file
openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem
chmod 700 id_rsa.pem
benzntech /
Last active January 10, 2023 19:40
ClamAV Antivirus Scanner For Linux (Review + Installation + Usage)

ClamAV Antivirus Scanner For Linux (Review + Installation + Usage)

ClamAV Antivirus for linux Malware, Viruses and Trojans on Linux are rare but not impossible as many would have you believe. So for the few times, you may need an antivirus ClamAV is an awesome choice. Though, I have never used any Antiviruses in Linux but I think one may need in some cases. There is an article on LinuxAndUbuntu that discusses in detail when you might want to use an Antivirus in Linux.

How Can Your Linux Be Hacked Using malware, worms etc?

benzntech / The Technical Interview Cheat
Created February 20, 2018 10:50 — forked from kenchung/The Technical Interview Cheat
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.