Skip to content

Instantly share code, notes, and snippets.

View mutax's full-sized avatar
🙈

Florian Streibelt mutax

🙈
View GitHub Profile
- name: "Get Repo"
run: |
git=/usr/bin/git
refs="refs/remotes/origin/$GITHUB_REF_NAME"
echo "cloning repo: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}"
echo " from branch: $GITHUB_REF_NAME"
echo " commit: ${GITHUB_SHA}"
tokenkey="http.${GITHUB_SERVER_URL}/.extraheader"
AUTH=$( echo -n "x-access-token:${GITHUB_TOKEN}" | base64 )
#
# vim: set ft=sh:
# This bash fragment enables a powerline inspired
# status bar (prompt) in less.
# requires patched NerdFonts in your terminal!
# see https://www.nerdfonts.com/cheat-sheet?set=nf-
# Requires less-632 or newer to allow private code points
# to be treated as characters using LESSUTFCHARDEF
# download at https://greenwoodsoftware.com/less/download.html
#!/usr/bin/env python3
#
# Wrapper to format dns zone prior to calling vim on it
# for use as drop in editor in pdnsutil edit-zone
#
# written by Florian Streibelt <florian@streibelt.net>
#
# This is a very rough first POC
import os,sys