Skip to content

Instantly share code, notes, and snippets.

@bendardenne
bendardenne / gls.sh
Created January 7, 2021 09:36
GLS watch and email
while [[ true ]]
do
watch -n 30 -g "curl -s https://gls-group.eu/app/service/open/rest/EU/en/rstt001\?match\=$id | python3 -m json.tool --sort-keys"
content=$(curl -s https://gls-group.eu/app/service/open/rest/EU/en/rstt001\?match\=$id | python3 -m json.tool --sort-keys)
printf "Subject: GLS Update\n$content" | msmtp -a default $emailaddress
done
@bendardenne
bendardenne / conanfile.py
Created April 30, 2020 14:52
conanfile for sdbus-cpp
import os
from conans import ConanFile, tools, CMake
class SdbuscppConan(ConanFile):
name = "sdbus-cpp"
version = "0.8.1"
license = "https://github.com/Kistler-Group/sdbus-cpp/blob/master/COPYING"
url = "https://github.com/Kistler-Group/sdbus-cpp/"
description = "D-Bus IPC C++ binding library built on top of sd-bus, a D-Bus C library by systemd"
@bendardenne
bendardenne / i3lock-blur.sh
Created April 18, 2020 22:33
i3lock-color
#!/usr/bin/env bash
background=000000BA
insidecolor=00000000
ringcolor=ffffffff
keyhlcolor=d23c3dff
bshlcolor=d23c3dff
separatorcolor=00000000
insidevercolor=00000000
insidewrongcolor=d23c3dff
./rofi usage:
./rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
-h,-help This help message.

The present document dresses up a proposal for a revamped "stream" process which will try to address several points of improvements of the current approach.

On purpose

We propose to re-orient the purpose of the stream to knowledge sharing. The stream should be a place to share existing knowledge, not acquire new knowledge. This excludes from the stream such tasks like investigative or study work, "helpdesk" issues or how-to questions. These could instead be performed as part of a project, redirected to the CG, or asked on HipChat, depending on the scope and situation. New knowledge acquired during such tasks may of course be thereafter proposed to be shared within the stream. In fact, this should even be encouraged.

eypress 88, state raw = 16
is_keypad_key = 1
is_private_keypad_key = 0
xcb_is_cursor_key = 0
xcb_is_pf_key = 0
xcb_is_function_key = 0
xcb_is_misc_function_key = 0
xcb_is_modifier_key = 0
sym = � (65433)
Keysym could not be converted to UCS, skipping
#!/bin/bash
# This file must be executable to work! chmod 755!
# Automagically mount CIFS shares in the network, similar to
# what autofs -hosts does for NFS.
# Put a line like the following in /etc/auto.master:
# /cifs /etc/auto.smb --timeout=300
# You'll be able to access Windows and Samba shares in your network
if(current.Album === previous)
return;
previous = current.Album;
bot.say("#radiodour", "NOW PLAYING: " + current.Artist + " - " + current.Title); });
})
object testOscar extends App with CPModel {
val X = CPIntVar(0 until 10)
val Y = CPIntVar(0 until 25)
add(X > Y)
onSolution{
println(X + " > " + Y)
}
(spacefm:17968): Gtk-CRITICAL **: IA__gtk_builder_get_object: assertion 'GTK_IS_BUILDER (builder)' failed
(spacefm:17968): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
(spacefm:17968): Gtk-CRITICAL **: IA__gtk_about_dialog_set_version: assertion 'GTK_IS_ABOUT_DIALOG (about)' failed
(spacefm:17968): Gtk-CRITICAL **: IA__gtk_about_dialog_set_logo_icon_name: assertion 'GTK_IS_ABOUT_DIALOG (about)' failed
(spacefm:17968): GLib-GObject-CRITICAL **: g_object_add_weak_pointer: assertion 'G_IS_OBJECT (object)' failed