Skip to content

Instantly share code, notes, and snippets.

View felipepodesta's full-sized avatar
👨‍💻
Stairway To Heaven

Felipe Podestá felipepodesta

👨‍💻
Stairway To Heaven
View GitHub Profile
@ruandre
ruandre / win10-11.md
Last active April 12, 2025 06:09
After installing Windows 10/11

🪟 After installing Windows 10/11

Install

You can use https://uupdump.net/ to build up an ISO file (even from Linux or Mac, the options enable you to keep the file size down) and just drop into https://github.com/ventoy/Ventoy and you're good to go.

If you're already running Windows you can do ⊞ Win, Reset this PC for a more convenient ISO download option.

For keys try https://www.microsoft.com/windows/get-windows-11 or local retail store, otherwise check PC Hardware channels on YouTube as they often have links to discounted keys (obviously check if valid/legit, due diligence, etc.)

@georgealan
georgealan / react-native-android-studio-no-wsl2.md
Last active April 28, 2025 18:09
React Native no Emulador Android Studio com WSL2

REACT-NATIVE PROJECTS RUN IN WSL2 UBUNTU 22.04 WITH BACKEND API

📆 Article written day: 9/03/2020 📆 Article updated day: 6/18/2022

My System Specs:

  • Microsoft Windows 10 Enterprise Version 21H2 (OS Build 19044.1766)
  • WSL2 - Ubuntu 22.04 LTS
  • Android Studio Version: Chipmunk 2021.2.1 Patch 1
@rcrelia
rcrelia / remove_default_sg_rules.sh
Last active November 16, 2021 02:48
Bash script to remove default SG rules from an AWS VPC
#!/usr/bin/env bash
#
# Removes default VPC SG rules to be in compliance with CIS rule 4.3
# in AWS SecurityHub, which states:
#
# [CIS.4.3] Ensure the default security group of every VPC restricts all
# traffic
#
# Requires local copy of jq(1)
#
@dinukasal
dinukasal / clean.sh
Created August 6, 2020 06:32
clean ubuntu vm trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs
#!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
########################################################################################################################
# Inspired by:
# https://gist.github.com/andromedarabbit/7b2ef08f0db29a728c9899163f359c88
# Usage:
# wget -qO- <RAW_URL> | sh <aws-profile> <aws-vpc-id> <sg-name>
@dezren39
dezren39 / get-npm-package-version
Last active November 28, 2022 16:30 — forked from DarrenN/get-npm-package-version
Extract version from package.json (NPM) using bash / shell
# these can all be npm scripts, but anything can be an npm script
# a
echo $(cat ./package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
# b
echo $(cat ./package.json | grep version | head -1 | awk -F= "{ print $2 }" | sed -E 's/(version)|[:,\",]//g' | tr -d '[[:space:]]')
# c
echo $(node --eval="process.stdout.write(require('./package.json').version)")
@n0mer1
n0mer1 / windows_developer_setup.md
Last active November 16, 2021 03:27
My quick developer setup after reimaging and company auto-enrollment for Windows 10.

🚀 Setup for DEV

Set up your Windows system with WSL so that you can start developing right away and the most important tools are installed.

Of course, it is always individual which tools are needed and what to configure. So what I have described fits best for me and the most important things are included. That does not mean that this must fit for you exactly this way and that everything works. Just think about every step a little bit, make modifications if necessary and then it should work for you, so that you have a cool basic setup for development as well. Have fun! 😊

Table of content:

@HoKim98
HoKim98 / install.sh
Last active June 2, 2022 18:36
[Ubuntu] OpenVSLAM automatic installation script
#!/bin/bash
cd ~/Desktop
# ---------------------------
## 0. Requirements
# ---------------------------
sudo apt-get update
sudo apt-get install -y build-essential git pkg-config cmake make \
gcc curl wget unzip \
@josemasri
josemasri / nestjs-dto-pipes-config.md
Last active June 2, 2022 17:02
Basic configuration instructions for typeORM with NestJS

Data transfer object configuration for nest js with pipe validation

Installation

npm i class-validator class-transformer

Create a dto class with validation decorators

import { IsOptional, IsIn, IsNotEmpty } from 'class-validator';
xdebug.auto_trace = Off
xdebug.cli_color = 1
xdebug.collect_assignments = Off
xdebug.collect_includes = On
xdebug.collect_params = 0
xdebug.collect_return = Off
xdebug.collect_vars = Off
xdebug.coverage_enable = On
xdebug.default_enable = On
xdebug.dump_globals = On