Skip to content

Instantly share code, notes, and snippets.

View ictus4u's full-sized avatar
🚀

Walter Gomez ictus4u

🚀
View GitHub Profile
@ictus4u
ictus4u / git-branches-by-commit-date.sh
Created January 8, 2024 11:27 — forked from l15n/git-branches-by-commit-date.sh
List remote Git branches and the last commit's author and author date for each branch. Sort by most recent commit's author date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r

Keybase proof

I hereby claim:

  • I am ictus4u on github.
  • I am ictus4u (https://keybase.io/ictus4u) on keybase.
  • I have a public key ASDIXhEJyRd_tkca1N30C9ij-zSYsNOEdBTohBY7Axstsgo

To claim this, I am signing this object:

@ictus4u
ictus4u / split-apt-trusted-keyring.sh
Created March 14, 2023 05:02
Get separate files with the keys contained in /etc/apt/trusted.gpg keyring
gpg -k --no-default-keyring --keyring /etc/apt/trusted.gpg | \
grep '^ ' | \
tr -d ' ' | \
grep -Eo '.{8}$' | \
while read fingerprint; do
((++i));
gpg \
--export \
--output /tmp/${i}-archive-keyring.gpg \
--yes \
@ictus4u
ictus4u / answerfile
Created October 12, 2022 23:17 — forked from oofnikj/answerfile
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@ictus4u
ictus4u / subnets.py
Created September 26, 2022 12:56
wireguard - Exclude single ip
#!/usr/bin/env python
from ipaddress import ip_network
from sys import argv
start = '0.0.0.0/0'
exclude = argv[1:]
result = [ip_network(start)]
for x in exclude:
n = ip_network(x)
@ictus4u
ictus4u / awesome-selfhosted-sorted-by-stars.md
Created September 20, 2022 04:08 — forked from kvnxiao/awesome-selfhosted-sorted-by-stars.md
awesome-selfhosted-sorted-by-stars.md

Awesome-Selfhosted

Awesome

Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers.

This is a list of Free Software network services and web applications which can be hosted locally. Non-Free software is listed on the Non-Free page.

See Contributing.

@ictus4u
ictus4u / README.md
Created September 20, 2022 03:48 — forked from dims/README.md
Kubernetes Resources
@ictus4u
ictus4u / Jenkinsfile
Created September 20, 2022 03:45 — forked from jonico/Jenkinsfile
Example for a full blown Jenkins pipeline script with CodeQL analysis steps, multiple stages, Kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, …
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
spec:
containers:
- name: mvn
image: maven:3.3.9-jdk-8
@ictus4u
ictus4u / gist:1f00eb4bb6808e6682e2bbf04f2b106c
Created September 19, 2022 17:16 — forked from rkuzsma/gist:b9a0e342c56479f5e58d654b1341f01e
Example Kubernetes yaml to pull a private DockerHub image
Step by step how to pull a private DockerHub hosted image in a Kubernetes YML.
export DOCKER_REGISTRY_SERVER=https://index.docker.io/v1/
export DOCKER_USER=Type your dockerhub username, same as when you `docker login`
export DOCKER_EMAIL=Type your dockerhub email, same as when you `docker login`
export DOCKER_PASSWORD=Type your dockerhub pw, same as when you `docker login`
kubectl create secret docker-registry myregistrykey \
--docker-server=$DOCKER_REGISTRY_SERVER \
--docker-username=$DOCKER_USER \