This file contains hidden or 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
| module pubsub-event | |
| go 1.19 | |
| require ( | |
| github.com/libp2p/go-libp2p v0.23.2 | |
| github.com/libp2p/go-libp2p-pubsub v0.8.1 | |
| ) | |
| require ( |
This file contains hidden or 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
| #!/bin/bash | |
| # Miminum delay between iterations, in seconds | |
| delay=10 | |
| # Pairs of [bluetooth MAC, test expression] | |
| targets=( | |
| "98:B6:E9:47:F0:4F" "test ! -e /dev/input/js0" | |
| "98:B6:E9:72:6C:31" "test -z \"\$(bluetoothctl info 98:B6:E9:72:6C:31 | grep 'Connected: yes')\"" | |
| ) |
This file contains hidden or 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
| #!/bin/bash | |
| PROXY="" | |
| RELEASE_API="https://api.github.com/repos/librespeed/speedtest-go/releases/latest" | |
| BIN_DST_DIR=/usr/local/bin | |
| RESOURCE_DST_DIR=/usr/local/etc/speedtest-backend | |
| function getReleaseInfo() { | |
| response=$(curl ${RELEASE_API}) | |
| if [ $? == 0 ]; then | |
| echo $response |
This file contains hidden or 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 awss3 | |
| import ( | |
| "context" | |
| "crypto/tls" | |
| "fmt" | |
| "io" | |
| "net/http" | |
| "os" | |
| "path/filepath" |
This file contains hidden or 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
| DROP VIEW IF EXISTS uuid7; | |
| CREATE VIEW uuid7 AS | |
| WITH unixtime AS ( | |
| SELECT CAST((STRFTIME('%s') * 1000) + ((STRFTIME('%f') * 1000) % 1000) AS INTEGER) AS time | |
| -- SELECT CAST((UNIXEPOCH('subsec') * 1000) AS INTEGER) AS time -- for SQLite v3.38.0 (2022) | |
| ) | |
| SELECT PRINTF('%08x-%04x-%04x-%04x-%012x', | |
| (select time from unixtime) >> 16, | |
| (select time from unixtime) & 0xffff, | |
| ABS(RANDOM()) % 0x0fff + 0x7000, |
This file contains hidden or 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
| FROM --platform=linux/amd64 ubuntu | |
| RUN apt-get update | |
| RUN apt-get install make binutils build-essential -y | |
| RUN apt-get install nasm gdb strace -y | |
| WORKDIR /app |
This file contains hidden or 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
| #!/bin/bash | |
| # Calculates hash uniqueness. | |
| # | |
| # Usage: | |
| # | |
| # hash-uniqueness.sh PROGRAM LENGTH WINDOW | |
| # | |
| # hash-uniqueness.sh md5sum | |
| # |
This repository contains a collection of userscripts – small pieces of JavaScript that extend or modify the behavior of websites.
They can add missing features, improve usability, or automate repetitive tasks right in your browser.
Userscripts are custom scripts that run in your browser when you visit specific websites.