Skip to content

Instantly share code, notes, and snippets.

View daincredibleholg's full-sized avatar

Holger daincredibleholg

View GitHub Profile
@daincredibleholg
daincredibleholg / tkinter-full-screen.py
Created June 10, 2020 20:58
A tkinter full-screen window with two centered large buttons, one button opening another window in the middle of the screen
import tkinter as tk
from functools import partial
class FullScreenApp(object):
def __init__(self, master, **kwargs):
self.master = master
self.pad = 3
self._geom = '200x200+0+0'
master.geometry("{0}x{1}+0+0".format(
@daincredibleholg
daincredibleholg / time-screen.sh
Created October 29, 2019 09:53 — forked from horttanainen/time-screen.sh
Create a datadog screenboard from a timeboard
#!/usr/bin/env bash
#params
#dd_api_key=
#dd_app_key=
#dash_id=
curl -sX GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${dd_api_key}&application_key=${dd_app_key}" \
| jq '{
board_title: .dash.title,
description: .dash.description,
template_variables: .dash.template_variables,
@daincredibleholg
daincredibleholg / tunnelbroker-net.sh
Created October 11, 2019 12:43 — forked from pklaus/tunnelbroker-net.sh
tunnelbroker.net automatic tunnel IP update and tunnel setup (on Mac OS X)
#!/bin/bash
#### This script is published by Philipp Klaus <philipp.l.klaus@web.de>
#### on <http://blog.philippklaus.de/2011/05/ipv6-6in4-tunnel-via-hurricane-electric-tunnelbroker-net-automatic-ip-update-on-mac-os-x/>
#### It is originally by freese60 and modified by limemonkey.
#### Found on <http://www.tunnelbroker.net/forums/index.php?topic=287.0>
### Uncomment this line to debug the script:
#set -x
@daincredibleholg
daincredibleholg / Makefile
Created December 9, 2018 20:24
Example Makefile for Spring Boot and SASS
all: clean build-frontend build-backend package
clean:
rm -rf out
./gradlew clean
build-frontend:
npm run sass
build-backend:

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@daincredibleholg
daincredibleholg / timezone-utc-offset.txt
Last active November 19, 2017 18:07
Example output for "Display All Time Zones With GMT And UTC"
(UTC+14:00) Pacific/Apia
(UTC+14:00) Pacific/Kiritimati
(UTC+14:00) Pacific/Tongatapu
(UTC+14:00) Etc/GMT-14
(UTC+13:45) NZ-CHAT
(UTC+13:45) Pacific/Chatham
(UTC+13:00) Pacific/Fakaofo
(UTC+13:00) Antarctica/McMurdo
(UTC+13:00) Pacific/Fiji
(UTC+13:00) Pacific/Enderbury
@daincredibleholg
daincredibleholg / quick-web-app-product-example.json
Created December 14, 2015 09:27
Example JSON file to import into your MongoDB
[
{
"productId": "demo-1a",
"name": "Nexus 5X",
"vendor": "Google / LG"
},
{
"productId": "demo-1b",
"name": "Nexus 6X",
"vendor": "Google / Huawei"

Keybase proof

I hereby claim:

  • I am daincredibleholg on github.
  • I am daincredibleholg (https://keybase.io/daincredibleholg) on keybase.
  • I have a public key whose fingerprint is 6C83 1FB3 3071 AFDE D7D3 CCF8 755E 6324 4466 5BD9

To claim this, I am signing this object: