Skip to content

Instantly share code, notes, and snippets.

View p3lim's full-sized avatar

Adrian L Lange p3lim

  • Norsk Helsenett SF / HelseCERT
  • Norway
View GitHub Profile
@p3lim
p3lim / source.sh
Last active January 26, 2024 02:43
firefox extension badge
#!/bin/bash
# https://extensionworkshop.com/documentation/publish/promoting-your-extension/
curl -sSLO https://blog.mozilla.org/addons/files/2020/04/get-the-addon-fx-apr-2020.svg
inkscape --export-type=png --export-width=172 --export-background-opacity=0 get-the-addon-fx-apr-2020.svg
#!/usr/bin/env python3
# requires nautilus, nautilus-python
# put in ~/.local/share/nautilus-python/extensions/
# or /usr/share/nautilus-python/extensions/
TERMINAL_NAME='kitty'
TERMINAL_ARGS=[]
from gi import require_version

Keybase proof

I hereby claim:

  • I am p3lim on github.
  • I am p3lim (https://keybase.io/p3lim) on keybase.
  • I have a public key whose fingerprint is 5573 B782 9D16 051C 17FC D500 6473 9B23 39A7 45F7

To claim this, I am signing this object:

@p3lim
p3lim / ask.sh
Created October 20, 2016 19:31
Bash: General-purpose Yes/No prompt function ("ask")
# This is a general-purpose function to ask Yes/No questions in Bash, either
# with or without a default answer. It keeps repeating the question until it
# gets a valid answer.
ask() {
# http://djm.me/ask
local prompt default REPLY
while true; do
@p3lim
p3lim / formatted.md
Last active January 8, 2022 06:19
Planetside2 - Formatted API dumps

Servers - census

id name
1 Connery
10 Miller
13 Cobalt
17 Emerald
25 Briggs