Skip to content

Instantly share code, notes, and snippets.

View kd35a's full-sized avatar

Fredrik Strandin kd35a

View GitHub Profile
@kd35a
kd35a / 0001-Adhere-to-new-upstream-packaging.patch
Created October 4, 2016 18:40
0001-Adhere-to-new-upstream-packaging.patch
From c2a287eb97a4e3ea2694d38fa650117199775c92 Mon Sep 17 00:00:00 2001
From: Fredrik Strandin <fredrik@strandin.name>
Date: Tue, 4 Oct 2016 20:36:36 +0200
Subject: [PATCH] Adhere to new upstream packaging
Also updated to use sha512 instead of sha256, because why not.
---
PKGBUILD | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
@kd35a
kd35a / 0001-Add-a-man-page.patch
Last active May 22, 2016 10:50
Add a man page for pkgcacheclean
From a13417d296f78623675b7d2e40e46e48601a5cbc Mon Sep 17 00:00:00 2001
From: Fredrik Strandin <fredrik@strandin.name>
Date: Sun, 22 May 2016 12:23:49 +0200
Subject: [PATCH] Add a man page
---
.SRCINFO | 6 ++++--
PKGBUILD | 10 +++++++---
pkgcacheclean.8 | 40 ++++++++++++++++++++++++++++++++++++++++
3 files changed, 51 insertions(+), 5 deletions(-)
#!/bin/bash
# by http://github.com/jehiah
# this prints out some branch status (similar to the '... ahead' info you get from git status)
# example:
# $ git branch-status
# dns_check (ahead 1) | (behind 112) origin/master
# master (ahead 2) | (behind 0) origin/master
tot_diff=0
@kd35a
kd35a / extractor.py
Created June 10, 2013 22:48
Background: Had the problem that I accidentally restarted my phone before saving my track I had recorded with RunKeeper. Shit. So I started to get as much data out of my phone as possible. And this is my story.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Version 2, December 2004
#
# Copyright (C) 2013 Fredrik Strandin
#
# Everyone is permitted to copy and distribute verbatim or modified
# copies of this license document, and changing it is allowed as long
@kd35a
kd35a / output_from_pylint
Created August 8, 2012 08:23
Problem with requests
E1103: 76,11:MyClass.my_func: Instance of 'Request' has no 'json' member (but some types could not be inferred)
@kd35a
kd35a / endisdevice.sh
Created April 28, 2012 21:23
Script than enables or disables a device
#!/bin/bash
#--------------------------------------------------------------------
# Authur: Fredrik "kd35a" Strandin <fredrik [at] strandin (dot) name>
# License: WTFPL (Do What The Fuck You Want To Public License)
# ---
# Disable or enables a specific input device.
# Use 'xinput --list' to see which device you want to enable/disable.
#--------------------------------------------------------------------