Skip to content

Instantly share code, notes, and snippets.

View elephantux's full-sized avatar
🏠
Working from home

Yury Boichuk elephantux

🏠
Working from home
  • Mysteria
  • Latvia
View GitHub Profile
@kuznero
kuznero / install-zsh.md
Created November 8, 2019 15:24
Install zsh on Ubuntu 18.04

Setup Zsh with goodies

Oh my zsh

Install with curl:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@hanhpv
hanhpv / nginx-phpfpm-mysql-on-mac.md
Last active April 3, 2024 08:59
Nginx, PHP-FPM, MySQL on Mac OSX

Xcode

Make sure you have the latest version of XCode installed. Available from the AppStore.

Install the Xcode Command Line Tools:

xcode-select --install

Homebrew

Homebrew is the missing package manager for OSX. Download and install using the following command:

@runbrun
runbrun / addvhost.sh
Created January 18, 2014 00:09
bash script to create nginx virtual hosts
#!/usr/bin/env bash
#
# Nginx - new server block
# http://rosehosting.com
read -p "Enter username : " username
read -p "Enter domain name : " domain
# Functions
ok() { echo -e '\e[32m'$domain'\e[m'; } # Green
die() { echo -e '\e[1;31m'$domain'\e[m'; exit 1; }
@subfuzion
subfuzion / gist:1128192
Created August 5, 2011 18:37
Git Tips: Reset, Clean - Remove untracked files and directories from the working tree when switching branches or checking out different commits.
git reset --hard
git clean -f -d
Description:
============
Git Tips: Remove untracked files and directories from the working
tree when switching branches or checking out different commits.
Explanation: