Skip to content

Instantly share code, notes, and snippets.

View sohag1192's full-sized avatar

Md Sohag Rana sohag1192

View GitHub Profile
sohag1192 / check mobile user agent
Created March 25, 2024 06:45 — forked from dongerardor/check mobile user agent
Check if the user agent is a mobile one
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
sohag1192 /
Last active January 27, 2024 07:13 — forked from tzmartin/
m3u8 stream to mp4 using ffmpeg
sohag1192 /
Created December 14, 2023 05:07 — forked from pklaus/
A Script to Clear Cached RAM on Linux
## Bash Script to clear cached memory on (Ubuntu/Debian) Linux
## By Philipp Klaus
## see <>
if [ "$(whoami)" != "root" ]
echo "You have to run this script as Superuser!"
exit 1
sohag1192 / DNS over TLS for unbound
Created October 11, 2023 13:03 — forked from BigSully/DNS over TLS for unbound
DNS over TLS configuration for unbound, including Google DNS, Cloudflare DNS and Quad9 DNS
logfile: ""
# verbosity: 2
username: "nobody"
access-control: allow
prefetch: yes
# include: "/opt/unbound/local.conf"
# include: "/opt/unbound/customize.conf"
sohag1192 /
Created August 17, 2023 06:40 — forked from Iman/
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#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