Skip to content

Instantly share code, notes, and snippets.

View Zebiano's full-sized avatar
🎩
In love with JS

Sebastião Barros Zebiano

🎩
In love with JS
View GitHub Profile
@Zebiano
Zebiano / 1-orgs-archetype.md
Created November 13, 2022 19:35 — forked from whatupfoo/1-orgs-archetype.md
Orgs and Teams Best Practices

Organization archetypes

The intention of this document is to provide some guidance and suggestions to customers who are wondering how they should structure organizations and teams in their GitHub Enterprise environment. The idea isn't to give hard and fast rules on which approach is better than the other, but to give examples of when one approach might be preferable to another depending on the use case.

1. A single organization with direct organization membership for repository access (not teams)

          ________________
          |     Org      |
          |    ______    |
          |   |      |\  |

| | Repo | \ |

@Zebiano
Zebiano / aliases.sh
Last active January 23, 2024 11:45
Aliases
# --- Custom aliases --- #
# General
alias c='clear' # Clear
alias ts='date +%s' # TimeStamp
# SSH
alias sp='eval `ssh-agent`; ssh-add ~/.ssh/id_rsa' # Save Password
# Git
alias gc='git commit' # Git Commit
@Zebiano
Zebiano / ddclient.md
Last active June 22, 2023 22:45
DDClient systemd service setup with Namecheap

DDClient setup

Warning: I believe the paths to be outdated, as DDClient docs point to /etc/ddclient/ddclient.conf instead of /etc/ddclient.conf. However, this document should still work regardless.

Quick and easy steps to get DDClient running with Namecheap and as a systemd service on Ubuntu Server OS.

@Zebiano
Zebiano / match_temp_transparency.js
Last active August 4, 2021 08:04
`matchTemplate()` with transparency and opencv4nodejs
// Gist made mainly for https://stackoverflow.com/questions/15459090/how-to-find-a-template-in-an-image-using-a-mask-or-transparency-with-opencv-an
// It's also where I've gotten the images from
// Require: Packages
const openCv = require('opencv4nodejs')
// Variables
const image = openCv.imread('stop_leaves.png')
// const image = openCv.imread('stop_moon.png')
// const image = openCv.imread('stop_mountain.png')
@Zebiano
Zebiano / maximize-window-monitors.ahk
Last active April 14, 2023 08:21
Maximize Window through monitors with Auto Hot Key on Windows.
; Credit goes to Jeff Axelrod (https://stackoverflow.com/users/403455/jeff-axelrod) https://stackoverflow.com/a/9830200/470749
+#Up::
WinGetActiveTitle, Title
WinRestore, %Title%
SysGet, X1, 76
SysGet, Y1, 77
SysGet, Width, 78
SysGet, Height, 79
WinMove, %Title%, , X1, Y1, Width, Height
return