Skip to content

Instantly share code, notes, and snippets.

View mikkelrask's full-sized avatar
🛠️
the right tool for the job

Mikkel Rask mikkelrask

🛠️
the right tool for the job
View GitHub Profile
Verifying my Blockstack ID is secured with the address 1Hk4UZaHWdCEaEN6huPpm5aWfYrsatwqto https://explorer.blockstack.org/address/1Hk4UZaHWdCEaEN6huPpm5aWfYrsatwqto

Keybase proof

I hereby claim:

  • I am mikkelrask on github.
  • I am mikkelrask (https://keybase.io/mikkelrask) on keybase.
  • I have a public key ASCQOhKxQ8rWWVWLpsUZsacRyRY-VZXE7dl_riGxs_rY9Ao

To claim this, I am signing this object:

@mikkelrask
mikkelrask / create-customer.py
Last active January 20, 2024 15:03
Create customer payload
import requests
url = "https://app.rackbeat.com/api/customers"
payload = {
'number': '50487668',
'company_name': 'Rackbeat + Netvisor',
'customer_group_id': '1001',
'payment_terms_id': '2',
'company_vat': 'FI12345678', # The key accepts both strings and integers, and will respond with an int, if given one
@mikkelrask
mikkelrask / volume.sh
Last active May 27, 2024 09:12
Volume control with pactl and notify-send
#!/usr/bin/env bash
ICON_DIR="/usr/share/icons/breeze-dark/status/24"
APP_NAME="$(hostname)"
ID=1847
function get_volume {
pactl list sinks | grep 'Volume: front-left' | awk '{print $5}' | sed 's/%//g'
}
@mikkelrask
mikkelrask / .zshrc
Created June 3, 2024 07:26
OS logo shown in prompt. when logging in with SSH
if [ -n "$SSH_TTY" ]; then
SSHPROMPT="%F{blue}$(distrocheck.sh) %F{cyan}($(command cat /etc/hostname)) %F{foreground}"
else
SSHPROMPT=""
fi
# Git info %
declare GITPROMPT=""
function git_prompt_info() {
local git_branch=$(git symbolic-ref --short HEAD 2>/dev/null)