Skip to content

Instantly share code, notes, and snippets.

@Softwave
Softwave / README.md
Last active February 22, 2025 20:13
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
@Dlfaith
Dlfaith / gist:0d43be3dfb296bb6260af75ef082faa8
Created December 6, 2022 02:51
Free Windows Server 2022 Product Key
Free Windows Server 2022 Standard Product Key
HP9DJ-NK2X6-4QPCH-8HY8H-6X2XY
RRNMT-FP29D-CHKCH-GWQP2-DDDVB
44QN4-X3R72-9X3VK-3DWD6-HFWDM
Free Windows Server 2022 Datacenter Product Key
WX4NM-KYWYW-QJJR4-XV3QB-6VM33
Download windows Sever 2022 Evaluation edition:
Windows Server 2022 Evaluation English
@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 February 5, 2025 21:55
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.

@linderd
linderd / README.md
Last active July 11, 2024 01:38 — 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:

@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 {
@janeczku
janeczku / rancher-argocd.md
Created June 10, 2020 14:10
How to register Rancher managed Kubernetes clusters in Argo CD

How to register Rancher managed Kubernetes clusters in Argo CD

Registering Rancher managed clusters in Argo CD doesn't work out of the box unless the Authorized Cluster Endpoint is used. Many users will prefer an integration of Argo CD via the central Rancher authentication proxy (which shares the network endpoint of the Rancher API/GUI). So let's find out why registering clusters via Rancher auth proxy fails and how to make it work.

Hint: If you are just looking for the solution scroll to the bottom of this page.

Why do i get an error when running argocd cluster add?

Service Account tokens and the Rancher authentication proxy

@BlueMountainsIO
BlueMountainsIO / http_example.lua
Last active January 26, 2020 00:28
[Onset Server] HTTP request examples.
function test_get()
local r = http_create()
http_set_resolver_protocol(r, "any")
http_set_protocol(r, "https")
http_set_host(r, "postman-echo.com")
http_set_port(r, 443)
http_set_verifymode(r, "verify_peer")
http_set_target(r, "/get?foo=bar&onset=nice")
http_set_verb(r, "get")