Skip to content

Instantly share code, notes, and snippets.

View admodev's full-sized avatar
🏔️
In the zone

Adolfo Moyano admodev

🏔️
In the zone
View GitHub Profile
@admodev
admodev / eslint_prettier_airbnb.md
Created June 28, 2020 17:56 — forked from bradtraversy/eslint_prettier_airbnb.md
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
@admodev
admodev / README-español.md
Created August 24, 2020 19:03 — forked from Villanuevand/README-español.md
Una plantilla para hacer un buen README.md. Inspirado en el gist de @PurpleBooth => https://gist.github.com/PurpleBooth/109311bb0361f32d87a2

Título del Proyecto

Acá va un párrafo que describa lo que es el proyecto

Comenzando 🚀

Estas instrucciones te permitirán obtener una copia del proyecto en funcionamiento en tu máquina local para propósitos de desarrollo y pruebas.

Mira Deployment para conocer como desplegar el proyecto.

@admodev
admodev / Expo app.json example
Created August 25, 2020 04:17
React native expo app.json example code
// Reference: https://docs.expo.io/versions/latest/config/app/
{
"expo": {
"name": "<YOUR_NAME>",
"icon": "./assets/icons/app-icon.png",
"version": "1.0.0",
"slug": "<YOUR_SLUG>",
"sdkVersion": "38.0.0",
"orientation": "portrait",
@admodev
admodev / Change MySQL user password (8.0^)
Created August 25, 2020 12:56
Snippet for changing mysql user password.
ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'password';
@admodev
admodev / Firebase config snippet cheatsheet
Created August 26, 2020 05:09
Snippet para firebase
firebaseConfig = {
apiKey: (this one's easy, it's in the 'General' section in your project settings page, aka the Gear icon button),
authDomain: "{project_id}.firebaseapp.com", (without brackets)
databaseURL: "https://{project_id}.firebaseio.com",
projectId: (again, found in 'General' section in Project Settings),
storageBucket: "{project_id}.appspot.com",
messagingSenderId: (found in 'Cloud Messaging' section in Project Settings)
@admodev
admodev / install-ruby-ubuntu.md
Created September 11, 2020 04:32
Install ruby in ubuntu

Step 1 - Install RVM Ruby Version Manager

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \
7D2BAF1CF37B13E2069D6956105BD0E739499BDB

curl -sSL https://get.rvm.io | bash -s stable --ruby

source /usr/e.t.c...

rvm get stable --autolibs=enable

usermod -a -G rvm root

@admodev
admodev / tip.md
Created March 17, 2021 02:52
Flask error appepars on windows

If you encounter the following error on Windows when running a flask app: Error could not locate flask application.

Run the following command on PowerShell:

$env:FLASK_APP = "appname"

@admodev
admodev / tmux.md
Created October 18, 2021 14:26 — forked from scottjwood/tmux.md
tmux cheatsheet

tmux cheat sheet

(CTRL-x means ctrl+x, ALT-x means alt+x)

Prefix key

The default prefix is CTRL-b. If you (or your muscle memory) prefer CTRL-a, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a

Setup tor proxy on Arch Linux

Copied from this article.

Installation

  1. Install tor

         $ sudo pacman -S tor
         $ ## nyx provides a terminal status monitor for bandwidth usage, connection details and more.

$ sudo pacman -S nyx

@admodev
admodev / .gitignore
Created October 16, 2023 04:59 — forked from Yousha/.gitignore
.gitignore for PHP developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump