Skip to content

Instantly share code, notes, and snippets.

View wasimosmanhome's full-sized avatar

Wasim Osman wasimosmanhome

  • Canada
View GitHub Profile
@wasimosmanhome
wasimosmanhome / Low level format (linux)
Created July 27, 2024 01:39
Low level format (linux)
lsblk
sudo fdisk -l
sudo dd if=/dev/urandom of=/dev/sdX bs=1M status=progress
@wasimosmanhome
wasimosmanhome / ca-certificate
Created June 27, 2023 08:47
ca-certificate
Temporarily disable certificate verification by adding
Acquire { https::Verify-Peer false }
in /etc/apt/apt.conf.d/99verify-peer.conf.
Run apt update to get the new ca-certificates info
Run apt install ca-certificates
Re-enable certificate verification
sudo apt update && sudo apt upgrade -y
sudo apt install deluged deluge-web deluge-console python3-mako -y
mkdir /home/pi/Documents/deluge_downloads
sudo chmod 777 /home/pi/Documents/deluge_downloads
deluged
@wasimosmanhome
wasimosmanhome / RPi apt-get update - Temporary failure resolving #695
Last active May 29, 2023 19:27
Temporary Failure Resolving (Important if apt-get update is not working)
I switched /etc/resolv.conf back to nameserver 127.0.0.1 and now I can resolve.
# https://github.com/nextdns/nextdns/issues/695
@wasimosmanhome
wasimosmanhome / AppleScript Restart
Last active March 21, 2022 02:46
AppleScript Restart
Run Applescript
tell application "Terminal"
set currentTab to do script ("ssh pi@raspberrypi-dhaka;")
delay 6
do script ("raspberry") in currentTab
delay 1
# do script ("fish") in currentTab
# delay 1
do script ("sudo reboot") in currentTab
@wasimosmanhome
wasimosmanhome / get-pip.py
Created January 15, 2022 06:20
get-pip.py
This file has been truncated, but you can view the full file.
#!/usr/bin/env python
#
# Hi There!
#
# You may be wondering what this giant blob of binary data here is, you might
# even be worried that we're up to something nefarious (good for you for being
# paranoid!). This is a base85 encoding of a zip file, this zip file contains
# an entire copy of pip (version 20.3.4).
#
# Pip is a thing that installs packages, pip itself is a package that someone
@wasimosmanhome
wasimosmanhome / pip2
Created January 15, 2022 06:17
install pip2
https://bootstrap.pypa.io/pip/2.7/get-pip.py
sudo python2 get-pip.py
@wasimosmanhome
wasimosmanhome / Linux DNS Settings
Created August 3, 2021 13:56
Linux DNS Settings
# https://datawookie.dev/blog/2018/10/dns-on-ubuntu-18.04/
# Make terminal not to open old sessions
#Type on terminal:
defaults write com.apple.Terminal NSQuitAlwaysKeepsWindows -bool false
@wasimosmanhome
wasimosmanhome / iptvtools.m3u
Created July 8, 2021 17:39
iptvtools.m3u
#EXTM3U
#EXTINF:-1,iptvtools_8
https://bdsl.jagobd.com:444/c2VydmVyX6RpbEU8Mi8xNy8yMDE0GIDU6RgzQ6NTAgdEoaeFzbF92YWxIZTO0U0ezN1IzMyfvcGVMZEJCTEFWeVN3PTOmdFsaWRtaW51aiPhnPTI/boishakhiplus.stream/chunks.m3u8
#EXTINF:-1,iptvtools_18
http://210.4.72.204/hls-live/livepkgr/_definst_/liveevent/livestream3.m3u8
#EXTINF:-1,iptvtools_20
https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcS_3lZ-3SjyKCjtm6yO_Hud67PWDfVlYQvpXMVEA_2NZnwkaip4&usqp=CAU
#EXTINF:-1,iptvtools_21
https://bdsl.jagobd.com:444/c2VydmVyX6RpbEU8Mi8xNy8yMDE0GIDU6RgzQ6NTAgdEoaeFzbF92YWxIZTO0U0ezN1IzMyfvcGVMZEJCTEFWeVN3PTOmdFsaWRtaW51aiPhnPTI/independent-8-org.stream/chunks.m3u8
#EXTINF:-1,iptvtools_24