Skip to content

Instantly share code, notes, and snippets.

View m4rc1no5's full-sized avatar

Marcin Zaremba m4rc1no5

View GitHub Profile
@m4rc1no5
m4rc1no5 / ColorBashPrompt.php
Last active April 28, 2017 19:34
PHP Class for Coloring PHP Command Line (CLI) Scripts Output
<?php
/**
* Created by PhpStorm.
* User: marcinos
* Date: 03.07.15
* Time: 08:32
*/
class ColorBashPrompt {
@m4rc1no5
m4rc1no5 / addSshKey.sh
Last active August 29, 2015 14:20
Add Public SSH Key to Remote Server in a Single Command
#!/bin/bash
# ------------------------------------------------------------------------------------
# USE AT YOUR OWN RISK. Tested on Linux Mint 17.1
# CHECK COMMENTS BEFORE RUNNING
#
# This script send and add your public SSH Key to Remote Server
# eg. "./addSshKey.sh marcinos 123.123.123.123 222" will send and add your public SSH Key.
#
# variables:
@m4rc1no5
m4rc1no5 / addLocalHost.sh
Last active August 29, 2015 14:19
This script create local website and adds virtualhost
#!/bin/bash
# ------------------------------------------------------------------------------------
# USE AT YOUR OWN RISK. Tested on Linux Mint 17.1 with apache2.
# CHECK COMMENTS BEFORE RUNNING
#
# This script creates localhost website folder and adds virtual domain with sufix .lh
# eg. "sudo ./addLocalHost.sh test" will create test.lh local domain
#
# Before run this script please view config.sh and check variables!