Skip to content

Instantly share code, notes, and snippets.

View ignlg's full-sized avatar
Killing invaders

Ignacio Lago ignlg

Killing invaders
View GitHub Profile
ignlg /
Created February 22, 2023 08:32 — forked from lkoba/
set -eo pipefail
json=$(y2j <"$1")
overrides=$(echo "$json" | jq "{spec}")
name=$(echo "$json" | jq -r "")
labels=$(echo "$json" | jq -r '.metadata.labels | keys[] as $k | "\($k)=\(.[$k])"' | paste -sd "," -)
image=$(echo "$json" | jq -r ".spec.containers[0].image")
ignlg /
Last active October 11, 2021 21:20

Keybase proof

I hereby claim:

  • I am ignlg on github.
  • I am ignlg ( on keybase.
  • I have a public key ASAqWciuAJXAL963nSnrwKQuQ23mJiEpi-3YSco87IyKWgo

To claim this, I am signing this object:

ignlg /
Created April 20, 2020 12:58
Check every git status of every repository
#! /bin/bash
BLACK=`tput setaf 0`
RED=`tput setaf 1`
GREEN=`tput setaf 2`
YELLOW=`tput setaf 3`
BLUE=`tput setaf 4`
MAGENTA=`tput setaf 5`
CYAN=`tput setaf 6`
WHITE=`tput setaf 7`
ignlg / alfred_iterm.applescript
Created April 19, 2020 10:20
Applescript to open a new iTerm window with Alfred and run the written command.
on alfred_script(q)
tell application "iTerm"
create window with default profile
select first window
set onlywindow to true
tell the first window
tell current session to write text q
end tell
end tell
ignlg /
Created April 1, 2020 20:04
Creates new KeePass entries as references to original entries when the URL is a list of URLs
from pykeepass import PyKeePass
def clean_url(url):
url_parts = url.split("/")
if url_parts[0] == "http:" or url_parts[0] == "https:":
return url_parts[2]
return url
ignlg /
Last active March 31, 2020 18:20 — forked from mpalet/
Export Bitwarden to KeePass 2 XML format, with custom banned fields to clean things up
Exports a Bitwarden database into a KeePass file (kdbx) including file attachments, custom fields and folder structure.
It can also export an unencrypted XML KeePass file conforming to KeePass 2 XML format.
It requires keepassxc-cli, if not available it can still export KeePass 2 XML
Usage: [-h] [-x] [-d] [-bw-password None] [-kee-password None]
ignlg /
Last active January 28, 2024 15:16
How to build a rust project with nannou for Android on macOS

How to build a rust project with nannou for Android on macOS

This is a work in progress because I have not been able to build an apk yet, but I can build an Android executable.

I keep this notes for my future self and for you if you are fighting against this beast too.

Please read it all, because I will write down every do's and dont's that I have found.

I will polish the document as soon as I have everything.

ignlg / setup.bash
Last active May 26, 2017 10:40
Setup Mac OS X from scratch using Homebrew & Cask
#!/usr/bin/env bash
# Setup Mac OS X from scratch using Homebrew & Cask
# Version: 1.2.31
# Date: 20151207
# Author: Ignacio Lago @ignlg
# Gist:
ignlg / Slack Theme
Created September 28, 2015 09:50
Slack theme
ignlg /
Last active August 26, 2015 08:44 — forked from timthez/closer.js
Close tab on browserSync disconnection, Gulp example
browserSync = require 'browser-sync'
plugin: ->
'client:js': '
/* Close tab when server dies */
(function (bs) {
bs.socket.on("disconnect", function (client) { window.close(); });