Simple fibonacci number calculator.
Usage: fib nth Fibonacci number
In the realm of Go programming, code coverage reporting tools such as codecov and coveralls have gained significant popularity for assessing code coverage. These services operate remotely and necessitate the submission of coverage profiles (in the form of cover.out
files) to their servers. While this is generally unproblematic for open source projects, a word of caution is warranted for closed source projects. The act of sharing your coverage profile can inadvertently disclose critical information about your proprietary source code. The coverage profile files contain an enumeration of all source code files accompanied by their directory structures. This seemingly innocuous information has the potential to be exploited in two ways:
blueprint: | |
name: Zigbee2MQTT - Philips Hue Tap dial switch (8719514440937/8719514440999) actions | |
description: > | |
Define actions your Philips Hue Tap dial switch using Zigbee2MQTT. | |
This blueprint requires a MQTT topic for your button and the actions you want to take for each button press type. | |
domain: automation | |
input: | |
mqtt_topic: | |
name: MQTT Topic for device updates | |
description: MQTT topic for Philips Hue Tap dial switch. e.g. "zigbee2mqtt/Bedroom Bed Tap Dial Switch" |
// ==UserScript== | |
// @name 42BH-days-left | |
// @namespace https://gist.github.com/GlaceCoding/6d189078c3c49fb0e6e69314601fbe4f | |
// @version 0.4 | |
// @description Blackholes days left | |
// @author GlaceCoding | |
// @match https://profile.intra.42.fr/ | |
// @match https://profile.intra.42.fr/users/* | |
// @icon https://www.google.com/s2/favicons?domain=42.fr | |
// @downloadURL https://gist.github.com/GlaceCoding/6d189078c3c49fb0e6e69314601fbe4f/raw/42bh-days-left.user.js |
job "rabbitmq" { | |
datacenters = ["dc1"] | |
type = "service" | |
group "rabbitmq" { | |
count = 2 | |
constraint { | |
distinct_hosts = true | |
} | |
network { | |
mode = "host" |
These are my installation-tricks and notes for running Linux on a 2021 Thinkpad
P14s Gen2 with AMD Ryzen 7 5850U. It should also be suitable for the Thinkpad T14 Gen2 AMD as they are technically the same modell.
Meanwhile there is also a good test on youtube and an entry in the arch-wiki, which also comments some points mentioned here.
A simple service definition for Consul agents; meant to simplify the installation process of Consul.
This is based on the information provided by Hashicorp in the Consul Docs.
wget {raw_url} consul.xml
{ | |
"builders": [ | |
{ | |
"type": "virtualbox-iso", | |
"vboxmanage": [ | |
[ "modifyvm", "{{.Name}}", "--memory", "{{ user `ram` }}" ], | |
[ "modifyvm", "{{.Name}}", "--vram", "36" ], | |
[ "modifyvm", "{{.Name}}", "--cpus", "{{ user `cpus` }}" ] | |
], | |
"guest_os_type": "Ubuntu_64", |
package main | |
import ( | |
"fmt" | |
"net" | |
"sort" | |
) | |
func worker(ports, results chan int) { | |
for p := range ports { |