Skip to content

Instantly share code, notes, and snippets.

@tldev-de
tldev-de / graph_tool_install.md
Last active January 22, 2019 19:27
How to install graph_tool on Ubuntu 16.04 Xenial

How to install graph_tool on Ubuntu 16.04 Xenial

Problem Description

This is because, in reality, graph-tool is a C++ library wrapped in Python, and it has many C++ dependencies such as Boost, CGAL and expat, which are not installable via Python-only package management systems such as pip. Because the module lives between the C++ and Python worlds, its installation is done more like a C++ library rather than a typical python module. https://git.skewed.de/count0/graph-tool/wikis/installation-instructions#native-installation

add public key to verify the packages

sudo apt-key adv --keyserver pgp.skewed.de --recv-key 612DEFB798507F25
@tldev-de
tldev-de / database_docker_backup.sh
Last active November 15, 2024 21:44
Simple backup script, that dumps any mysql, mariadb or postgres docker container into zstd compressed files.
#!/bin/bash
# be sure, you have `zstd` installed
#####################################
############## config ###############
#####################################
MYSQL_REGEX='(mysql)'
@tldev-de
tldev-de / GetTimeZone.java
Created March 23, 2021 22:37
get timezone in java
import java.util.TimeZone;
public class GetTimeZone {
public static void main(String[] args) {
System.out.println(TimeZone.getDefault());
}
}
---
blueprint:
name: AWTRIX Solar Energy Monitor
description: >
This blueprint will show the current solar energy received.
It uses a icons 54156 (solar-green), 50557 (solar-white-dyn), 50546 (solar-static) that you need to install.
domain: automation
input:
blueprint:
name: AWTRIX3 Blueprint
description: Show any entity on awtrix 3 (e.g. ulanzi tc001)
domain: automation
input:
app_name:
name: (Required) Application name
description: "Application name"
default: "awtrix_app"
selector: