Skip to content

Instantly share code, notes, and snippets.

View EmbeddedAndroid's full-sized avatar

0x1 EmbeddedAndroid

View GitHub Profile
@EmbeddedAndroid
EmbeddedAndroid / qcat.py
Last active May 7, 2024 03:09 — forked from ronekko/opencv_imshow_fullscreen.py
Python example to show an image in full screen by opencv
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 22 16:44:27 2017
@author: sakurai
"""
import numpy as np
import cv2
server {
listen 80;
listen [::]:80;
server_name [domain-name] www.[domain-name];
server_tokens off;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
{
"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"
}
@EmbeddedAndroid
EmbeddedAndroid / entrypoint.sh
Created March 27, 2020 18:30
SSH Reverse Tunnel Dockerfile Entrypoint
#!/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" $@
@EmbeddedAndroid
EmbeddedAndroid / Dockerfile
Created March 27, 2020 18:28
SSH Reverse Tunnel Dockerfile
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"]
@EmbeddedAndroid
EmbeddedAndroid / Dockerfile
Created March 27, 2020 18:28
SSH Reverse Tunnel Dockerfile
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"]
@EmbeddedAndroid
EmbeddedAndroid / sshtun.dockerapp
Last active March 27, 2020 18:23
SSH Reverse Tunnel Docker App
version: 0.1.0
name: sshtun
description: Reverse SSH Tunnelling Docker App
---
version: '3.2'
services:
sshtun:
@EmbeddedAndroid
EmbeddedAndroid / docker-compose.yml
Created March 27, 2020 18:14
FoundriesFactory Reverse Tunnel Docker-Compose
version: '3.2'
services:
rtunnel:
image: foundries/rtunnel-sshd:latest
restart: always
tty: true
network_mode: "host"
command: "<foundries.io api token>"
volumes:
@EmbeddedAndroid
EmbeddedAndroid / jtest-pipeline-example.sh
Last active July 2, 2019 19:03
jtest pipeline example
#!/bin/bash
set -eu
echo "steps:"
for TEST in $TESTS; do
cat <<EOF
- trigger: "jtest"
label: "${TARGET}-${TEST}-${FW_VER}"
#!/usr/bin/env python3
# Copyright (c) 2018 Foundries.io
#
# SPDX-License-Identifier: Apache-2.0
import argparse
from collections import namedtuple
import struct