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
server { | |
listen 80; | |
listen [::]:80; | |
server_name [domain-name] www.[domain-name]; | |
server_tokens off; | |
location /.well-known/acme-challenge/ { | |
root /var/www/certbot; | |
} |
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
{ | |
"state_directory": "./state", | |
"wif": "YOUR_WIF_CREDENTIALS", | |
"bitcoin_node_url": "http://devnet:devnet@localhost:8001/api", | |
"stacks_node_url": "http://localhost:3999", | |
"stacks_transaction_fee": 2000, | |
"bitcoin_transaction_fee": 2000, | |
"contract": "../asset-contract/contracts/asset.clar", | |
"contract_name": "sbtc-alpha-romeo-testing" | |
} |
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/sh | |
apt-get install android-tools-fastboot unzip | |
fastboot flash bootloader $1 | |
fastboot reboot-bootloader | |
sleep 5 | |
unzip $2 | |
fastboot flash boot boot.img | |
fastboot flash recovery recovery.img | |
fastboot flash system system.img |
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 "Executing /etc/qemu-ifup" | |
echo "Creating bridge" | |
sysctl -w net.link.ether.inet.proxyall=1 | |
sysctl -w net.inet.ip.forwarding=1 | |
sysctl -w net.inet.ip.fw.enable=1 | |
ifconfig bridge0 create | |
echo "Bringing up $1 for bridged mode" | |
ifconfig $1 0.0.0.0 up | |
echo "Add $1 to bridge" |
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/sh | |
chmod 600 /root/.ssh/pkey.pem | |
echo "${SERVER_HOSTNAME},$(getent hosts ${SERVER_HOSTNAME} | awk '{ print $1 }') ${SERVER_ALGO} ${SERVER_HOST_KEY}" > /tmp/known_hosts | |
autossh -M 0 -o "ServerAliveInterval 10" -o "ServerAliveCountMax 2" -o "UserKnownHostsFile /tmp/known_hosts" $@ |
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
FROM alpine:3.11 | |
RUN apk add --no-cache autossh openssh-client | |
COPY entrypoint.sh /bin/entrypoint | |
RUN chmod a+x /bin/entrypoint | |
ENTRYPOINT ["entrypoint"] |
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
FROM alpine:3.11 | |
RUN apk add --no-cache autossh openssh-client | |
COPY entrypoint.sh /bin/entrypoint | |
RUN chmod a+x /bin/entrypoint | |
ENTRYPOINT ["entrypoint"] |
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
version: 0.1.0 | |
name: sshtun | |
description: Reverse SSH Tunnelling Docker App | |
--- | |
version: '3.2' | |
services: | |
sshtun: |
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
version: '3.2' | |
services: | |
rtunnel: | |
image: foundries/rtunnel-sshd:latest | |
restart: always | |
tty: true | |
network_mode: "host" | |
command: "<foundries.io api token>" | |
volumes: |
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 | |
set -eu | |
echo "steps:" | |
for TEST in $TESTS; do | |
cat <<EOF | |
- trigger: "jtest" | |
label: "${TARGET}-${TEST}-${FW_VER}" |
NewerOlder