Skip to content

Instantly share code, notes, and snippets.

View Mayowa-Ojo's full-sized avatar
🐞
Breaking Bug

Mayowa Ojo Mayowa-Ojo

🐞
Breaking Bug
View GitHub Profile
@Mayowa-Ojo
Mayowa-Ojo / HeadlessUI-HookForm.tsx
Last active November 15, 2022 12:59 — forked from j-bullard/App.tsx
Headless UI with React Hook Forms
import "./styles.css";
import { Person } from "./types";
import { Listbox } from "./listbox/listbox";
import { useForm } from "react-hook-form";
const people: Person[] = [
{ id: 1, name: "Durward Reynolds", unavailable: false },
{ id: 2, name: "Kenton Towne", unavailable: false },
{ id: 3, name: "Therese Wunsch", unavailable: false },
{ id: 4, name: "Benedict Kessler", unavailable: true },
@Mayowa-Ojo
Mayowa-Ojo / clean.sh
Created February 6, 2021 07:40 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs