Skip to content

Instantly share code, notes, and snippets.

View pouyanh's full-sized avatar
🕊️
Woman Life Freedom

Pouyan Heyratpour pouyanh

🕊️
Woman Life Freedom
View GitHub Profile
@maratori
maratori / golang-mocks.md
Last active May 31, 2025 19:08
Comparison of golang mocking libraries

Comparison of golang mocking libraries

Updated 2025-05-31

[gomock][1] [testify][2] + [mockery][3] [mockio][4] [minimock][5] [moq][6]

Library

GitHub stars [![s1]][1] [![s2]][2] + [![s3]][3] [![s4]][4] [![s5]][5] [![s6]][6]
Latest release date [![d1]][r1] [![d2]][r2] + [![d3]][r3] [![d4]][r4] [![d5]][r5] [![d6]][r6]
Maintained
@jslay88
jslay88 / k8s-etcd-backup.yaml
Created March 16, 2020 17:42
k8s cronjob for doing daily backups of etcd from a master.
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: etcd-backup
namespace: kube-system
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
@thesubtlety
thesubtlety / golang-windows-dll.go
Created February 5, 2020 05:18
Calling Windows DLLs from Go
package main
import (
"fmt"
"syscall"
"unicode/utf16"
"unsafe"
)
//https://github.com/golang/go/wiki/WindowsDLLs
@Hakky54
Hakky54 / openssl_commands.md
Last active June 9, 2025 12:54 — forked from p3t3r67x0/openssl_commands.md
OpenSSL Cheat Sheet

OpenSSL Cheat Sheet 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@rmi1974
rmi1974 / libfaketime_usage.md
Last active February 2, 2025 02:12
Using libfaketime to manipulate the system time for applications #faketime #wine #debug #commandlinefu

Using libfaketime to manipulate the system time for applications

See [libfaketime on github][1] for upstream project site general overview.

Build in multilib environment

#!/usr/bin/env bash

set -Eeuo pipefail
@Gnzlt
Gnzlt / gourcevideo.sh
Created March 6, 2019 13:25
Gource video export command
#!/bin/bash
gource \
-s .03 \
-1280x720 \
--auto-skip-seconds .1 \
--multi-sampling \
--stop-at-end \
--key \
--highlight-users \
@ygrenzinger
ygrenzinger / CleanArchitecture.md
Last active July 3, 2025 22:28
Summary of Clean Architecture by Robert C. Martin

Summary of book "Clean Architecture" by Robert C. Martin

Uncle Bob, the well known author of Clean Code, is coming back to us with a new book called Clean Architecture which wants to take a larger view on how to create software.

Even if Clean Code is one of the major book around OOP and code design (mainly by presenting the SOLID principles), I was not totally impressed by the book.

Clean Architecture leaves me with the same feeling, even if it's pushing the development world to do better, has some good stories and present robust principles to build software.

The book is build around 34 chapters organised in chapters.

@jimmywarting
jimmywarting / readme.md
Last active June 29, 2025 03:40
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@tkrajina
tkrajina / unmarshal_interface.go
Last active June 18, 2025 15:21
Unmarshal JSON to specific interface implementation
package main
import (
"encoding/json"
"fmt"
"reflect"
)
type Something interface{}
@elerch
elerch / arch-usb-uefi.md
Last active June 27, 2025 11:47
Installation of Arch Linux on a USB stick with UEFI and legacy BIOS Support

Our goal here is to have one USB stick to rule them all. Objectives:

  • We want a full system - not a live CD
  • We want to boot this system on a Macbook Pro (requires UEFI)
  • We want to boot this system on a Acer C720 Chromebook (requires Legacy BIOS support)
  • We want the system "functional"

The last bullet is subject to interpretation, but I'm defining functional as:

  • X Windows works (with LXDE)