Skip to content

Instantly share code, notes, and snippets.

View nielsgl's full-sized avatar

Niels van Galen Last nielsgl

View GitHub Profile
@vesabaruti
vesabaruti / buildspec.yaml
Last active December 12, 2021 09:56
Buildspec file configuration to install packages and run tests for python app on CodeBuild
version: 0.2
env:
variables:
ENVIRONMENT: test
# Set other neccessary environment variables here
# These can also be set in AWS CodeBuild Console
phases:
install:
runtime-versions:
@brianddk
brianddk / trezor-wallet-search.py
Last active May 10, 2021 18:33
Trezor HW wallet search utility
#!/usr/bin/env python3
# [rights] Copyright Dan B. (brianddk) 2019 https://github.com/brianddk
# [license] Apache 2.0 License https://www.apache.org/licenses/LICENSE-2.0
# [repo] https://gist.github.com/brianddk/e655a2a30f68cd5d981b69ec4b709d9c
# [tipjar] LTC: LQjSwZLigtgqHA3rE14yeRNbNNY2r3tXcA or https://git.io/fh6b0
# [refered] https://www.reddit.com/r/TREZOR/comments/ak2mej/
# [erratta] https://github.com/pyusb/pyusb/issues/203
# - Must use libusb-1.0.dll v1.0.21
# https://github.com/ethereum/pyethereum/issues/888
# - Must install trezor[hidapi]
@tossmilestone
tossmilestone / Flake8.txt
Created March 30, 2018 06:55
Flake8 integrated with PyCharm
How to manually setup flake8 as PyCharm external tool
File / Settings / Tools / External Tools / Add
Name: Flake8
Program: $PyInterpreterDirectory$/python
Parameters: -m flake8 --max-complexity 10 --ignore E501 $FilePath$
Working directory: $ProjectFileDir$
Output Filters / Add
Name: Filter 1
@HyperBrain
HyperBrain / lifecycle-cheat-sheet.md
Last active September 12, 2025 21:03
Serverless Lifecycle Cheat Sheet

Serverless plugin author's cheat sheet

This cheat sheet provides a detailed overview of the exposed lifecycle events and available commands (and entrypoints) of the Serverless framework, that can be hooked by plugins (internal and external ones). The document is structured by the commands invoked by the user.

Lifecycle events are shown as the globally available outer events (all providers) and sub lifecycle events that are provider specific in the called order. Currently only the AWS provider is shown. If you have information about the other provider,

@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active February 5, 2026 06:11
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@mkubenka
mkubenka / install.sh
Created April 23, 2016 19:28
OpenVPN Access Server Letsencrypt
#!/bin/sh
apt-get -y install git bc
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
mkdir /etc/letsencrypt
@brianddk
brianddk / tipjar.md
Last active May 3, 2023 23:56
Tip Jar

brianddk's TipJar

None of my work in this space is sponsored, so other priorities take precedence. If you've found some of my samples or posts useful, or wish to place a bounty on a specific request, donations are welcome. But if you just want to give a thumbs up without putting any money down, consider one of the donation addresses listed in the testnet / valueless section or simply use one of my referral links below.

Mainnet / Production Coins

If you don't see a coin you would like to contribute, simply open an issue requesting I add it and I will. If you want to tip BAT or DONUT, I am accepting both at my Ethereum ERC20 address.

BTC Lightning Network https://tippin.me/@dkbriand
@bbengfort
bbengfort / venv_cheat_sheet.md
Created August 20, 2014 14:16
My virtualenv and virtualenv wrapper cheat sheet. I alias the commands of virtualenv and virtualenv wrapper for my own development environment.

Ben's VirtualEnv Cheatsheet

This cheat sheet describes my usage/implementation of virtualenv with virtualenv wrapper and the bash foo that I added with the help of many blogs to make it all tick together in fun land.

Quick Reference

$ echo $WORKON_HOME
/Users/benjamin/.virtualenvs

$ echo $PROJECT_HOME
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active March 17, 2026 21:17
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@marcgg
marcgg / gist:733592
Created December 8, 2010 17:26
Regex to get the Facebook Page ID from a given URL
# Matches patterns such as:
# https://www.facebook.com/my_page_id => my_page_id
# http://www.facebook.com/my_page_id => my_page_id
# http://www.facebook.com/#!/my_page_id => my_page_id
# http://www.facebook.com/pages/Paris-France/Vanity-Url/123456?v=app_555 => 123456
# http://www.facebook.com/pages/Vanity-Url/45678 => 45678
# http://www.facebook.com/#!/page_with_1_number => page_with_1_number
# http://www.facebook.com/bounce_page#!/pages/Vanity-Url/45678 => 45678
# http://www.facebook.com/bounce_page#!/my_page_id?v=app_166292090072334 => my_page_id
# http://www.facebook.com/my.page.is.great => my.page.is.great