- Language: C/C++
- Platform: Linux
- repo: github.com/wmerfalen/knockd
knockd
is a simple port knocking daemon that utilizes libpcap to capture packets before it reaches the firewall (i.e.: iptables
)
knockd
is a simple port knocking daemon that utilizes libpcap to capture packets before it reaches the firewall (i.e.: iptables
)
/* | |
xorlock -- a top-down 2D shooter inspired by Nuclear Throne and Diablo II+III | |
version 0.0.1-beta, December 2nd, 2023 | |
Copyright (C) 2022-2023 William Merfalen | |
This software is provided 'as-is', without any express or implied | |
warranty. In no event will the authors be held liable for any damages | |
arising from the use of this software. |
dd if=/dev/urandom bs=32 count=5 skip=32 2>/dev/null | hexdump | cut -d' ' -f2- | sed -E 's|\s([a-f0-9]{2})([a-f0-9]{2})|\\x\1\\x\2|gi' | sed -E 's|^([a-f0-9]{2})([a-f0-9]{2})|\\x\1\\x\2|' | head -n 2 | tr -d '[:space:]' |
dd if=/dev/urandom count=32 bs=8 2>/dev/null | base64 | tr -d '[:punct:]' | head -c 32 | tr -d '[:space:]' |
let element = document.querySelector("selector") | |
element.classList.add("class") |
// Source: https://www.freecodecamp.org/news/javascript-debounce-example/ | |
function debounce(func, timeout = 300){ | |
let timer; | |
return (...args) => { | |
clearTimeout(timer); | |
timer = setTimeout(() => { func.apply(this, args); }, timeout); | |
}; | |
} | |
function saveInput(){ | |
console.log('Saving data'); |
/** | |
I copied this from: https://github.com/mattcg/network-byte-order/blob/master/lib/index.js | |
Go give that repo a star | |
*/ | |
/* Copyright 2010 Membase, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at |
const tokenize = (__in_url=null) => { | |
let url = window.location.href; | |
if(__in_url !== null){ | |
url = __in_url; | |
} | |
return (new URLSearchParams((new URL(url)).search)); | |
}; | |
/** | |
* Example: |
/usr/bin/astyle -A2 -t -xn -xc -xl -xk -xV -C -xG -S -K -N -M80 -U -W1 -j --suffix=none $@ |