This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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). | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Please write your name:" | |
read NAME | |
echo "Please write your personal email:" | |
read PERSONAL | |
echo "Please write your work email:" | |
read WORK | |
init() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
print_header () { | |
echo $1 | |
echo "------------------------------------" | |
} | |
run_print_error () { | |
print_header "$2" | |
echo $1 |