start new:
tmux
start new with session name:
tmux new -s myname
ISO 3166 Country Code | ISO639-2 Country Code | Country | ISO 3166 Country Code | ISO639-2 Lang | Language | Date Format | |
---|---|---|---|---|---|---|---|
ALB | AL | Albania | sqi | sq | Albanian | yyyy-MM-dd | |
ARE | AE | United Arab Emirates | ara | ar | Arabic | dd/MM/yyyy | |
ARG | AR | Argentina | spa | es | Spanish | dd/MM/yyyy | |
AUS | AU | Australia | eng | en | English | d/MM/yyyy | |
AUT | AT | Austria | deu | de | German | dd.MM.yyyy | |
BEL | BE | Belgium | fra | fr | French | d/MM/yyyy | |
BEL | BE | Belgium | nld | nl | Dutch | d/MM/yyyy | |
BGR | BG | Bulgaria | bul | bg | Bulgarian | yyyy-M-d | |
BHR | BH | Bahrain | ara | ar | Arabic | dd/MM/yyyy |
git diff -p \ | |
| grep -E '^(diff|old mode|new mode)' \ | |
| sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \ | |
| git apply |
## Prerequisite: You must either boot to your OS on runlevel 3, or you must manually disable all
## instances of the X server when running the NVIDIA installer.
# Check if you have the packman repository installed
$ zypper lr
# output will be like this:
# | Alias | Name | Enabled | GPG Check | Refresh
---+-----------------------+-----------------------+---------+-----------+--------
1 | RepoAlias | RepoName | Yes/No | Yes/No | Yes/No
Some people prefer to use the Caps Lock key in order to type capital letters, but on linux there's a delay when the button is pressed. Since there appears to be very few people who prefer to type this way the problem has never been fixed.
This is a short and sweet tutorial on how to fix that.
In most distibutions you can do this by pressing the Win/Super key, type terminal
and press Enter.
RUN apt update | |
RUN apt upgrade -y | |
RUN apt install -y apt-utils | |
RUN a2enmod rewrite | |
RUN apt install -y libmcrypt-dev | |
RUN docker-php-ext-install mcrypt | |
RUN apt install -y libicu-dev | |
RUN docker-php-ext-install -j$(nproc) intl | |
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev | |
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ |
title | subtitle | author | date | source |
---|---|---|---|---|
npm vs Yarn Command Translation Cheat Sheet |
CLI commands comparison |
yarn |
February 15, 2020 |
First install HomeBrew and then use brew to install the bash-completion package
brew install bash-completion
After that you can open up your ~/.bashrc
file and add the following:
# Load git prompt that display current branch etc
// As a way to play with functions and loops, let's implement a square root function: given a number x, | |
// we want to find the number z for which z² is most nearly x. | |
// | |
// Computers typically compute the square root of x using a loop. Starting with some guess z, | |
// we can adjust z based on how close z² is to x, producing a better guess: | |
// | |
// z -= (z*z - x) / (2*z) | |
// Repeating this adjustment makes the guess better and better until we reach an answer that is as close | |
// to the actual square root as can be. | |
// |