Skip to content

Instantly share code, notes, and snippets.

View jparrill's full-sized avatar
🏡
Working from Home!

Juan Manuel Parrilla Madrid jparrill

🏡
Working from Home!
View GitHub Profile
apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
metadata:
labels:
machineconfiguration.openshift.io/role: worker
name: network-manager-extra-conf-worker
spec:
config:
ignition:
version: 3.1.0
@jparrill
jparrill / ai_image_list
Last active April 30, 2021 09:23
Container Image Sync between a public and internal registry
quay.io/ocpmetal/s3server:latest
quay.io/ocpmetal/assisted-service:latest
quay.io/ocpmetal/assisted-installer:latest
quay.io/ocpmetal/assisted-installer-agent:latest
quay.io/ocpmetal/ocp-metal-ui:latest
quay.io/ocpmetal/bm-inventory:latest
quay.io/ocpmetal/assisted-installer-controller:latest
quay.io/ocpmetal/assisted-iso-create:latest
quay.io/ocpmetal/ocp-metal-ui-tests:latest
quay.io/ocpmetal/postgresql-12-centos7:latest
@jparrill
jparrill / go.mod
Created November 4, 2020 12:10
Podman and libpod bindings
module example.com
go 1.14
require (
github.com/containers/libpod v1.9.3 // indirect
github.com/containers/podman/v2 v2.1.1 // indirect
)
@jparrill
jparrill / gddns-update.sh
Created August 7, 2020 09:13
google-ddns-domain-update Script
#!/bin/bash
USERNAME=""
PASSWORD=""
HOSTNAME="yoursubdomain.yourdomain.here"
# Resolve current public IP
IP=$(curl -s "https://domains.google.com/checkip")
# Update Google DNS Record
URL="https://${USERNAME}:${PASSWORD}@domains.google.com/nic/update?hostname=${HOSTNAME}&myip=${IP}"
@jparrill
jparrill / manifest-2020-05-04-17-43-49.json
Last active May 5, 2020 13:19
Python3 Script to sync Images against private registry
[
{
"name": "application-ui",
"tag": "3.5.0-72bc57a834d7c203f3520a83f76475fe62b6c2a6",
"sha256": "72bc57a834d7c203f3520a83f76475fe62b6c2a6",
"repository": "open-cluster-management/application-ui",
"remote": "quay.io/open-cluster-management"
},
{
"name": "cert-manager-acmesolver",
@jparrill
jparrill / dnsmasq.conf
Last active March 19, 2020 13:49
Dnsmasq Configuration
# HUB VLAN 152 2620:52:0:1302::/64
# SPOKE1 VLAN 153 2620:52:0:1303::/64
# SPOKE2 VLAN 154 2620:52:0:1304::/64
strict-order
bind-dynamic
bogus-priv
# DHCP Range VLAN 152 - HUB
dhcp-range=baremetal.152,2620:52:0:1302::11,2620:52:0:1302::20,64
dhcp-option=baremetal.152,option6:dns-server,[2620:52:0:1302::1]
# DHCP Range VLAN 153 - SPOKE1
@jparrill
jparrill / cirros-pvc.yaml
Last active September 26, 2019 11:38
Kubevirt Basic Manifests
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: "pvc-cirros"
labels:
app: containerized-data-importer
annotations:
cdi.kubevirt.io/storage.import.endpoint: "https://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img"
spec:
accessModes:
@jparrill
jparrill / git_cheasheet.md
Created July 4, 2019 15:44
Git Cheatsheet

Git tips/tricks

Git reset from upstream branch

git remote add upstream /url/to/original/repo
git fetch upstream
git checkout master
git reset --hard upstream/master  
git push origin master --force 
@jparrill
jparrill / Prow_hands_on.md
Last active February 5, 2025 10:12
How to install and Play with CI/CD Prow from Kubernetes test-infra project.

Prow and Quickstart

Prow is a Kubernetes based CI/CD system. Jobs can be triggered by various types of events and report their status to many different services. In addition to job execution, Prow provides GitHub automation in the form of policy enforcement, chat-ops via /foo style commands, and automatic PR merging.

NOTE|WARNING: In order to make Prow work fine with your repo, the Kubernetes cluster MUST be reachable by GitHub Webhook.

Articles to read and understand

@jparrill
jparrill / passgitgpg.md
Created March 31, 2019 21:49 — forked from flbuddymooreiv/passgitgpg.md
Setting up pass on git with a gpg key

The following shell transcript shows how to:

  • Create a GPG key
  • Create a pass database
  • Add git support to the pass database
  • Create a remote git repository
  • Push the pass database to the remote git repository
  • Fetch and display your passwords from another host

It is assumed that the pass package has been installed on both the first and second computers.