Skip to content

Instantly share code, notes, and snippets.

@syncip
syncip / ntfy.yaml
Created January 5, 2024 15:52
ntfy crowdsec notification example
# /etc/crowdsec/notifications/ntfy.yaml
type: http # Don't change
name: ntfy # Must match the registered plugin in the profile
# One of "trace", "debug", "info", "warn", "error", "off"
log_level: trace
# group_wait: # Time to wait collecting alerts before relaying a message to this plugin, eg "30s"
# group_threshold: # Amount of alerts that triggers a message before <group_wait> has expired, eg "10"
@pkorpine
pkorpine / iperf3_loopback.sh
Created February 17, 2017 10:59
Create external loopback between two network interfaces
#!/bin/sh
# Scripted from http://serverfault.com/questions/127636/force-local-ip-traffic-to-an-external-interface
DEV_0="ens6f0"
DEV_1="ens6f1"
MAC_0=`ifconfig ${DEV_0}|awk 'NR==1 {print $5}'`
MAC_1=`ifconfig ${DEV_1}|awk 'NR==1 {print $5}'`
IP_0="192.168.100.1"
IP_1="192.168.101.1"
FAKE_0="192.168.102.1"
@feveromo
feveromo / Claude MCP Windows.md
Last active February 28, 2025 01:59
MCP-Windows

Setting Up MCP Servers on Windows

A step-by-step guide to setting up Model Context Protocol (MCP) servers for Claude Desktop on Windows.

Prerequisites

  1. Install Node.js (v18.x or later)
    • Download from: https://nodejs.org/
    • Verify installation by opening Command Prompt (CMD) and running:
      node --version
      npm --version
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active February 28, 2025 01:58
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@d3noob
d3noob / .block
Created June 19, 2021 01:57
Sankey Diagram with v7
license: mit
@icqparty
icqparty / DNG SDK build on linux
Created June 5, 2014 22:31
This tutorial describes how to build the Adobe DNG SDK on Linux.
DNG 1.4 Parser
This tutorial describes how to build the Adobe DNG SDK on Linux.
It generates the dng_validate C++ program that can parse any DNG images, a bit like a "Hello world" for DNG image processing.
Adobe DNG SDK 1.4
XMP SDK
DNG SDK
dcraw issue
Compatibility issue
@xlplugins
xlplugins / gist:47193f40d26ddffefe5eceef1d0e71ff
Created January 31, 2024 14:33
Enable Coupon for Funnelkit cart
class FKWC_Enable_Coupon {
public function __construct() {
add_filter( 'woocommerce_coupons_enabled', [ $this, 'enable_coupon' ], 99 );
}
public function enable_coupon( $status ) {
if ( ! class_exists( '\FKCart\Plugin' ) ) {