🕵️♂️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Chi-like syntactic sugar layer on top of stdlib http.ServeMux. | |
package main | |
import ( | |
"net/http" | |
"slices" | |
) | |
type ( | |
middleware func(http.Handler) http.Handler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Author: intrntbrn | |
* | |
* Compile with: | |
* gcc resize-increment.c -Wall -o resize-increment `pkg-config --cflags --libs x11` | |
* | |
* Usage: | |
* resize-increment windowid width_inc height_inc | |
* e.g.: resize-increment 1234567 6 12 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
SYSTEM_NODE=$(which node) | |
if [ -z "$SYSTEM_NODE" ]; then | |
echo "Error: Node.js not found on the system. Please install Node.js first." | |
exit 1 | |
else | |
echo "System Node.js binary found: $SYSTEM_NODE" | |
fi | |
ZED_NODE_DIRS=$(find ~/.local/share/zed/node -name 'node-v*-linux-x64' -type d) | |
if [ -z "$ZED_NODE_DIRS" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document:sgvowvarjxkte674jdhtvky8#owner@wnfm0cvwfj6fv4kru4pt3dzt | |
group:engineering#member@group:security#... | |
group:engineering#manager@group:leadership#member |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(definition)platform { | |
(relation)administrator "user" | |
(permission)super_admin "administrator" | |
} | |
(definition)organization { | |
(relation)platform "platform" | |
(permission)platform "super_admin" | |
} | |
(definition)resource { | |
(relation)owner "user" "organization" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go build -a -tags netgo -ldflags "-w -s" -o "/bin/" ./cmd/... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
dietpi-software install 188 # install latest go version (and git) | |
apt update | |
apt install -y wget | |
wget https://github.com/PowerShell/PowerShell/releases/download/v7.4.1/powershell_7.4.1-1.deb_amd64.deb | |
dpkg -i powershell_7.4.1-1.deb_amd64.deb | |
apt install -f | |
rm powershell_7.4.1-1.deb_amd64.deb | |
# curl -fsSL https://deb.nodesource.com/setup_21.x | bash - &&\ | |
# apt-get install -y nodejs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <windows.h> | |
#pragma comment( lib, "user32.lib" ) | |
#pragma comment( lib, "gdi32.lib" ) | |
#define SCRW 640 | |
#define SCRH 480 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"net/http" | |
"net/http/httputil" | |
"strings" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"net/http" | |
"net/http/httputil" | |
"strings" | |
"time" |