Skip to content

Instantly share code, notes, and snippets.

View Kris-Simpson's full-sized avatar

Serhii Vitko Kris-Simpson

View GitHub Profile
@Kris-Simpson
Kris-Simpson / server_setup.sh
Last active October 9, 2015 13:09 — forked from deepakkumarnd/server_setup.sh
Server setup script
echo "* Updating system"
apt-get update
apt-get -y upgrade
echo "* Installing packages"
apt-get -y install build-essential libmagickcore-dev imagemagick libmagickwand-dev libxml2-dev libxslt1-dev git-core nginx redis-server curl nodejs htop
id -u deploy
if [ $? -ne 0 ]
then
@Kris-Simpson
Kris-Simpson / gist:473cb903698e3f9be94f
Created March 25, 2016 16:40 — forked from clintel/gist:1155906
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@Kris-Simpson
Kris-Simpson / .bash_profile
Last active April 9, 2019 14:01 — forked from Surzhko/.bash_profile
colorized git ps1
#...
source ~/.git-prompt.sh
__git_color_ps1 ()
{
if [ -n "$(__git_ps1)" ]; then
local IS_CLEAN=`git status | grep -i "working .* clean"`;
if [ -z "$IS_CLEAN" ]; then
echo -e "\e[1;31m"
else