Skip to content

Instantly share code, notes, and snippets.

Fredrik Strandin kd35a

View GitHub Profile
@kd35a
kd35a / 0001-Adhere-to-new-upstream-packaging.patch
Created Oct 4, 2016
0001-Adhere-to-new-upstream-packaging.patch
View 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
Add a man page for pkgcacheclean
View 0001-Add-a-man-page.patch
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(-)
View git-branch-status
#!/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 Jun 10, 2013
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.
View extractor.py
#!/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 Aug 8, 2012
Problem with requests
View output_from_pylint
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 Apr 28, 2012
Script than enables or disables a device
View endisdevice.sh
#!/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.
#--------------------------------------------------------------------
You can’t perform that action at this time.