Want to support me? Check out the information below on how you can help support me. I appreciate all the support! 💘
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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)" |
- Arc Browser
- AltTab
- Windows-like app tabbing
- https://alt-tab-macos.netlify.app/
- https://github.com/lwouis/alt-tab-macos
- Better Display
- Enable HiDPI on 1440p monitors
- https://betterdisplay.pro
- https://github.com/waydabber/BetterDisplay#readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
^RButton:: | |
Click, right, 2 | |
Return | |
!w:: | |
Send, {Enter}/tell <mo>{Enter} | |
Return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:100000000C9447080C948E080C948E080C948E085F | |
:100010000C948E080C948E080C948E080C948E0808 | |
:100020000C948E080C948E080C9498240C94D42371 | |
:100030000C947E2A0C948E080C948E080C948E08D6 | |
:100040000C948E080C948E080C948E080C948E08D8 | |
:100050000C94261A0C94222A0C948E080C948E0868 | |
:100060000C948E080C948E080C948E080C948E08B8 | |
:100070000C948E080C948E080C948E080C948E08A8 | |
:100080000C948E080C948E080C948E080C948E0898 | |
:100090000C948E080C948E080C948E080C948E0888 |
- NancyFx - Lightweight Web Framework
- Json.NET - high-performance JSON framework for .NET
- Flask - Microframework
- Pydantic - Dataclasses
- pip-tools and pipdeptree - Dependancy mangement
- DeepDiff - Smarter deltas with clean outputs
- pprint - Clean dictionary printing
CHOP IPC Senior Design Project Won 2 categories in The Communicator Awards 2021: https://www.communicatorawards.com/winners/winners-gallery/?event=1044&type=1922&search=drexel (Web Archive)
CHOP IPC Drexel CCI Senior Design Website: http://cci.drexel.edu/seniordesign/2020_2021/chopipc/index.html (Web Archive)