Skip to content

Instantly share code, notes, and snippets.

View Lokaltog's full-sized avatar

Kim A. Ødegaard Lokaltog

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@Lokaltog
Lokaltog / bring-monitor.py
Created July 25, 2016 08:30
Tired of the Norwegian postal service (Posten/Bring) tagging shipments as "attempted delivered, nobody present/unknown address" without actually attempting to deliver the package? This script monitors the package tracking page and plays a siren sound/alert when the status changes. You can then call customer support and complain at +4721316234, i…
#!/usr/bin/env python
'''
Tired of the Norwegian postal service (Posten/Bring) tagging shipments as
"attempted delivered, nobody present/unknown address" without actually
attempting to deliver the package? This script monitors the package tracking
page and plays a siren sound/alert when the status changes. You can then call
customer support and complain at +4721316234, if you're lucky they'll call the
delivery driver and tell him to return and actually deliver the package.
@Lokaltog
Lokaltog / grammar.json
Last active August 29, 2015 14:02
Tumblr argument generator
{
"transforms": {
"children": [
{
"id": "d2c2uckdqg",
"children": [
{
"id": "javk2b7lj5",
"transforms": [
[
@Lokaltog
Lokaltog / grammar.json
Last active August 29, 2015 14:01
Git man page generator grammar for Baba
{
"transforms": {
"children": [
{
"id": "jti2urlqps",
"label": "Adjective",
"children": [
{
"id": "07z8wo05hy",
"label": "Convert",
@Lokaltog
Lokaltog / grammar.json
Last active August 29, 2015 14:01
Dynamic sentences for the Baba Grammar Designer
{
"transforms": {
"children": [
{
"id": "geew4jan3d",
"children": [
{
"id": "19jkvwd4ea",
"transforms": [
[
From 06097e37f73b8236c022c3a56cbd768162728b2d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kim=20Silkeb=C3=A6kken?= <kim.silkebaekken@gmail.com>
Date: Fri, 18 Apr 2014 23:31:11 +0200
Subject: [PATCH] Install fish completion
---
Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
diff --git a/src/widgets/battery.c b/src/widgets/battery.c
index 9b9df18..5644b69 100644
--- a/src/widgets/battery.c
+++ b/src/widgets/battery.c
@@ -3,15 +3,15 @@
#include "util/dbus_helpers.h"
static int
-widget_send_update (struct widget *widget, DBusGProxy *properties_proxy, char *pathbuf) {
+widget_send_update (struct widget *widget, DBusGProxy *properties_proxy, char *dbus_path) {
src/widgets/widgets.c: (in function update_widget)
src/widgets/widgets.c:13:18: Format string parameter to snprintf is not a
compile-time constant: script_template
Format parameter is not known at compile-time. This can lead to security
vulnerabilities because the arguments cannot be type checked. (Use
-formatconst to inhibit warning)
src/widgets/widgets.c:13:27: Null storage passed as non-null param:
snprintf (NULL, ...)
A possibly null pointer is passed as a parameter corresponding to a formal
parameter with no /*@null@*/ annotation. If NULL may be used for this
src/wkline.c: (in function wk_context_menu_cb)
src/wkline.c:7:36: Parameter web_view not used
A function parameter is not used in the body of the function. If the argument
is needed for type compatibility or future plans, use /*@unused@*/ in the
argument declaration. (Use -paramuse to inhibit warning)
src/wkline.c:7:57: Parameter window not used
src/wkline.c: (in function wk_realize_handler)
src/wkline.c:21:8: Operand of ! is non-boolean (int):
!strcmp(wkline->position, "top")
The operand of a boolean operator is not a boolean. Use +ptrnegate to allow !
diff --git a/util/load_config.c b/util/load_config.c
index 7734f36..473cef4 100644
--- a/util/load_config.c
+++ b/util/load_config.c
@@ -2,6 +2,8 @@
#include "src/widgets/widgets.h"
#include "src/wkline.h"
+static GMutex m;
+