Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
pythoninthegrass / .bashrc
Created Jun 23, 2022
Synology shell config
View .bashrc
#/etc/profile: system-wide .profile file for ash.
umask 077
export PATH
export PGDATA
pythoninthegrass / config.yml
Last active Jul 1, 2022
lazydocker config
View config.yml
# ~/Library/Application Support/jesseduffield/lazydocker/config.yml
returnImmediately: true
- name: docker-compose
command: docker-compose --env-file=.env up --remove-orphans -d
- name: bld-meetup
attach: false
pythoninthegrass / keychron_q1_custom.json
Created Jun 15, 2022
Keychron Q1 Via Config: Solid white backlight, F5 + F11 keys w/o Fn
View keychron_q1_custom.json
"name": "Keychron Q1",
"vendorProductId": 875823367,
"macros": ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""],
"layers": [
pythoninthegrass /
Last active Jun 4, 2022
Working ubuntu cloud-config used with multipass
multipass launch -n testvm -mem --cpu 1 --disk 5G --memory 2G 22.04 --cloud-init ~/.config/cloud-init.yml -v
ip_addr=$(multipass info testvm | awk '/IPv4/ {print $NF}')
ssh "ubuntu@${ip_addr}"
pythoninthegrass /
Created May 24, 2022 — forked from wojteklu/
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.

General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

pythoninthegrass / get-oauth2-token-meetup-api
Created May 4, 2022 — forked from valeriocos/get-oauth2-token-meetup-api
Get a bearer/OAuth2 token for Meetup application-only requests in Python3
View get-oauth2-token-meetup-api
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2015-2019 Bitergia
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
pythoninthegrass / articles.json
Created Apr 17, 2022
Svelte REPL troubleshooting
View articles.json
{"1":{"title":"USFL 2022 season opener, New Jersey Generals at Birmingham Stallions: Live updates, score, TV, streaming info - CBS Sports","url":"","source":"CBS Sports"},"2":{"title":"2022 NBA Playoffs - Betting Tips for Saturday's Game 1 matchups - ESPN","url":"","source":"ESPN"},"3":{"title":"Here's what Biden, Harris and their spouses paid in 2021 taxes - CBS News","url":"","source":"CBS News"},"4":{"title":"Judge rules Musk's tweets over taking Tesla private were false, investors say - Reuters","url":"
pythoninthegrass /
Created Apr 13, 2022
Ingest CSVs from Cisco Meraki, then filter by IP address, and scan the hosts from the filtered CSV
#!/usr/bin/env python3
import nmap
import pandas as pd
from icecream import ic
from pathlib import Path
# verbose icecream
# ic.configureOutput(includeContext=True)
pythoninthegrass / config
Created Mar 19, 2022 — forked from miguelmota/config
Arch linux VNC server setup
View config
localhost # comment this out to allow connections from anywhere