Skip to content

Instantly share code, notes, and snippets.

View heysamtexas's full-sized avatar

Sam Texas heysamtexas

View GitHub Profile
<!DOCTYPE html>
<html>
<body>
<table style="font-family: Arial, sans-serif; width: 320px; border-collapse: collapse;">
<tr>
<td colspan="3" style="font-size: 18px; color: #666; padding: 0 0 10px 0; text-align: center;">
Leave a tip?
</td>
</tr>
<tr>
@heysamtexas
heysamtexas / docker-compose.yml
Created March 25, 2023 15:16
Another tinyproxy docker-compose
version: '2'
services:
tinyproxy:
image: registry.gitlab.com/kalaksi-containers/tinyproxy
# You can also use GitLab as an alternative to Docker Hub:
# image: registry.gitlab.com/kalaksi-containers/tinyproxy
restart: unless-stopped
cap_drop:
- ALL
ports:
@heysamtexas
heysamtexas / docker-compose.yml
Created March 25, 2023 15:13
A simple socks5 proxy in docker-compose format
version: '3'
services:
socks5:
image: serjs/go-socks5-proxy
container_name: socks5
restart: always
ports:
- 1080:1080
TAG:=$(shell date "+%Y%m%d%H%M")
HOST:=yourhost.com
IMAGE_NAME:=screenshots
###############################################################################
# HELP / DEFAULT COMMAND
###############################################################################
.PHONY: help
help:
@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@heysamtexas
heysamtexas / docker-compose.yml
Created January 4, 2022 10:39
Production-ready Tezos full-archive node docker-compose
version: "2"
services:
node:
image: tezos/tezos:v11.0
hostname: node
command: tezos-node --rpc-addr 0.0.0.0 --net-addr :9732 --network mainnet --history-mode archive
ports:
- "9732:9732"
@heysamtexas
heysamtexas / data_uri.py
Created December 29, 2020 16:53
Django template tag to encode an image to a base64 data-uri
from urllib.parse import urlparse
from django import template
from django.template.defaultfilters import stringfilter
from base64 import b64encode
import requests
from django.core.cache import cache
register = template.Library()
@heysamtexas
heysamtexas / gist:6920c9ad18ed605f4286e18d97902d56
Created May 27, 2020 09:14
Applescript to tell bluejeans to mute/unmute
tell application "BlueJeans" to activate
tell application "System Events" to keystroke "m"
@heysamtexas
heysamtexas / docker-compose.yml
Created January 29, 2020 01:07
Pristine config for Traefik 2.0, Docker, and LetsEncrypt with sample container. Includes a HTTP to HTTPS redirect
version: '3'
services:
traefik:
container_name: traefik
image: traefik:v2.0
command:
- "--api.insecure=true"
- "--providers.docker=true"
@heysamtexas
heysamtexas / docker-compose.yml
Created September 15, 2019 08:47
Awesome Traefik config for docker-compose and letsencrypt
version: '3'
services:
traefik:
image: traefik:1.7.9
restart: always
ports:
- 80:80
- 443:443
- 8080:8080
@heysamtexas
heysamtexas / Dockerfile
Created April 2, 2019 22:32
Sentry Jira plugin patched for sentry onpremise v9
FROM sentry:9.0-onbuild
COPY plugin.py /usr/local/lib/python2.7/site-packages/sentry_plugins/jira/plugin.py