Skip to content

Instantly share code, notes, and snippets.

View jsvenancio's full-sized avatar

Joaquim Venâncio jsvenancio

View GitHub Profile
@jsvenancio
jsvenancio / Git-en.md
Last active June 7, 2025 15:40 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

GIT

States

  • Modified
  • Staged (index)
  • Committed

Help

General
@leocomelli
leocomelli / gcp_compute_mount_persistent_disk.sh
Created March 31, 2020 04:19 — forked from raj-saxena/gcp_compute_mount_persistent_disk.sh
Use the following script to mount a persistent storage during startup. This is helpful when you provision the compute instance as well as the persistent disk using some automation tool like Terraform. StackOverFlow question - https://stackoverflow.com/questions/53162620/automate-gcp-persistent-disk-initialization
#!/bin/bash
set -euxo pipefail
MNT_DIR=/mnt/disks/persistent_storage
if [[ -d "$MNT_DIR" ]]; then
exit
else
sudo mkfs.ext4 -m 0 -F -E lazy_itable_init=0,lazy_journal_init=0,discard /dev/sdb; \
sudo mkdir -p $MNT_DIR
@leocomelli
leocomelli / git.md
Last active February 5, 2026 17:21
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda