Skip to content

Instantly share code, notes, and snippets.

View Dank-del's full-sized avatar
❤️
Bringing ideas to life

sayan Dank-del

❤️
Bringing ideas to life
View GitHub Profile
@avestura
avestura / delete-from-users-where-location-iran.md
Last active February 2, 2026 14:10
DELETE FROM users WHERE location = 'IRAN';

DELETE FROM users WHERE location = 'IRAN';

Hi! I am an Iranian Software Engineer, and in this torn paper note, I want to talk about some funny moments I had online related to the fact that I was spawned in this specific region of the world: Iran.

Microsoft deleted my app, ignored my mails

Back when I was a student, I got access to the Microsoft Imagine, and as a result, I got access to the Microsoft Store as a developer. This inspired me write one of my open-source projects called EyesGuard and publish it on Microsoft Store. However, one day, somebody told me that they can no longer find EyesGuard on the store.

Install PostgreSQL on Windows by scoop

Follow the below steps to install the latest version of PostgreSQL on Windows by scoop package manager.

Install PostgreSQL

scoop install postgresql -g

Configure PostgreSQL as a Windows Service

@Justasic
Justasic / TLCRC.py
Created March 24, 2022 22:27
Calculate the CRC32 values of Telegram's Type Language constructor IDs
#!/usr/bin/env python3
import sys, re
from zlib import crc32
from typing import Tuple
from PyQt5.QtWidgets import QWidget, QLineEdit, QApplication, QLabel, QVBoxLayout, QHBoxLayout
class Calculator(QWidget):
def __init__(self):
super().__init__()
@fideloper
fideloper / certbot.sh
Last active December 29, 2025 19:11
Certbot on Ubuntu, wildcard subdomains via CloudFlare DNS challenge
# Used on Ubuntu 18.04 and 20.04
# Find instructions for other OSes here: https://certbot.eff.org/instructions
# Install Certbot via Snaps
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# Install DNS CloudFlare plugin
sudo snap set certbot trust-plugin-with-root=ok
@ALiwoto
ALiwoto / Dank.cs
Created July 27, 2021 10:23
Dank class for showing how to send a graphquery in C#
using System;
using System.Net;
using System.Text;
using System.IO;
using System.Collections;
using System.Net.Http;
using System.Threading.Tasks;
using System.Text.Json.Serialization;
using System.Text.Json;
@CustomIcon
CustomIcon / bot.py
Last active February 19, 2021 23:20
Lydia Reverse Engineered
# pip install coffeehouse
from coffeehouse import LydiaAI
from coffeehouse.api import API
from coffeehouse.exception import CoffeeHouseError
# for lydia-chan
import random
# Enable Logging
import logging
@prologic
prologic / LearnGoIn5mins.md
Last active March 23, 2026 03:33
Learn Go in ~5mins
@CustomIcon
CustomIcon / recover.py
Last active May 16, 2025 02:47
Recover your Voip or Test number after you loose it (if you have session string). Pyrogram and Telethon Only!
# for those who uses heroku or AUTH key they can recover their account back after loosing test number or Voip. (specially for iraninan friends)
#
# DISCLAIMER: IF YOU USE THIS SNIPPET AGAINST TELEGRAM TOS YOU WILL BE BANNED FROM USING MY SERVICES
#
# STEPS:
# 0. fill in your api_id and api_hash variables
# 1. try to make telegram send you the login code from your official client
# 2. run the script in machine (requires pyrogram==1.0.7 and telethon==1.17.5)
from telethon import sync, sessions
package main
import (
"fmt"
"io"
"log"
"os"
"os/exec"
"regexp"
"strings"
@Trevahok
Trevahok / dsa checklist.md
Last active December 12, 2025 04:43
a checklist for data structures and algorithms

Searching and Sorting


  • insertion sort
  • selection sort
  • bubble sort
  • heap sort
  • Quick Sort - in place
  • Merge Sort
  • Binary Search