Skip to content

Instantly share code, notes, and snippets.

View Am1rArsalan's full-sized avatar
😉
1.work hard 2.enjoy life 3.have fun

Amir Am1rArsalan

😉
1.work hard 2.enjoy life 3.have fun
View GitHub Profile
// TODO: make `pages` optional and measure the div when unspecified, this will
// allow more normal document flow and make it easier to do both mobile and
// desktop.
import {
createContext,
useCallback,
useContext,
useEffect,
useMemo,
useRef,
@Iman
Iman / clean.sh
Last active November 13, 2024 21:44
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