Skip to content

Instantly share code, notes, and snippets.

View imsakg's full-sized avatar
🚀

Mert Sefa AKGUN imsakg

🚀
View GitHub Profile
from requests import get
TAX_BRACKETS = {
110000.0: 0.15,
230000.0: 0.20,
580000.0: 0.27,
3000000.0: 0.35,
float("inf"): 0.40,
}

Keybase proof

I hereby claim:

  • I am imsakg on github.
  • I am msakg (https://keybase.io/msakg) on keybase.
  • I have a public key ASCl1OiFavZHTuyEf0xesyXpYNL3nFFgXGUDQfWX2rW7_go

To claim this, I am signing this object:

@imsakg
imsakg / .profile
Created May 6, 2024 22:27 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@imsakg
imsakg / gpg-ssh-setup.md
Created December 5, 2023 12:03 — forked from mcattarinussi/gpg-ssh-setup.md
A setup guide to use a personal gpg key for ssh authentication

GPG - SSH setup

Generating the master key

Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.

Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)

  ▶ gpg --full-generate-key --expert

gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.

@imsakg
imsakg / rm_multi_files.sh
Last active April 9, 2023 00:38
Simple, easy to use and powerful shell script. That detects same file with same hash and removes one of them.
#!/bin/bash
# The script will detect copy files from current directory (sha512hash) and remove copy ones with prompt.
# Usage: ./rm_multi_files.sh
files=$(ls -1)
files_count=$(ls -1 | wc -l)
echo "Total files: $files_count"
# echo "Files: $files"
@imsakg
imsakg / markdown-includer.py
Last active May 2, 2022 19:09
Import markdowns to a markdown file.
import os
from re import TEMPLATE
DIRs = sorted(os.listdir())
FOLDERs = []
FILEs = []
PREFIX = ".md"
TEMPLATE = False