Skip to content

Instantly share code, notes, and snippets.

View djmango's full-sized avatar
🥫
Cooking

Sulaiman Ghori djmango

🥫
Cooking
View GitHub Profile
@djmango
djmango / djmango_fusuma_config.yml
Last active August 5, 2020 23:04
my fusuma config
swipe:
3:
left:
command: 'xdotool key super+ctrl+Right' # workspace right
interval: 0.3
right:
command: 'xdotool key super+ctrl+Left' # workspace left
interval: 0.3
up:
command: 'xdotool key Control_L+F10' # Workspace overview
@djmango
djmango / logid.cfg
Last active September 26, 2021 14:17
my logid cfg file, for my mx master 3
devices: (
{
name: "Wireless Mouse MX Master 3";
smartshift:
{
on: true;
threshold: 25;
};
hiresscroll:
{
@djmango
djmango / drive.py
Created March 3, 2021 18:29
automated car jump + crash nfs heat
import time
import pyautogui
# warn the boss
for i in range(3, 0, -1):
print(f'{i}..')
time.sleep(1)
print('go!')
i = 0 # loop counter
@djmango
djmango / spotify_fmbot_autocrown.py
Last active April 9, 2021 18:00
Automatically gives you all your artist crowns for the Discord last.fm fmbot
""" just a little script to automatically type out messages per artist you follow on spotify, very specific use case but automation is fun """
from time import sleep
import pyautogui
import spotipy
import spotipy.util as util
SPOTIPY_CLIENT_ID = 'YOUR_APP_ID'
SPOTIPY_CLIENT_SECRET = 'YOUR_APP_SECRET'
USERNAME = 'YOUR_USERNAME'
@djmango
djmango / hbr.csv
Created July 12, 2022 12:16
5k Harvard Business Review article URLS grouped by parent topic
We can't make this file beautiful and searchable because it's too large.
topic,topic-href,article,article-href
Social Media,https://hbr.org/topic/social-media,I Ran 4 Experiments to Break My Social Media Addiction. Here’s What Worked.,https://hbr.org/2018/10/i-ran-4-experiments-to-break-my-social-media-addiction-heres-what-worked
Behavioral Economics,https://hbr.org/topic/behavioral-economics,Building Organizational Resilience,https://hbr.org/product/building-organizational-resilience/S20062?sku=S20062-PDF-ENG
Angel Financing,https://hbr.org/topic/angel-financing,Case Study: An Angel Investor with an Agenda,https://hbr.org/2010/12/case-study-an-angel-investor-w
Lean Business Model,https://hbr.org/topic/lean-business-model,Lean Strategy,https://hbr.org/2016/03/lean-strategy
Career Coaching,https://hbr.org/topic/career-coaching,How Coaching Can Help You Move from Crisis Management to Crisis Leadership,https://hbr.org/sponsored/2021/05/how-coaching-can-help-you-move-from-crisis-management-to-crisis-leadership
Venture Capital,https://hbr.org/topic/venture-capital,Everything You (Don’t
@djmango
djmango / commerzbank_to_simplifi.py
Created January 8, 2023 08:49
A script to convert a CSV account transaction file exported from Commerzbank to a format that can be imported into Simplifi.
""" A script to convert a CSV account transaction file exported from Commerzbank to a format that can be imported into Simplifi. """
import csv
from datetime import datetime
from pathlib import Path
HERE = Path(__file__).parent
# EUR_TO_USD: float = 1.13
EUR_TO_USD: float = 1.00
@djmango
djmango / kb.json
Created February 3, 2023 09:38
Karabiner Complex Modification - VSCode Use Function Keys
{
"title": "Function keys work as fn keys (instead of media keys)",
"rules": [
{
"description": "(Atom, CKII, EUIV, iTerm, muCommander, PyCharm, VSCode, WebStorm, AndroidStudio) Function keys work as fn keys",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "f1",
@djmango
djmango / .zshrc
Last active December 1, 2023 22:22
My Neovim init.vim
source /opt/homebrew/share/antigen/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle command-not-found
antigen bundle direnv
# antigen bundle dirhistory
antigen bundle docker
@djmango
djmango / .zshrc
Last active December 1, 2023 22:22
My .zshrc
# zmodload zsh/zprof
source /opt/homebrew/share/antigen/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle command-not-found
antigen bundle direnv
# antigen bundle dirhistory
@djmango
djmango / transcript.json
Created June 16, 2023 03:52
Example Transcript JSON object
{
"transcription_id": "7cf094b91662b7",
"user_id": "931c215c-b6c6-4b86-96dd-193f18d8c6dc",
"created": "2023-05-03T02:40:52.006612+00:00",
"updated": "2023-05-03T02:41:46.412716+00:00",
"name": "2023-05-03 02:40:52",
"status": "complete",
"orphaned": false,
"translate": false,
"recipients": [