Skip to content

Instantly share code, notes, and snippets.

View ScriptAutomate's full-sized avatar
:shipit:
Automating All The Things

Derek Ardolf ScriptAutomate

:shipit:
Automating All The Things
View GitHub Profile
@EndlessTrax
EndlessTrax / .gitconfig
Created February 16, 2024 16:17
Better `git` log
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
@jangroth
jangroth / dendron-to-obsidian.py
Created March 25, 2023 04:53
Converts dendron note structure to obsidian note structure
# converts dendron note structure to obsidian note structure
# - removes frontmatter
# - adds tags
# - converts internal links
# - ignores empty (frontmatter-only) notes
#
# use at your own risk
import glob
import re
@paolodina
paolodina / dendron-import-github-stars.py
Last active July 2, 2022 16:02
A script to import GitHub stars into Dendron. DRAFT
#!/usr/bin/env python
"""
Obtain the starred data with this:
https://github.com/dogsheep/github-to-sqlite#fetching-repos-that-have-been-starred-by-a-user
"""
import csv
import json
import string
@deppen8
deppen8 / documenting-your-code-links.md
Last active December 18, 2022 19:43
Links in the `documenting-your-code` tutorial
@kevinslin
kevinslin / keybindings.json
Last active May 10, 2023 01:32
Kevin's VSCode Keybindings
// Place your key bindings in this file to override the defaults
[
// The following are Kevin's keybindings for VSCode
// They are made available under CC BY 4.0
//
// To navigate
// `==` denote sections
// `---` denotes subsections
//
// == Dendron
@dwoz
dwoz / photon-py3-gdb-debug.md
Last active May 31, 2023 00:42
Debug python3 with gdb on photon linux

Debug python3 process with GDB on Photon Linux

  • Enable the debuginfo package repository.

    In /etc/yum.repos.d/photon-debuginfo.repo change enabled=0 to enable=1.

    /etc/yum.repos.d/photon-debuginfo.repo should look like this

    [photon-debuginfo]
    

Twitter abuses all media file uploads, each type in its own way. If we want to upload a good looking animation loop from some low-color, high-detail generative art, we have to game their system's mechanisms.

  • don't upload a video file, they will re-encode it into absolute 💩

  • create a GIF, which they will auto-convert into a video file 😱

  • The frames of the GIF will be resized to an even-sized width using an extremely naive algorithm. Your GIF should be an even size (1000, 2000,

@hamelsmu
hamelsmu / draft-mode.ipynb
Last active April 2, 2021 06:03
What is the payload field for determining the draft status of a PR for GitHub Actions?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@adrianschneider94
adrianschneider94 / codegen.yml
Last active July 12, 2021 01:37
Current state of my graphql-codegen plugin for graphene.No pretty code yet.
overwrite: true
schema: "test.graphql"
documents: null
generates:
generated/test.py:
plugins:
- "lib/graphql-codegen-graphene.js"
@nbrochu
nbrochu / browser.py
Last active June 9, 2019 17:13
Python Pseudo-Electron Boilerplate (Windows)
import os
import sys
import math
import time
import threading
import webbrowser # To launch the remote debugging page
import win32api #
import win32con # pip install pywin32
import win32gui #