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 / all-colors.sh
Created November 19, 2021 02:56 — forked from cicorias/all-colors.sh
show all terminal colors bash
#!/bin/bash
#
# This file echoes a bunch of color codes to the
# terminal to demonstrate what's available. Each
# line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a
# test use of that color on all nine background
# colors (default + 8 escapes).
#
@felipepodesta
felipepodesta / .bashrc
Created November 19, 2021 02:51 — forked from tonyrulez/.bashrc
Beautify terminal
#!/bin/sh
## +-----------------------------------+-----------------------------------+
## | |
## | FANCY BASH PROMT |
## | |
## | Copyright (c) 2018, Andres Gongora <[email protected]>. |
## | |
## | This program is free software: you can redistribute it and/or modify |
## | it under the terms of the GNU General Public License as published by |
RacerX
10/26/2016
WSL pebble building
Windows 10 Pro Insider Preview
Build 14931.rs_prerelease.160916-1700
get X11 for windows
https://sourceforge.net/projects/xming/
@felipepodesta
felipepodesta / .bashrc
Created November 16, 2021 03:28 — forked from rigwild/.bashrc
my wsl bashrc with git branch status coloring and windows `/mnt/c` hiding
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
@felipepodesta
felipepodesta / setup-wsl.sh
Created November 16, 2021 03:28 — forked from gquittet/setup-wsl.sh
Script to setup WSL
#!/usr/bin/env bash
# Ensure script is running with bash
if [ -z "$BASH_VERSION" ]; then
echo "You need to run this script with bash!"
exit 1
fi
###############################################################################
# PREPARATION
#This file contains commands and instructions for installing Linux distributions on Windows for through WSL
# 1. First we need to enable the WSL optional feature and restart the computer
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart
Restart-Computer
# 2. Create a folder where the Linux distribution will be placed and executed from
New-Item C:\Distros -ItemType Directory
Set-Location C:\Distros
@felipepodesta
felipepodesta / HTTPS_Localhost_Cert_WSL.txt
Created November 16, 2021 03:28
.NET WSL Localhost Cert
Windows:
dotnet dev-certs https --trust
dotnet dev-certs https -ep C:\Users\subha\.aspnet\https\https.pfx -p s19k11SKsUBs --trust
Linux:
dotnet dev-certs https --clean --import /mnt/c/Users/subha/.aspnet/https/https.pfx -p s19k11SKsUBs
@felipepodesta
felipepodesta / run.sh
Created November 16, 2021 03:28 — forked from Jkotheimer/run.sh
A deployment mechanism for Docker-based web servers.
#!/usr/bin/env bash
# run.sh
#
# @author: Jack Kotheimer
# @date: 12/5/2020
#
# The main functionality of the script is listed just below in the '_help' function, but if you have any questions about
# the functionality or implementation of this script, feel free to send me a message via email at [email protected]
#
# Enjoy!
@felipepodesta
felipepodesta / wsl.sh
Created November 16, 2021 03:28 — forked from j-martinez-dev/wsl.sh
Development installation wsl
echo "Please write your name:"
read NAME
echo "Please write your personal email:"
read PERSONAL
echo "Please write your work email:"
read WORK
init() {
#!/bin/sh
print_header () {
echo $1
echo "------------------------------------"
}
run_print_error () {
print_header "$2"
echo $1