Skip to content

Instantly share code, notes, and snippets.

View RohitAwate's full-sized avatar

Rohit Awate RohitAwate

View GitHub Profile
@RohitAwate
RohitAwate / ubuntu_setup.py
Last active December 13, 2023 17:31
Setup script to quickly install my applications on a new Ubuntu installation
#! /usr/bin/env python3
import os
def confirm(package: str) -> bool:
choice = input(f"Install '{package}'? (y/n)\n").lower()
if choice in ["n", "no"]:
return False
elif choice in ["y", "yes"]:
return True
@RohitAwate
RohitAwate / concurrency.go
Created May 2, 2019 13:36
Code from the YouTube video: Concurrency in Golang: A Simple, Practical Example (https://youtu.be/3atNYmqXyV4)
package main
import (
"fmt"
"log"
"net/http"
"os"
"sync"
)