#!/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 |
#!/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')\"" | |
) |
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 ( |
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.
package main | |
import ( | |
"bufio" | |
"context" | |
"errors" | |
"fmt" | |
"io" | |
"log" | |
"os" |
package main | |
import ( | |
"context" | |
"errors" | |
"log" | |
"os" | |
"os/signal" | |
"sync" | |
"syscall" |
package main | |
import ( | |
"context" | |
"log" | |
"time" | |
"github.com/ipfs/go-ipfs/core" | |
"github.com/ipfs/go-ipfs/core/coreapi" | |
"github.com/ipfs/go-ipfs/core/node" |
#!/bin/bash | |
# WORK IN PROGRESS - NOT FULLY TESTED | |
# To install aliases | |
# bash bash_aliases.sh filename1 filename2 filenamex | |
# bash bash_aliases.sh git npm docker | |
# Mac Os setup | |
# https://ss64.com/osx/syntax-bashrc.html | |
if [[ `uname` == Darwin* ]] && ! grep "bash-aliases" ~/.bash_profile ;then | |
echo '[ -f ~/.bash-aliases ] && . ~/.bash-aliases' >> ~/.bash_profile |
BINs (Bank Identification Number) are the first 6 digits of a credit card. these are being distributed around the world all the time, this gist tries to list all possible ranges for the most common brazilian credit cards. Please help me keep it updated 😄
note: All length
fields refer to the max length