Skip to content

Instantly share code, notes, and snippets.

View kseistrup's full-sized avatar
💭
🌈

Klaus Alexander Seistrup kseistrup

💭
🌈
View GitHub Profile
@kseistrup
kseistrup / PKGBUILD
Created August 14, 2024 17:00
PKGBUILD for aur/tmpmail-git
# Maintainer: Siddarth Dushantha <siddarth dot dushanta at gmail dot com>
# Contributor: Benjamin Bädorf <aur at benjaminbaedorf dot eu>
pkgname=tmpmail-git
_pkgname=tmpmail
pkgver=174.g637090f
pkgrel=1
pkgdesc='A temporary email right from your terminal (latest commit)'
arch=('any')
url="https://github.com/sdushantha/tmpmail"
@kseistrup
kseistrup / PKGBUILD
Created June 3, 2024 06:11
PKGBUILD for JetBrains Space
# -*- sh -*-
# Maintainer: Katie Volz <iggyvolz@gmail.com>
# Contributor: Klaus Alexander Seistrup <klaus@seistrup.dk>
pkgname='jetbrains-space'
pkgver=2023.1.7
pkgrel=1
pkgdesc='All-in-one collaboration solution for software development, instant communication, and team and project management'
arch=('x86_64')
@kseistrup
kseistrup / PKGBUILD
Created May 6, 2024 09:18
PKGBUILD for python-pyephem 4.1.5-3 that depends on Python 3.12
# Maintainer: Lukasz Pozarlik <lpozarlik at gmail dot com>
# Contributor: Masutu Subric <masutu dot arch at gmail dot com>
# Contributor: Michal Marek <reqamst at gmail dot com>
# Contributor: Klaus Alexander Seistrup <klaus at seistrup dot dk>
pkgname=('python-pyephem')
pkgver=4.1.5
pkgrel=3
pkgdesc='PyEphem provides scientific-grade astronomical computations'
arch=('aarch64' 'i686' 'x86_64')
@kseistrup
kseistrup / PKGBUILD
Created January 4, 2023 08:52
PKGBUILD for moar 1.11.3-1
# Maintainer: Jameson Pugh <imntreal@gmail.com>
# Contributor: Klaus Alexander Seistrup <klaus@seistrup.dk>
# -*- sh -*-
pkgname=moar
pkgver=1.11.3
pkgrel=1
pkgdesc="A pager designed to just do the right thing without any configuration."
arch=(x86_64)
url='https://github.com/walles/moar'
@kseistrup
kseistrup / is_isogram.py
Created July 20, 2020 09:25
Test if TEXT is an isogram, using Python
def is_isogram(text, case_sensitive=False):
"""Test if TEXT is an isogram"""
if type(text) is not str:
return False
if not text:
return True
unique = set(text if case_sensitive else text.casefold())
return len(text) == len(unique)
@kseistrup
kseistrup / 68-bits.md
Created April 29, 2020 12:39
68 Bits of Unsolicited Advice

68 Bits of Unsolicited Advice

  • Learn how to learn from those you disagree with, or even offend you. See if you can find the truth in what they believe.
  • Being enthusiastic is worth 25 IQ points.
  • Always demand a deadline. A deadline weeds out the extraneous and the ordinary. It prevents you from trying to make it perfect, so you have to make it different. Different is better.
  • Don’t be afraid to ask a question that may sound stupid because 99% of the time everyone else is thinking of the same question and is too embarrassed to ask it.
  • Being able to listen well is a superpower. While listening to someone you love keep asking them “Is there more?”, until there is no more.
  • A worthy goal for a year is to learn enough about a subject so that you can’t believe how ignorant you were a year earlier.
  • Gratitude will unlock all other virtues and is something you can get better at.
  • Treating a person to a meal never fails, and is so easy to do. It’s powerful with old friends and a great way to make new frie
@kseistrup
kseistrup / gris.txt
Created April 18, 2018 17:05
Gris er det nye svin
angrebgriskel.
bacongris.
butikgrisdue.
bægergrisger.
dannebroggrisdue.
engrisklet adj., engrisklede.
fedegris.
forsatgrisdue.
forgrisde, forsvandt, forsvundet (forsvunden, forsvundne, jf. § 31-34).
forgrisding -en, -er, i sms. forgrisdings-, fx forgrisdingsnummer.
Verifying that "kseistrup.id" is my Blockstack ID. https://onename.com/kseistrup
@kseistrup
kseistrup / onename.md
Last active August 29, 2015 14:05
OneName verification
#!/usr/bin/python
# Audio extraction script for All of Bach:
# http://allofbach.com/en/
import re
import urllib2
from BeautifulSoup import BeautifulSoup
page = urllib2.urlopen('http://allofbach.com/en/bwv/')
soup = BeautifulSoup(page)