Skip to content

Instantly share code, notes, and snippets.

@pamo
pamo / colors.sh
Last active February 10, 2022 04:46
WWC Bash Prompt Customizaton
##### COLORS #####
NO_COLOR="\[\033[0m\]"
LIGHT_WHITE="\[\033[1;37m\]"
WHITE="\[\033[0;37m\]"
GRAY="\[\033[1;30m\]"
BLACK="\[\033[0;30m\]"
RED="\[\033[0;31m\]"
LIGHT_RED="\[\033[1;31m\]"
GREEN="\[\033[0;32m\]"
@hmwill
hmwill / gist:ad3b1dab04ca4d9e5d761ba22de97efd
Last active January 6, 2024 12:11
Setting up Rust on Chrome OS
# Set up basic dev tools
sudo apt-get update
sudo apt-get install build-essential
# Run the base installation
curl https://sh.rustup.rs -sSf | sh
# Set the path
export PATH="$HOME/.cargo/bin:$PATH"
@tusharf5
tusharf5 / change ssh port amazo ec2 instance.md
Created September 28, 2019 22:44
Change SSH Port on Amazon EC2 Instance

Change SSH Port on Amazon EC2 Instance

1. Launch and connect to EC2 instance running Amazon Linux 2.
2. Promote to root and edit /etc/ssh/sshd_config 
## sudo vi /etc/ssh/sshd_config
3. Edit line 17 (usually 17) #PORT 22. You'll need to un-comment the line and change the port to whatever you like. 
## PORT 9222
4. Save changes and exit
## :wq
@popescuaaa
popescuaaa / useAxios.ts
Created August 16, 2021 13:12
react typescript axios hook
/* eslint-disable react-hooks/exhaustive-deps */
import { useEffect, useState } from "react";
import axios, { Method } from "axios";
/**
* https://github.com/ali-master/react-typescript-hooks-sample
*/
const useFetch = (
url: string,
method: Method,