Skip to content

Instantly share code, notes, and snippets.

View kvz's full-sized avatar

Kevin van Zonneveld kvz

View GitHub Profile
@kvz
kvz / keybindings.json
Created April 8, 2025 07:56
saveWIPAndSync
// Add this to your keybindings.json, you can find it by typing Keyboard from the command palette
...
{
"key": "shift+cmd+enter",
"command": "workbench.action.tasks.runTask",
"args": "saveWIPAndSync"
}
...
# Inspiration, credits, references:
# - https://gist.github.com/nickrttn/28acb67356c77b838493f31a6286fc03
# - https://juliu.is/tidying-your-home-with-nix/
# - https://github.com/Arkham/dotfiles.nix/blob/ba85362abf3a442b327d0b8fbb4691de5649cf40/home.nix
# - https://github.com/nix-community/home-manager/tree/master/modules/programs
# - https://github.com/NixOS/nixpkgs/blob/master/pkgs/shells/
# - https://github.com/nix-community/home-manager/issues/1341
# - https://github.com/abiosoft/colima
# - https://jeppesen.io/git-commit-sign-nix-home-manager-ssh/
# - https://github.com/NelsonJeppesen/nix-lifestyle/blob/main/home-manager/git.nix
@kvz
kvz / papertrail-api.md
Created January 10, 2023 08:14
Papertrail API Coverage
  • log search API
    • events search
  • settings API
    • systems
      • list
      • show
      • register
      • update
  • remove
cd ~/code/uppy
git checkout main
git status
# make sure to have a clean working tree
git pull
yarn # you now have the node_modules from main, this includes the linting modules
git checkout $myBranch # e.g. `golden-retriever-ghosts-2`
git checkout main -- .eslintrc.js
git add .eslintrc.js
@kvz
kvz / prometheus-processes.sh
Created January 14, 2021 20:25
prometheus-processes.sh
#!/usr/bin/env bash
set -o pipefail
set -o errexit
set -o nounset
# set -o xtrace
newline=$'\n'
# ps %cpu is total consumption divided by total runtime, so we use
# the second iteration of top here to get a clean current value:
aa_DJ
aa_ER
aa_ET
af_ZA
agr_PE
ak_GH
am_ET
an_ES
anp_IN
ar_AE
### Keybase proof
I hereby claim:
* I am kvz on github.
* I am kvz (https://keybase.io/kvz) on keybase.
* I have a public key ASBOLSEUJ1qnWYocbZI5HSEDtFxMFma0A4g47p_Hp1Oz6wo
To claim this, I am signing this object:
{config, pkgs, ...}:
let
unstable_pkgs = import (pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
rev = "a20a20f1363246000307e6dfeaf16d49daa4e06a";
sha256 = "06n770ia7s8wj7niisf9sazgq4g4q1sw5f8ah65h56k67dpdnpfq";
}) {};
in
{config, pkgs, ...}:
{
/*
Inspired by http://lethalman.blogspot.nl/2015/02/nixos-consul-nginx-and-containers.html
*/
nixpkgs.config.packageOverrides = pkgs: rec {
consul070 = pkgs.stdenv.lib.overrideDerivation pkgs.consul (oldAttrs: {
name = "consul-0.7.0";
@kvz
kvz / gist:e9f5b113f07763e49161
Last active February 21, 2016 15:16
todays-modal-todos.md
Some todos I can think off:
- [ ] Make Modal prettier and accessible using Artur's research
- [ ] Convert `GoogleDrive` to adhere to `Dummy`'s format, so it'sare compatible with the new Modal
- [ ] Convert `DragDrop` to adhere to `Dummy`'s format, so it'sare compatible with the new Modal
- [ ] Make `ProgressBar` work with the new Modal
- [ ] Rename FakeModal to Modal, deprecating our old one
- [ ] Make the Modal look like Harry's sketchup
- [ ] ?