Skip to content

Instantly share code, notes, and snippets.

@tavallaie
tavallaie / Top_Public_Time_Servers.md
Created February 9, 2026 10:15 — forked from mutin-sa/Top_Public_Time_Servers.md
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@tavallaie
tavallaie / cloud-gpus.md
Created October 18, 2025 12:32 — forked from devinschumacher/cloud-gpus.md
Cloud GPU Hosting // The Best Servers, Services & Providers [RANKED!]
title tags
The Best Cloud GPU Providers for Artificial Intelligence & Machine Learning
cloud gpu providers
cloud gpu
artificial intelligence

Cloud GPUs: Servers, Providers & Everything You Would Ever Need

# --- Input Data ---
# Nominal GDP in USD
nominal_GDP_current = 640.59 * 1e9 # Convert billion USD to USD
# Population
population = 46.65 * 1e6 # Convert million to individuals
# Nominal GDP per Capita (Y)
Y = nominal_GDP_current / population
ip route show | grep -i default | awk '{ print $3}'
@tavallaie
tavallaie / Dockerfile
Last active August 22, 2024 21:11 — forked from usr-ein/Dockerfile
Optimal multistaged Dockerfile for poetry
# syntax=docker/dockerfile:1
# Keep this syntax directive! It's used to enable Docker BuildKit
################################
# PYTHON-BASE
# Sets up all our shared environment variables
################################
FROM python:3.12.5-slim-bookworm as python-base
# python
@tavallaie
tavallaie / .env
Last active June 10, 2024 13:42
Migrates a repository from GitLab to GitHub, preserving history and branches.
GITHUB_ORGANIZATION=my_github_org
@tavallaie
tavallaie / secure_erase.sh
Last active February 26, 2025 06:08
**Secure Data Erasure Script (Bash)** This Bash script securely erases data from a specified device with random data, ensuring irrecoverability. Use with caution.
#!/bin/bash
# Check if the script is run with superuser privileges
if [ "$EUID" -ne 0 ]; then
echo "Please run this script as root (sudo)."
exit 1
fi
# Prompt the user for the target devices
read -p "Enter the target devices (e.g., /dev/sdX /dev/sdY): " target_devices
@tavallaie
tavallaie / QuakeTerminal.ahk
Created September 29, 2021 17:20 — forked from andrewgodwin/QuakeTerminal.ahk
AutoHotkey script for making Windows Terminal appear/disappear with a single keypress
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
F12::ToggleTerminal()
ShowAndPositionTerminal()
{
WinShow ahk_class CASCADIA_HOSTING_WINDOW_CLASS
@tavallaie
tavallaie / multiple-deploy-keys-multiple-private-repos-github-ssh-config.md How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

Let's say alice is a github.com user, with 2 or more private repositories repoN. For this example we'll work with just two repositories named repo1 and repo2

https://github.com/alice/repo1

https://github.com/alice/repo2

You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers.

// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"profiles":