Skip to content

Instantly share code, notes, and snippets.

View TheDevMinerTV's full-sized avatar

DevMiner TheDevMinerTV

View GitHub Profile
diff --git a/dist/index.cjs b/dist/index.cjs
index c51f4a286e33b44e7925b841babe7810307d8fe0..5e54de8149fb266568307fdf4a472721eb057bc0 100644
--- a/dist/index.cjs
+++ b/dist/index.cjs
@@ -228,11 +228,11 @@ const transformSelectorPostcssPlugin = function(options) {
root.walkRules((rule) => {
parser__default((selectors) => {
selectors.walkClasses((s) => {
- if (s.value && replaceMap && replaceMap.has(s.value)) {
+ if (s.value && replaceMap && replaceMap[s.value]) {
#!/bin/bash
IMAGE="gcr.io/google-containers/ubuntu-slim:0.14"
COMMAND="/bin/bash"
SUFFIX=$(date +%s | shasum | base64 | fold -w 10 | head -1 | tr '[:upper:]' '[:lower:]')
usage_exit() {
echo "Usage: $0 [-c command] [-i image] PVC ..." 1>&2
exit 1
}
#!/bin/bash
IMAGE="gcr.io/google-containers/ubuntu-slim:0.14"
COMMAND="/bin/bash"
SUFFIX=$(date +%s | shasum | base64 | fold -w 10 | head -1 | tr '[:upper:]' '[:lower:]')
usage_exit() {
echo "Usage: $0 [-c command] [-i image] PVC ..." 1>&2
exit 1
}
const assert = require("assert").strict;
const pQS = require("picoquery");
const QUERY_STRING = "foo[0][bar]=baz&foo[0][fizz]=buzz&foo[]=done!";
for (const nestingSyntax of ["js", "index", "dot"]) {
for (const arrayRepeatSyntax of ["bracket", "repeat"]) {
console.log(
`\nnestingSyntax: ${nestingSyntax}, arrayRepeatSyntax: ${arrayRepeatSyntax}`
);
@TheDevMinerTV
TheDevMinerTV / unifi-8.0.28-custom-acme-server.patch
Created February 15, 2024 15:22
unifi-8.0.28-custom-acme-server.patch
220a221,222
> --reinstall Re-run the install script instead of running the update script when a instance is already running.
> --force-acme Run UniFi Easy Encrypt under all circumstances.
290a293,296
> --reinstall)
> script_option_reinstall="true";;
> --force-acme)
> script_option_force_acme="true";;
363a370,372
> --custom-acme-server)
@TheDevMinerTV
TheDevMinerTV / env.sh
Last active January 25, 2024 13:04
cuda-sucks
export CUDA_HOME=$(dirname ${BASH_SOURCE[0]})
export PATH=${CUDA_HOME}/bin:${PATH}
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
export CPATH=/usr/local/cuda-12.2/targets/x86_64-linux/include:$CPATH
export CUDA_TOOLKIT_ROOT=${CUDA_HOME}
export CUDAToolkit_ROOT=${CUDA_HOME}
@TheDevMinerTV
TheDevMinerTV / main.go
Last active July 18, 2023 19:34
Multi-encoding response in Golang with fiber
package main
import (
"github.com/gofiber/fiber/v2"
)
type SomethingDto struct {
ID int `json:"id" xml:"id" protobuf:"int,1,opt,name=id"`
}
#!/bin/bash
#
# MOVED TO https://github.com/TheDevMinerTV/sh.devminer.xyz/blob/master/scripts/copy_ssh_keys.sh
#
# You can use this script to copy all public keys from your local machine to multiple remote machines.
#
# Usage: ./copy_ssh_keys.sh <non-root username> <own public key> <folder with pub keys> <host1> [host2]...
#
@TheDevMinerTV
TheDevMinerTV / Skins.json
Last active November 2, 2024 13:53
Rust skins automatically updated!
{
"Command": "skin",
"Skins": [
{
"Item Shortname": "fun.guitar",
"Skins": [
0,
809801196,
826914904,
809938266,