Skip to content

Instantly share code, notes, and snippets.

View diegosparente's full-sized avatar
🎯
Focusing

Diego Parente diegosparente

🎯
Focusing
View GitHub Profile
@barbietunnie
barbietunnie / restart-postgres-centos.md
Created November 10, 2022 11:21
Restart Postgres on Cent OS 7

Restart Postgres on Cent OS 7

  1. Get the service name

    sudo systemctl list-units | grep postgresql
    
  2. Restart the service

@diegosparente
diegosparente / install_oci8_ubuntu20_php7.4.md
Created April 29, 2022 16:59 — forked from eSkiSo/install_oci8_ubuntu20_php7.4.md
Install OCI8 (Oracle) in Ubuntu 20 with PHP 7.4
@dnovais
dnovais / how-to-fix-asdf-ruby-build-not-found.md
Last active December 28, 2021 01:55
How to fix asdf's `ruby-build: definition not found`

How to fix asdf's ruby-build: definition not found

Update plugin

asdf plugin-update ruby

And after, install the version of Ruby (version defined in the .tool-versions file):

@eSkiSo
eSkiSo / install_oci8_ubuntu20_php7.4.md
Last active March 25, 2025 19:49
Install OCI8 (Oracle) in Ubuntu 20 with PHP 7.4
# -------------------------------------------------------------------------------------------
# ALIASES
# -------------------------------------------------------------------------------------------
# Brew
alias bsa='brew services start'
alias bs='brew services'
alias bso='brew services stop'
# Git
{
"keyboard.dispatch": "keyCode",
// Define o tema do VSCode
"workbench.colorTheme": "Omni",
// Aumenta a fonte do terminal
"terminal.integrated.fontSize": 14,
// Define o tema dos icones na sidebar
"workbench.iconTheme": "material-icon-theme",
"workbench.startupEditor": "newUntitledFile",
// Configura tamanho e familia da fonte
@diego3g
diego3g / settings.json
Last active July 12, 2025 02:34
VSCode Settings (Updated)
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 16,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
120
],
@lohhans
lohhans / README-PTBR.md
Last active July 7, 2025 17:32 — forked from PurpleBooth/README-Template.md
Um modelo para fazer um bom README.md

Título do projeto

Um parágrafo da descrição do projeto vai aqui

🚀 Começando

Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.

Consulte Implantação para saber como implantar o projeto.

@mrk-han
mrk-han / emulator-install-using-avdmanager.md
Last active July 1, 2025 22:36
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"

@diegosparente
diegosparente / .tmux.conf
Created December 19, 2018 12:36
my configuration used on tmux plus tmate
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# set -g @plugin 'seebi/tmux-colors-solarized'
# set -g @colors-solarized 'dark'
# set -g @plugin 'ndyakov/pimux'
set -g @plugin 'jimeh/tmux-themepack'
# set -g @themepack 'basic'
set -g @themepack 'powerline/default/gray'
# set -g @themepack 'powerline/block/gray'