Skip to content

Instantly share code, notes, and snippets.

View xkr47's full-sized avatar

Jonas Berlin xkr47

View GitHub Profile
@mat813
mat813 / gandi.rb
Last active February 22, 2022 16:02
OpenDNSSEC to Gandi
#!/usr/bin/env ruby
# frozen_string_literal: true
# ods-ksmutil key export --keystate ready -t KSK --all | ruby gandi.rb ready
# ods-ksmutil key export --keystate retire -t KSK --all | ruby gandi.rb retire
require 'pp'
require 'rubygems'
require 'dnsruby'
require 'xmlrpc/client'
@wandernauta
wandernauta / sp
Last active April 16, 2024 15:37
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/usr/bin/env bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#
@staltz
staltz / introrx.md
Last active April 25, 2024 04:18
The introduction to Reactive Programming you've been missing
@kimmoli
kimmoli / myclass.cpp
Last active August 29, 2015 14:13
Cover animation disable
#include <QDBusConnection>
...
QDBusConnection::sessionBus().connect("", "/com/jolla/lipstick", "com.jolla.lipstick", "coverstatus",
this, SLOT(handleCoverstatus(const QDBusMessage&)));
...
void myclass::handleCoverstatus(const QDBusMessage& msg)
{
QList<QVariant> args = msg.arguments();
m_coverStatus = args.at(0).toInt();
@torgeir
torgeir / debug-gulp-stream-content.js
Created July 1, 2015 08:20
Debug gulp stream content
var through = require('through2');
function task () {
return gulp.src([ some, files ])
.pipe(concat('app.css'))
.pipe(through.obj(function (chunk, enc, callback) {
console.log(chunk.contents.toString())
this.push(chunk);
callback();
}));
@egel
egel / git-prompt.sh
Created October 10, 2015 09:11
Bash git prompt (show current git branch in prompt)
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@AntonFriberg
AntonFriberg / fonts.conf
Created June 4, 2017 15:36
Debian better font rendering
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
@BjoernSchilberg
BjoernSchilberg / README.md
Created May 5, 2020 08:15 — forked from zouppen/README.md
Push to talk microphone with Pulseaudio

Microphone PTT for Pulseaudio

This tool helps you with many absolutely proprietary software which doesn't include proper push-to-talk key. I wrote this with Google Meet in mind but is also useful for many other browser based apps as well.

Like this? Support me at Github!

Installation

@planetceres
planetceres / RESET_USB_KERNEL_MODULE.md
Last active March 16, 2024 01:24
Restart/reset USB kernel module in Ubuntu 18.04 without rebooting