Skip to content

Instantly share code, notes, and snippets.

View carlos-algms's full-sized avatar
Constantly Caffeinated

Carlos Gomes carlos-algms

Constantly Caffeinated
View GitHub Profile
49 Default background color
40 Black
41 Red
42 Green
43 Yellow
44 Blue
45 Magenta
46 Cyan
47 Light gray
100 Dark gray
@carlos-algms
carlos-algms / README.md
Last active April 21, 2018 01:20
Linux shell magic variables
variable Description
$! Last process PID
$? Last return code
$@ All paramaters passed to a script
$1, $2, $n... Direct access to parameters starting on 1
@carlos-algms
carlos-algms / cloudSettings
Last active July 22, 2020 15:58
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-22T15:58:07.481Z","extensionVersion":"v3.4.3"}
@carlos-algms
carlos-algms / vscode.json
Created November 22, 2017 03:53
VSCode config
{
"workbench.startupEditor": "newUntitledFile",
"workbench.colorTheme": "Darcula Theme from IntelliJ",
"workbench.iconTheme": "vscode-icons",
"files.autoSave": "afterDelay",
"editor.renderWhitespace": "all",
"editor.renderControlCharacters": true,
"git.path2": "C:/msys64/usr/bin/git.exe",
"git.path": "C:/msys64/home/Carlos/git-wrap.bat",
"git.defaultCloneDirectory": "D:/projects",
@carlos-algms
carlos-algms / git-wrap.bat
Created November 22, 2017 03:51
Wrap msys2 git to use with VScode
@echo off
setlocal
rem If you don't add path for msys2 into %PATH%, enable following line.
set PATH=c:\msys64\usr\bin;%PATH%
if "%1" equ "rev-parse" goto rev_parse
git %*
goto :eof
@carlos-algms
carlos-algms / provision.sh
Created May 27, 2017 19:30 — forked from jrnickell/provision.sh
Nginx & PHP-FPM
#!/usr/bin/env bash
# bin folder
cd ~
mkdir -p ~/bin
# base apps and upgrade
sudo apt-get update
sudo apt-get install -y aptitude curl vim git unzip openssl
sudo aptitude -y safe-upgrade
@carlos-algms
carlos-algms / atom-sync.json
Last active April 18, 2017 20:34
sync settings from linux
-