Skip to content

Instantly share code, notes, and snippets.

View exanup's full-sized avatar

Anup Dhakal exanup

  • Kathmandu, Nepal
View GitHub Profile
@exanup
exanup / zshrc
Last active December 29, 2021 15:05
Dotfiles zshrc
# This file is supposed to reside in ~/dotfiles/zshrc
# and sourced from ~/.zshrc as `. ~/dotfiles/zshrc`
# For Windows WSL 2
cd ~
export GPG_TTY=$(tty)
export PIPENV_VENV_IN_PROJECT=1
@exanup
exanup / switchable-ssh-profiles-for-github.md
Last active December 29, 2021 15:03
Switchable SSH Profiles for Github

Switchable SSH Profiles for Github

In your rc file:

alias gitp="git config --global core.sshCommand \"ssh -F ~/.ssh/config-personal\" && \
            git config --global user.email personal_email@example.com && \
	    git config --global user.name \"My Name\" && \
            git config --global commit.gpgsign true && \
            git config --global user.signingkey XXXXXXXXXXXXXXXX && \
@exanup
exanup / lemp-ubuntu17.10.md
Last active February 19, 2018 13:10
A Relatively Secure LEMP Server Stack Setup in Ubuntu 17.10 + phpMyAdmin

A Relatively Secure LEMP Server Stack Setup in Ubuntu 16.04 LTS

By Anup Dhakal

Introduction

In this guide, LEMP stands for Linux, Nginx (pronounced as Engine-X) , MariaDB (a drop in replacement for MySQL) and PHP (PHP Hypertext Preprocessor).

I have gone through many websites in order to learn even just the basics of setting up a LEMP server. Hence I know the hassle. Here I have created a through guide to help someone relatively new to setup a powerful LEMP machine easily and effortlessly. I hope this guide comes to someone's rescue.

Collection of some of must read guides for a PHP dev

Read these in the given order:

  1. PSR-0 Autoloading
  2. [PSR-4 Autoloading][2]
  3. [PSR-1 Basic Coding Standard][3]
  4. [PSR-2 Coding Style Guide][4]
@exanup
exanup / cloudSettings
Last active January 25, 2020 10:56
Visual Studio Code Sync Settings GIST
{"lastUpload":"2020-01-25T10:56:33.546Z","extensionVersion":"v3.4.3"}