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
sed --debug -n 's/lib\([^.]\+\)\.so\(\.[0-9]\+\)\(\.[0-9]\+\)\(\.[0-9]\+\)/\1/p' |
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
ROOT = $(TUP_CWD) | |
BUILD = $(TUP_VARIANTDIR) | |
VENDOR_LIB_ROOT = $(ROOT)/thirdparty/mh1903 | |
PLATFORM_FLAGS += -march=armv7e-m+fp -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 | |
PLATFORM_FLAGS += -mno-thumb-interwork | |
CFLAGS += -g |
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
#!/bin/bash | |
echo "Checking commit messages..." | |
# Iterate over the pushed commits | |
while read old_rev new_rev refname; do | |
# Get the list of commits being pushed | |
commits=$(git rev-list --reverse $old_rev..$new_rev) | |
# Iterate over the commits | |
for commit in $commits; do |
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
CC=musl-gcc LDFLAGS='--linkmode external --extldflags "-static"' TAGS='bindata sqlite sqlite_unlock_notify' make build |
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
#!/bin/bash -euxo pipefail | |
PUBLIC_IP=$1 | |
OUT_DIR=${PWD}/out | |
ETC_DIR=${OUT_DIR}/etc | |
mkdir -p ${ETC_DIR}/ipsec.d | |
cat >> ${ETC_DIR}/ipsec.conf <<EOF |
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 ( | |
"bufio" | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
) |