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
@felipepodesta
felipepodesta / README.md
Created June 2, 2021 04:06 — forked from abd6982/README.md
Ubuntu Development Environment Setup Script

Ubuntu Dev Setup Script

I tend to setup and teardown my dev environments quite frequently. So I have created this setup.sh script to automate setting up the dev environment with my preferences.

This script -

  • Installs curl, git, net-tools, and tree.
  • Installs build-essential package which installs gcc, g++ and some other libs.
  • Installs the latest openjdk and maven.
  • Installs python3 and some required libraries (I use them pretty often).
  • Installs nodejs 12 globally. Then installs Node Version Manager and installs all LTS versions.
curl -s https://gist.githubusercontent.com/ilude/bf6d435352610528794d5cac4a0845a1/raw/%21ImageSetup.sh | /bin/bash -s | tee build.log
@felipepodesta
felipepodesta / music_theory.py
Created April 23, 2021 15:33 — forked from mvanga/music_theory.py
Basic Music Theory in ~200 Lines of Python
# The code for my article with the same name. You can find it at the URL below:
# https://www.mvanga.com/blog/basic-music-theory-in-200-lines-of-python
# MIT License
#
# Copyright (c) 2021 Manohar Vanga
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
######################################################################
# This file was autogenerated by `make`. Do not edit it directly!
######################################################################
# Antigen: A simple plugin manager for zsh
# Authors: Shrikant Sharat Kandula
@felipepodesta
felipepodesta / docker
Created March 18, 2021 17:59 — forked from sawa2d2/docker
Installed softwares
# HackMD (https://hub.docker.com/r/hackmdio/hackmd)
git clone https://github.com/hackmdio/docker-hackmd.git
cd docker-hackmd
docker-compose up -d
# Access localhost:3000
# Swagger Editor (https://github.com/swagger-api/swagger-editor)
docker pull swaggerapi/swagger-editor
docker run -d -p 80:8080 swaggerapi/swagger-editor
# Access localhost
@felipepodesta
felipepodesta / aws-assume-role.sh
Created March 14, 2021 16:34 — forked from jroehl/aws-assume-role.sh
An assume-role helper script to update the environment variables with the temporary credentials
#! /bin/bash
# Execute locally
# source ./aws-assume-role.sh AccountId Role Region [LifetimeCredentials]
# Execute from remote
# source <(curl -sL https://gist.github.com/jroehl/c0789a3c4dca94ecf6958a9f4e408b8a/raw/aws-assume-role.sh) AccountId Role Region [SessionName] [LifetimeCredentials]
if (
[[ -n $ZSH_EVAL_CONTEXT && $ZSH_EVAL_CONTEXT =~ :file$ ]] ||
[[ -n $KSH_VERSION && $(cd "$(dirname -- "$0")" &&

Git Cheat Sheet

Visit my blog.

Commands

Getting Started

git init

or

@felipepodesta
felipepodesta / git.md
Created March 10, 2021 15:32 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@felipepodesta
felipepodesta / provisioning.sh
Created February 9, 2021 16:38 — forked from rydurham/provisioning.sh
Ubuntu Provisioning
# /home partition
# https://help.ubuntu.com/community/Partitioning/Home/Moving
# Basics
sudo apt update
sudo apt install curl vim git libpng-dev
sudo apt remove apache2
# Remove snapd
# https://askubuntu.com/questions/1035915/how-to-remove-snap-store-from-ubuntu
@felipepodesta
felipepodesta / .bashrc
Created February 9, 2021 16:07 — forked from corburn/.bashrc
Bash functions
# https://danielmiessler.com/blog/the-one-line-cli-bandwidth-test/
alias bt="wget http://cachefly.cachefly.net/100mb.test -O /dev/null"
# Watch nginx logs
alias access='tail -f /var/log/nginx/access.log'
alias error='tail -f /var/log/nginx/error.log'
# column is used here to display a Tab Separated Values file with vertically aligned columns
# less is used so the arrow keys can be used to scroll up/down left/right
tsv() {