Skip to content

Instantly share code, notes, and snippets.

View jriverac's full-sized avatar
🏠
Working from home

José Rivera jriverac

🏠
Working from home
View GitHub Profile
graph TD
D(AMPIL)-->A
E(PCIS)-->A
subgraph Tillamook
A(SignUp Page)-->B[Tag Origin]
C(SignUp Anywhere)-->B
end
subgraph SignUp Processor
@jriverac
jriverac / ssh-agent.sh
Created October 3, 2022 18:13
A few times in the past I have faced Sourcetree telling me that it can’t authenticate to Github. This is a very annoying and inconvenient issue raised by the Authentication Client not providing credentials. I still can perform most of my git tasks by memory but it annoys me since I rather have an UI for Git work. This line of code fixes the issue:
ssh-add <key_file>
@jriverac
jriverac / Portainer Templates.json
Created October 22, 2022 18:23
Just a bunch of Portainer templates
{
"version": "2",
"templates": [
{
"type": 1,
"title": "Registry",
"description": "Docker image registry",
"categories": ["docker"],
"platform": "linux",
"logo": "https://portainer-io-assets.sfo2.digitaloceanspaces.com/logos/registry.png",
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
format = """
$os\
[](fg:#000000 bg:#333333)\
$shell\
[](fg:#000000 bg:#ffffff)\
$username\
[](bg:#aaaaFF fg:#ffffff)\
$directory\
[](fg:#aaaaff bg:#ffffaa)\
$git_branch\