Skip to content

Instantly share code, notes, and snippets.

View mmastria's full-sized avatar

Marco Mastria mmastria

  • São Paulo / Brasil
View GitHub Profile

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r
@mmastria
mmastria / microsd-benchmarks.sh
Created September 27, 2019 11:40 — forked from dlech/microsd-benchmarks.sh
Raspberry Pi Dramble benchmark for ev3dev
#!/bin/bash
# Raspberry Pi microSD card benchmark script.
#
# A script I use to automate the running and reporting of benchmarks I compile
# for: http://www.pidramble.com/wiki/benchmarks/microsd-cards
#
# Usage:
# $ wget https://gist.githubusercontent.com/dlech/e922dbdc870d0e1d2c6065363c189345/raw/microsd-benchmarks.sh
# $ sudo bash microsd-benchmarks.sh
@mmastria
mmastria / git-update-fork.sh
Created August 11, 2019 00:56 — forked from rdeavila/git-update-fork.sh
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream