Skip to content

Instantly share code, notes, and snippets.

View gvilarino's full-sized avatar

Guido Vilariño gvilarino

View GitHub Profile
@mjlescano
mjlescano / index.js
Created October 26, 2017 17:04
Auto-merge GitHub PR when all checks passed
(() => {
const check = () => {
const status = document.querySelector('[data-combined-status]').dataset.combinedStatus
switch(status) {
case 'success':
const btn = document.querySelector('[data-details-container=".js-merge-pr"]')
if (!btn) {
alert('PR already merged.')
break
@edsiper
edsiper / kubernetes_commands.md
Last active June 29, 2024 05:54
Kubernetes Useful Commands
@jriguera
jriguera / delete-dockerhub-images.sh
Last active May 26, 2022 05:27
Delete Docker images on DockerHub
#!/bin/bash
# Based on kizbitz/dockerhub-v2-api-organization.sh at https://gist.github.com/kizbitz/175be06d0fbbb39bc9bfa6c0cb0d4721
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq': https://stedolan.github.io/jq/
# set username, password, and organization
UNAME=""
UPASS=""
@gvilarino
gvilarino / manual-timer.sh
Created March 8, 2015 23:05
Manual timer synch for azure deis
#!/bin/env bash
timer=$(cat <<EOF
[Unit]
Description=sync clock timer
[Timer]
OnCalendar=hourly
Unit=sync-clock-hourly.service
@marcusphi
marcusphi / ansible_conditionals_examples.yaml
Created October 2, 2013 09:48
Ansible 1.3 Conditional Execution -- Very complete example with comments -- I find the conditional expressions to be ridiculously hard to get right in Ansible. I don't have a good model of what's going on under the surface so I often get it wrong. What makes it even harder is that there has been at least three different variants over the course …
---
# This has been tested with ansible 1.3 with these commands:
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=false"
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts isFirstRun=true"
# ansible-playbook -i hosts ansible_conditionals_examples.yaml --extra-vars="hosts=myhosts"
# NB: The type of the variable is crucial!
- name: Ansible Conditionals Examples
hosts: $hosts
vars_files:
@nuxlli
nuxlli / sublime_text_2_useful_shortcuts.md
Created September 9, 2011 18:51 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods