Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# sharing samba over internet is not cool.
# updating smb.conf/iptables for just one ip, and having dynamic ip...
# dirty as hell
PATH=/usr/sbin:/sbin:/usr/bin:/bin
HOSTNAME="my.myddns.com"
date=$( date )
@aramosf
aramosf / downalltelegram.py
Created November 19, 2023 17:24
download all media files from channel / telegram
import logging
import time
from telethon import TelegramClient, sync
from telethon.tl.types import InputMessagesFilterDocument
from telethon.tl.types import InputMessagesFilterVideo
from telethon.tl import types
from telethon.errors import FloodWaitError
import sys
@aramosf
aramosf / gist:aa06741f7be0cc86ebc1b2ab1aad9a5b
Created September 10, 2023 09:32
apt update error in kali
Problem (in my case Kali 2023.2)
└─# apt update
Get:1 http://kali.download/kali kali-rolling InRelease [41.2 kB]
Err:1 http://kali.download/kali kali-rolling InRelease
At least one invalid signature was encountered.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
@aramosf
aramosf / gist:47c3b42f5f9e0deedb287096ffff8afd
Created August 16, 2019 23:53
find duplicate images based on exif information and ask to delete (jpg, heic)
#!/bin/bash
# locate the same images (jpeg and heic) based on some EXIF information
# and request the file to be deleted
rm all.txt
rm duplicates.txt
IFS="
"

Keybase proof

I hereby claim:

  • I am aramosf on github.
  • I am aramosf (https://keybase.io/aramosf) on keybase.
  • I have a public key ASCIoTzYjfwL3gjNiDZXawC9yTDvzEc9gWB5Fk-wCJAd0wo

To claim this, I am signing this object: