Skip to content

Instantly share code, notes, and snippets.

View AbirRazzak's full-sized avatar
:shipit:
Shipping code, reviewing tickets, living life.

Abir Razzak AbirRazzak

:shipit:
Shipping code, reviewing tickets, living life.
View GitHub Profile
@AbirRazzak
AbirRazzak / LinksOfMe.md
Last active May 18, 2021 17:58
A collection of links that mention me
@AbirRazzak
AbirRazzak / MyFavoriteLibraries.md
Last active October 18, 2022 15:11
Useful Libraries and Such

C#

  • NancyFx - Lightweight Web Framework
  • Json.NET - high-performance JSON framework for .NET

Python

  • Flask - Microframework
  • Pydantic - Dataclasses
  • pip-tools and pipdeptree - Dependancy mangement
  • DeepDiff - Smarter deltas with clean outputs
  • pprint - Clean dictionary printing
@AbirRazzak
AbirRazzak / 1upkeyboards_1up60hse_anim_60hse.hex
Created July 3, 2019 19:38
Keyboard PCB Configuration Files (1UP HSE QMK Toolbox Files)
:100000000C9447080C948E080C948E080C948E085F
:100010000C948E080C948E080C948E080C948E0808
:100020000C948E080C948E080C9498240C94D42371
:100030000C947E2A0C948E080C948E080C948E08D6
:100040000C948E080C948E080C948E080C948E08D8
:100050000C94261A0C94222A0C948E080C948E0868
:100060000C948E080C948E080C948E080C948E08B8
:100070000C948E080C948E080C948E080C948E08A8
:100080000C948E080C948E080C948E080C948E0898
:100090000C948E080C948E080C948E080C948E0888
@AbirRazzak
AbirRazzak / XIVHotkeys.ahk
Created November 14, 2019 05:44
AutoHotKey script I use while playing FFXIV
^RButton::
Click, right, 2
Return
!w::
Send, {Enter}/tell <mo>{Enter}
Return
@AbirRazzak
AbirRazzak / ldap.py
Last active November 9, 2020 20:58
Demo python-ldap script for senior design
import ldap
print('Connecting to ldap server...')
connect = ldap.initialize('ldap://localhost')
connect.set_option(ldap.OPT_REFERRALS, 0)
connect.simple_bind_s('cn=admin,dc=example,dc=com', 'redhat')
print('Connected!\n')
print('\nSearch for user with uid = amr439')
result = connect.search_s('dc=example,dc=com', ldap.SCOPE_SUBTREE, '(uid=amr439)')
@AbirRazzak
AbirRazzak / get_py_modules.py
Created June 18, 2021 19:06
Get All Modules in Python Project
def get_py_modules():
modules = []
path = 'some/path'
path_walk = os.walk(path)
_, dirs, _ = next(path_walk)
for module_dir in dirs:
if os.path.exists(os.path.join(path, module_dir, '__init__.py')):
modules.append(module_dir)
@AbirRazzak
AbirRazzak / string_to_int_atoi.py
Last active May 16, 2022 17:15
String to Integer (atoi)
# https://leetcode.com/problems/string-to-integer-atoi/
class Solution:
def convert_char_to_int(self, digit_as_char: str) -> int | None:
if digit_as_char == '0':
return 0
elif digit_as_char == '1':
return 1
elif digit_as_char == '2':
return 2
@AbirRazzak
AbirRazzak / Apps.md
Last active September 12, 2023 18:58
Favorite MacOS Apps
@AbirRazzak
AbirRazzak / .zshrc
Last active August 15, 2023 20:09
AWS Auth Functions for Oh My Zsh Profile
# Use `auth` to refresh or use new AWS credentials for the current terminal instance
auth() {
aws configure sso
eval "$(aws configure export-credentials --profile default --format env)"
}
# Use `setauth` to set current AWS session to current terminal instance
# Helpful when you've already auth'ed in a different terminal instance
setauth() {
eval "$(aws configure export-credentials --profile default --format env)"
@AbirRazzak
AbirRazzak / README.md
Last active December 12, 2023 03:05
Support Me

Want to support me? Check out the information below on how you can help support me. I appreciate all the support! 💘