Skip to content

Instantly share code, notes, and snippets.

fileName Type Tags output title
Quah-D-2020.06-Pulse-Secure-Client-on-Ubuntu-Linux.md
Notes
Software
pdf_document
Pulse Secure Client on Ubuntu Linux
@M4R14
M4R14 / docker_kill.sh
Created September 8, 2021 07:13 — forked from scotthaleen/docker_kill.sh
docker kill all
#stop all containers:
docker kill $(docker ps -q)
#remove all containers
docker rm $(docker ps -a -q)
#remove all docker images
docker rmi $(docker images -q)
#remove intermediate containers, use "build --rm" to avoid them
@M4R14
M4R14 / docker-compose.override.yml
Last active September 7, 2021 06:58 — forked from diogoko/docker-compose.override.yml
Laravel Sail with phpMyAdmin
version: "3"
services:
phpmyadmin:
image: "phpmyadmin:5"
ports:
- "${FORWARD_PHPMYADMIN_PORT:-8001}:80"
environment:
PMA_HOST: "mysql"
UPLOAD_LIMIT: '400M'
PMA_USER: "${DB_USERNAME}"
@M4R14
M4R14 / deploy.sh
Created December 30, 2020 03:06 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd /home/forge/domain.com
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin master
@M4R14
M4R14 / php-code-inspection.md
Last active December 22, 2020 08:24 — forked from hassanjamal/php-code-inspection.md
How to install PHP code inspection tools using homebrew-php and how to integrate with JetBrain's IntelliJ or PhpStorm

Inspection Tools with homebrew-php

Prerequisites

  • Homebrew is installed

Step 1: Installing homebrew-php##

  1. brew tap homebrew/dupes
  2. brew tap josegonzalez/homebrew-php
  3. brew install PHP53 (or other version of your choice)
@M4R14
M4R14 / .zshrc
Created November 10, 2020 08:21 — forked from ktrysmt/.zshrc
using zplug in zsh
if [[ ! -d ~/.zplug ]];then
git clone https://github.com/zplug/zplug ~/.zplug
fi
source ~/.zplug/init.zsh
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/sudo", from:oh-my-zsh
zplug "plugins/command-not-found", from:oh-my-zsh
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-history-substring-search"

Exporting entire database:

$ mysqldump -u user -p database --opt | gzip > database.sql.gz

Export table

$ mysqldump -uroot --opt --databases DB_NAME --tables TABLE_NAME | gzip > /tmp/TABLE_NAME.export.sql.gz