Skip to content

Instantly share code, notes, and snippets.

View psatler's full-sized avatar
🇧🇷
Focusing! 🎯

Pablo Satler psatler

🇧🇷
Focusing! 🎯
View GitHub Profile
@psatler
psatler / ssh.md
Created December 16, 2022 02:52 — forked from EdnilsonRobert/ssh.md
Múltiplas chaves SSH para GitHub e GitLab

Múltiplas chaves SSH para GitHub e GitLab

1. Gerar Chaves SSH

ssh-keygen -t rsa -C "user@email.com" -b 4096 -f ~/.ssh/id_rsa_github
ssh-keygen -t rsa -C "user@email.com" -b 4096 -f ~/.ssh/id_rsa_gitlab

2. Copiar chaves para GitHub e GitLab

@psatler
psatler / Webdriverio-Appium-Cucumber-config.md
Last active June 5, 2020 21:39
Basic configuration for using WebdriverIO along wtih Cucumber and Appium
  • I'm using Nodejs 12.16.1 both locally and on the AWS Device Farm.

  • Same thing goes to the Appium version. Both locally and on AWS, the version I'm using is 1.17.1

  • Regarding webdriverio, and as shown at this gist below, I'm using "webdriverio": "^6.1.7". This is installed on AWS Device Farm at the install phase by running npm install.

  • webdriverio shared configs

exports.config = {
    port: 4723,
    runner: 'local',
@psatler
psatler / NodeReactReactNativeSetup.md
Last active March 28, 2020 16:53
Environment setup for VSCode, Node, React and RN.md

DISCLAIMER: The steps below were done on the Ubuntu OS.

Terminal Setup

You can follow this guide (in Pt-BR). And here you can find a .zshrc file example.

Docker Setup

@psatler
psatler / List Win Program Installed.md
Last active April 8, 2024 09:15
List the installed programs on Windows

Using only the Windows cmd

  1. Open the command prompt of windows
  2. Type wmic
  3. On the wmic prompt type the output command followed by the path of the txt file and the command to list the programs. It is going to be like the following:
  • /output:C:\Users\<yourUser>\Documents\programsInstalled\listOfProgramsInstalledWin10.txt product get name,version
  1. Wait for the wmic prompt get back to you again and you'll know it has finished listing the files into the txt file

Python script to display the list of programs installed on windows

// more details at:
// - https://create-react-app.dev/docs/adding-typescript/
module.exports = {
env: {
browser: true,
es6: true,
jest: true,
},
extends: [

What's regex?

Define a search pattern that can be used to search for things in a string.

Some regex symbols to match patterns

  • .test( . . . ) : returns true or false
  • match( . . . ) : returns the match
  • /patternToLookFor/ig: i and g at the end are flags meaning can insensitiveness and every occurrence, respectively.
  • . : match anything with a wildcard period
  • [ ]: match single characters with multiple possibilities
@psatler
psatler / Bash prompt coloring.md
Last active July 15, 2019 13:56
Changing the color of the bash terminal (Ubuntu)

Current set up

# ############# CUSTOMIZING THE BASH TERMINAL BELOW #######################
# get current branch in git repo
function parse_git_branch() {
	BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
	if [ ! "${BRANCH}" == "" ]
	then
		STAT=`parse_git_dirty`
		echo "(${BRANCH}${STAT}) "