sudo pacman -Syu zsh
You do not need to install manjaro-zsh-config
and all the other related packages like zsh-syntax-highlighting
, zsh-history-substring-search
, zsh-autosuggestions
, etc., as we will use Oh My Zsh.
sudo pacman -Syu zsh
You do not need to install manjaro-zsh-config
and all the other related packages like zsh-syntax-highlighting
, zsh-history-substring-search
, zsh-autosuggestions
, etc., as we will use Oh My Zsh.
https://www.kosinix.com/install-lets-encrypt-certificate-on-shared-hosting/ |
# Check the disk status of a server | |
$ df | |
# Find why the disk if full, list the 10 biggest directories/files from current directory | |
$ du -hsx * | sort -rh | head -10 |
<?php | |
use Doctrine\ORM\Mapping as ORM; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** | |
* @ORM\Entity() | |
* @ORM\Table(name="user") | |
*/ | |
class User |
// How to reset root password for MySQL on mac | |
mysql.server restart --skip-grant-tables | |
mysql | |
UPDATE mysql.user SET Password=PASSWORD('new_root_password') WHERE User='root'; | |
exit | |
mysql -u root -p | |
// new_root_password or your password |
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf |
#!/bin/bash | |
# Download the magic file. | |
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash | |
# Add to ~/.bash_profile file the following 'execute if it exists' code: | |
cat <<EOT >> ~/.bash_profile | |
if [ -f ~/.git-completion.bash ]; then | |
. ~/.git-completion.bash | |
fi |
#!/usr/bin/sh | |
# NOTE: To execute this script: bash install_mcrypt.sh | |
# Pre Reqs, These are important!!! | |
# Install xCode | |
# Launch xCode and open Preferences | |
# Select the Downloads Tab in the Preference Panel | |
# Under Components install Command Line Tools | |
# Highlight hash commit. | |
git config --global color.ui true | |
# Set opendiff as predefined tool to open while merging. | |
git config --global merge.tool opendiff | |
# Set alias for `git status` to `git st`. | |
git config --global alias.st status | |
# Shorter git status messages. | |
git config --global alias.s "status -s" | |
git config --global alias.co checkout | |
git config --global alias.br branch |
#!/bin/bash | |
# GTK+ and Firefox for Amazon Linux | |
# Written by Joseph Lawson 2012-06-03 | |
# http://joekiller.com | |
# http://joekiller.com/2012/06/03/install-firefox-on-amazon-linux-x86_64-compiling-gtk/ | |
# chmod 755 ./gtk-firefox.sh | |
# sudo ./gtk-firefox.sh | |