Skip to content

Instantly share code, notes, and snippets.

View Adrian0350's full-sized avatar
🔍
Working

Jaime Zúñiga Adrian0350

🔍
Working
View GitHub Profile

Coloring OS X Mavericks Terminal

You'll need to create a “.bash_profile” (sudo nano /) file if there isn't an existing one. Then you'll add the following code:

Line|
[1] |	CLICOLOR=1 #simply enables coloring of your terminal.
[2] |	LSCOLORS=exfxcxdxbxegedabagacad #specifies how to color specific items (this is the default).

Order of the attributes:

“exfxcxdxbx” 1-5
“egedabagacad” 5-11
1. directory. 
#!/bin/bash
#
# This script gets a database (in this case production db)
# and it will modify the sensitive content:
#
# 1. READ SQL file.
# 2. READ SQL User
# 3. READ SQL PASSWORD
# 4. DROP TABLE IF EXISTS
# 5. CREATE TABLE
<?php
namespace Utility;
/**
* This class replaces CRLF (Windows) endlines
* with LF (Unix) endlines.
*/
class CSVCleaner
{
@Adrian0350
Adrian0350 / GIT-Helpers.md
Last active April 25, 2018 22:58
A collection of instructions to handle git actions.

GIT Helpers

Changing a commit's message

$ git rebase -i HEAD~n

This will prompt a vi console with options.

The n parameter indicates the commit quantity to edit in {creation time} ascending order. Say you run $ git rebase -i HEAD~2; this will select the last two commits.