Skip to content

Instantly share code, notes, and snippets.

View mondaini's full-sized avatar
🌎
Coding Remotely

Filipe Mondaini mondaini

🌎
Coding Remotely
View GitHub Profile
@mondaini
mondaini / commands_list.md
Created September 30, 2012 13:49
Lista de comandos uteis

Lista de comandos uteis para o dia a dia

git

List all remote branches with its urls:

$ git remote -v

Shell

@mondaini
mondaini / gist:3842457
Created October 5, 2012 21:13
Script de instalação do servidor
Baixar Ubuntu 12.04.1
Instalar na VM
Rodar Script:
http://www.linode.com/stackscripts/view/?StackScriptID=1291
@mondaini
mondaini / gist:3849453
Created October 7, 2012 20:20
StackScript
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: nginx init.d dash script for Ubuntu <=9.10.
# Description: nginx init.d dash script for Ubuntu <=9.10.
### END INIT INFO
@mondaini
mondaini / NTFS Support on OSX.md
Last active December 17, 2015 00:09
Provide NTFS writing on OSX Lion / Mountain Lion

Tested under Mountain Lion 10.8.2 / Lion 10.7.5 :

  1. Install brew

  2. Open a terminal and execute: sudo su -

  3. Install fuse4x: brew install fuse4x

  4. Install ntfs-3g: brew install ntfs-3g

int channel_pin[] = {2, 4};
static int relayStateA = 0;
static int relayStateB = 0;
void setup() {
// initialize serial communication:
Serial.begin(9600);
for (int i = 0; i < sizeof(channel_pin); ++i)
{

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

Execute um crontab -e para abrir o crontab no editor de texto e cole o texto abaixo no início do arquivo:
## CRONTAB HINTS AND TIPS
##
##
## Entry Description Equivalent To
## @yearly (or @annually) Run once a year at midnight in the morning of January 1 0 0 1 1 *
## @monthly Run once a month at midnight in the morning of the first of the month 0 0 1 * *
## @weekly Run once a week at midnight in the morning of Sunday 0 0 * * 0
## @daily Run once a day at midnight 0 0 * * *
@mondaini
mondaini / Docker-Cheatsheet.md
Created March 18, 2015 16:57
Docker Cheatsheet

builds the containers: docker-compose build

remove the containers: docker-compose rm

'recreate' the containers: docker-compose up

start the containers:

{
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "vscode-icons",
//"workbench.panel.location": "bottom",
"sublimeTextKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.snippetSuggestions": "top",
"editor.formatOnPaste": true,
@mondaini
mondaini / multiple_ssh_setting.md
Created May 17, 2018 14:08 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"