Skip to content

Instantly share code, notes, and snippets.

View MiguelMachado-dev's full-sized avatar
working hard

Miguel Machado MiguelMachado-dev

working hard
View GitHub Profile
@deverebor
deverebor / README.md
Last active June 20, 2023 15:48
PowerShell + Windows Terminal - Personal settings

My settings:

Plugins

  • posh-git (sintax highlight for git)
  • Terminal-Icons (show icons using dir or ls)
  • spaceship (theming)
  • PSReadlines (auto sugestions & auto complete)
  • PSFzf (recursive search)
  • z search (global search using z prefix to access some folder)
@andreibosco
andreibosco / yubikey-windows10.md
Last active May 13, 2024 22:13
Setting up Yubikey with SSH and Git on Windows 10 + Powershell

Interview Questions

Kotlin

Q1: What is a primary constructor in Kotlin? ☆☆

Answer: The primary constructor is part of the class header. Unlike Java, you don't need to declare a constructor in the body of the class. Here's an example:

@MiguelMachado-dev
MiguelMachado-dev / readme.md
Last active August 1, 2019 14:55
Install eslint nodeJS

Install the packages

yarn add eslint prettier eslint-config-prettier eslint-plugin-prettier -D

Run yarn eslint --init

In eslintrc.js, paste and override the next code

module.exports = {
  env: {
    es6: true,
 node: true
@MiguelMachado-dev
MiguelMachado-dev / readme.md
Last active November 28, 2020 02:10
Very quick Eslint configuration for ReactJS - Airbnb standard

Install the packages

yarn add eslint -D

Run yarn eslint --init and set your configuration to use airbnb and create a javascript configuration file.

yarn add prettier eslint-config-prettier eslint-plugin-react-hooks eslint-plugin-prettier babel-eslint eslint-plugin-jsx-a11y -D

To use absolute paths

If you want to use absolute paths just copy the .eslintrc.js below, else, delete the settings object in it.

@jaydenseric
jaydenseric / zeit-now-g-suite-setup.md
Created March 20, 2017 04:46
Zeit Now G Suite setup

Run each of the following lines, replacing yourdomain.com and codehere with your details:

now dns add yourdomain.com @ TXT google-site-verification=codehere
now dns add yourdomain.com @ MX ASPMX.L.GOOGLE.COM 1
now dns add yourdomain.com @ MX ALT1.ASPMX.L.GOOGLE.COM 5
now dns add yourdomain.com @ MX ALT2.ASPMX.L.GOOGLE.COM 5
now dns add yourdomain.com @ MX ALT3.ASPMX.L.GOOGLE.COM 10
now dns add yourdomain.com @ MX ALT4.ASPMX.L.GOOGLE.COM 10