Skip to content

Instantly share code, notes, and snippets.

@da8
da8 / install-geany-package-on-ubuntu.txt
Created April 11, 2022 11:50
install geany Package on Ubuntu
sudo apt-get install -y geany
@da8
da8 / install-free-pascal-on-ubuntu.txt
Created April 11, 2022 11:49
install free pascal on Ubuntu
fp-compiler
sudo apt-get install fp-compiler
fp-ide
sudo apt-get install fp-ide
@da8
da8 / make-git-work-with-gitlab-and-github-in-parallel.txt
Last active February 4, 2022 13:29
make git work with gitlab and github in parallel
to make git work with gitlab and github in parallel you need to change the config file ~/.ssh/config to the following:
Host gitlab.com
User git
Hostname gitlab.com
IdentityFile ~/.ssh/ID_RSA
TCPKeepAlive yes
IdentitiesOnly yes
Host github.com
@da8
da8 / create-permanent-bash-alias-on-kubuntu-20.04.3.txt
Last active January 24, 2022 17:06
create permanent bash alias on Kubuntu 20.04.3
You need to put bash shell aliases in the ~/.bashrc file file executed by bash for non-login shells. On most modern Linux distros, you may want to put all your bash alias definitions into a separate file like ~/.bash_aliases, instead of adding them in the ~/.bashrc file directly.
Please note that ~/.bash_aliases file only works if the following line presents in the ~/.bashrc file:
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
Edit ~/.bash_aliases or ~/.bashrc with the editor of your choice
Append your bash alias with for example with: alias ll='ls -la'
@da8
da8 / install-nvm-node-npm-and-global-angular-cli-on-kubuntu-20.04.3-lts.txt
Last active February 2, 2022 16:25
install nvm, node, npm and global angular cli on Kubuntu 20.04.3 LTS
NVM is a Node Version Manager tool. Using the NVM utility, you can install multiple node.js versions on a single system. You can also choose a specific Node version for applications. It also provides an option to auto-select the node version using the .nvmrc configuration file.
install nvm
cd ~/asmara/workbench
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
nvm --version
install node and npm using nvm
install the latest
nvm install node
@da8
da8 / copy-production-database-from-production-server-to-local-developement-machine.txt
Last active April 20, 2022 14:58
copy production database from production server to local developement machine
prequesites
REMOTE_USER
REMOTE_USER_PASSWORD
PRODUCTIONSERVER_ADDRESS
PRODUCTIONSERVER_TEMP_WORKING_DIRECTORY
PRODUCTIONSERVER_MYSQL_ROOT_PASSWORD
PRODUCTION_DATABASE_NAME
PRODUCTION_DATABASE_DUMP
LOCAL_DEV_MACHINE_TEMP_WORKING_DIRECTORY
LOCAL_DEV_MACHINE_MYSQL_ROOT_PASSWORD
@da8
da8 / install-keepassxc-on-kubuntu-20.04.3-lts-using-ppa.txt
Created January 20, 2022 09:59
install KeePassXC on Kubuntu 20.04.3 LTS using PPA
sudo add-apt-repository ppa:phoerious/keepassxc
sudo apt update
sudo apt install keepassxc
@da8
da8 / install-KeePassXC-on-Kubuntu-20.04.3-LTS-using-snap.txt
Created January 19, 2022 10:24
install KeePassXC on Kubuntu 20.04.3 LTS using snap
sudo snap install keepassxc
@da8
da8 / install-thunderbird-on-kubuntu-20.04.3-lts-using-snap.txt
Created January 19, 2022 09:39
install thunderbird on Kubuntu 20.04.3 LTS using snap
sudo snap install thunderbird
@da8
da8 / python-set-up-virtual-environment-on-kubuntu-20.04.3-lts.txt
Created January 18, 2022 10:49
python set up virtual environment on Kubuntu 20.04.3 LTS
make sure that python3.8-venv is installed
sudo apt install python3.8-venv
python3 -m venv NAMEOFVIRTUALENVIRONMENT (for example venv-projectname)
sourcce NAMEOFVIRTUALENVIRONMENT/bin/activate