🕵️♂️
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" |
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
// https://github.com/samber/do/issues/30#issuecomment-1705616069 | |
// https://play.golang.org/p/yHLzoV9To_5 | |
package main | |
import ( | |
"errors" | |
"fmt" | |
"sync" | |
) |
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 ( | |
"fmt" | |
) | |
type Empty interface { | |
IsEmpty() bool, error | |
} | |
type Config interface { |
NewerOlder