Skip to content

Instantly share code, notes, and snippets.

View feliperdamaceno's full-sized avatar
🪲
You got a BUG!

Felipe Damaceno feliperdamaceno

🪲
You got a BUG!
View GitHub Profile
@feliperdamaceno
feliperdamaceno / vercel.json
Created June 26, 2024 23:46
Vercel config to run FastAPI.
{
"builds": [
{
"src": "main.py",
"use": "@vercel/python"
}
],
"routes": [
{
"src": "/(.*)",
@feliperdamaceno
feliperdamaceno / README.md
Last active June 21, 2024 22:50
LogiOps configuration for MX Master 3S

LogiOps configuration for MX Master 3S

This configuration sets LogiOps to work as it is by default in Windows.

Tested and Running on Pop!_OS 22.04 LTS, but should work fine for other distros (with minor adjusts).

Setup

Follow the instructions in the official repository to install: LogiOps

@feliperdamaceno
feliperdamaceno / dark-plus-color-scheme.json
Created June 16, 2024 18:03
Color scheme for gnome-terminal
{
"black": "#000000",
"brightBlack": "#666666",
"red": "#cd3131",
"brightRed": "#f14c4c",
"green": "#0dbc79",
"brightGreen": "#23d18b",
@feliperdamaceno
feliperdamaceno / docker-setup.sh
Last active June 16, 2024 22:09
Install Docker and Docker Compose on Ubuntu Server.
#!/bin/bash
# What it does? Install Docker and Docker Compose on Ubuntu.
# Function to add Docker's official GPG key
include_docker_GPG_keys() {
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
@feliperdamaceno
feliperdamaceno / pop-os-devel-setup.sh
Last active June 26, 2024 20:24
Script used to setup development environment in Pop!_OS (^22.04 LTS)
#!/usr/bin/env bash
#
# Script used to setup development environment in Pop!_OS (^22.04 LTS)
#
# ------------------------------------------------------------------------------- #
# ---------------------------------- VARIABLES ---------------------------------- #
## Shell Colors
@feliperdamaceno
feliperdamaceno / pop-os-setup
Last active June 21, 2024 22:55
Script for post-install setup on Pop!_OS (^22.04 LTS).
#!/usr/bin/env bash
#
# Script used to setup Pop!_OS (^22.04 LTS)
#
# ------------------------------------------------------------------------------- #
# ---------------------------------- VARIABLES ---------------------------------- #
## Shell Colors
{
"compilerOptions": {
/* Base Options: */
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
"skipLibCheck": true /* Skip type checking all .d.ts files. */,
"target": "ES2022" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
"resolveJsonModule": true /* Enable importing .json files. */,
"moduleDetection": "force" /* Control what method is used to detect module-format JS files. */,
"isolatedModules": true /* Ensure that each file can be safely transpiled without relying on other imports. */,
@feliperdamaceno
feliperdamaceno / exec.ps1
Created September 18, 2023 21:17
A Powershell Script to easily execute JavaScript/Node helper scripts.
<#
.SYNOPSIS
Execute a JavaScript script with additional arguments.
.DESCRIPTION
This PowerShell script takes a script name and an array of script arguments, then executes the JavaScript script with those arguments.
Add the folder with the file to your PATH.
.PARAMETER scriptName
{
"React Component": {
"prefix": "trc",
"body": [
"interface ${TM_FILENAME_BASE}Props {",
"\t$1",
"}",
"",
"export default function $TM_FILENAME_BASE({ $2 }: ${TM_FILENAME_BASE}Props) {",
"\treturn (",
@feliperdamaceno
feliperdamaceno / keybindings.json
Last active June 16, 2024 18:59
keybindings.json
// Place your key bindings in this file to override the defaults
[
{
// Toggle / Hide: Explorer Bar.
"key": "ctrl+e",
"command": "workbench.action.toggleSidebarVisibility"
},
{
// Toggle / Hide: Activity Bar.
"key": "ctrl+b",