Git commands
Configure the author name and email address to be used with your commits.
Note that Git [strips some
#!/bin/bash | |
# 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} |
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: | |
/usr/share/contractor/openinterminal.contract | |
One command you can use to edit it is: | |
sudo nano /usr/share/contractor/openinterminal.contract |
#! /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
Configure the author name and email address to be used with your commits.
Note that Git [strips some
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 |
LAMP
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.
openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem | |
chmod 700 id_rsa.pem |
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?
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.
###Array ####Definition: