Skip to content

Instantly share code, notes, and snippets.

@Softwave
Softwave / README.md
Last active July 6, 2025 12:34
Fibonacci Program

Fib

Simple fibonacci number calculator.

Usage: fib nth Fibonacci number

Risks of Information Leakage through Remote Code Coverage Services

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:

  • Reverse Engineering: Adversaries could leverage the available directory structure and file list to reverse engineer your project. This could readily e
@freakshock88
freakshock88 / philips_hue_tap_dial_switch_zigbee2mqtt_actions_blueprint.yaml
Last active June 24, 2025 19:21
philips_hue_tap_dial_switch_zigbee2mqtt_actions_blueprint
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"
@GlaceCoding
GlaceCoding / 42bh-days-left.user.js
Last active May 11, 2022 20:18
View days left on intra
// ==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
@samdoran
samdoran / aerohive.md
Last active June 18, 2025 14:08
Configuring Aerohive access points using the CLI

Aerohive

Initial setup

  1. Reset to factory defaults

     reset config bootstrap
     reset config
    

    The username is admin and the password is aerohive or Aerohive1.

@DejfCold
DejfCold / nomad.hcl
Last active July 7, 2025 15:35
Nomad + Vault + Consul + Rabbitmq + FreeIPA
job "rabbitmq" {
datacenters = ["dc1"]
type = "service"
group "rabbitmq" {
count = 2
constraint {
distinct_hosts = true
}
network {
mode = "host"
@linderd
linderd / README.md
Last active April 24, 2025 11:58 — forked from timlinux/README.md
Linux on Thinkpad P14s Gen2 AMD / T14 Gen2 AMD

Linux (Fedora 35) on a Thinkpad P14s [T14] Gen2 AMD

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.

Detailed specs

Shipped:

@mbillow
mbillow / consul-firewalld.md
Last active July 7, 2025 23:39
Consul FirewallD Service Definition

Consul FirewallD Service Definition

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.

Installation

  1. Download the XML file:
  • Either wget {raw_url} consul.xml
@njhowell
njhowell / ubuntu-2004.json
Created June 24, 2020 12:39
Packer files
{
"builders": [
{
"type": "virtualbox-iso",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "{{ user `ram` }}" ],
[ "modifyvm", "{{.Name}}", "--vram", "36" ],
[ "modifyvm", "{{.Name}}", "--cpus", "{{ user `cpus` }}" ]
],
"guest_os_type": "Ubuntu_64",
@goujonbe
goujonbe / main.go
Last active June 20, 2020 18:19
A TCP port scanner that uses goroutines and Channels
package main
import (
"fmt"
"net"
"sort"
)
func worker(ports, results chan int) {
for p := range ports {