Skip to content

Instantly share code, notes, and snippets.

View btamayo's full-sized avatar
🏠
Working from home

Bianca Tamayo btamayo

🏠
Working from home
View GitHub Profile
@btamayo
btamayo / kubectl.md
Created October 22, 2021 22:28 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@btamayo
btamayo / git-branches-by-commit-date.sh
Created July 22, 2021 01:03 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
@btamayo
btamayo / README.md
Created June 12, 2020 05:09 — forked from joyrexus/README.md
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@btamayo
btamayo / example.md
Created June 12, 2020 05:09 — forked from ericclemmons/example.md
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here
@btamayo
btamayo / example.md
Created June 12, 2020 05:09 — forked from ericclemmons/example.md
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here
// ==UserScript==
// @name Reddit Comment Highlighter
// @namespace https://gist.github.com/fgrsnau
// @include http://www.reddit.com/r/*/comments/*
// @include https://www.reddit.com/r/*/comments/*
// @version 1
// @grant none
// ==/UserScript==
var id = $('.content .sitetable .thing:first').attr('data-fullname');
@btamayo
btamayo / pokemon-species-highlight.js
Created April 8, 2020 19:48 — forked from Err0r404/pokemon-species-highlight.js
Highlight Pokemon species in PokeMontpellier.fr
// ==UserScript==
// @name Highlight Pokemon in PokeMontpellier.fr
// @namespace http://tampermonkey.net/
// @version 0.4
// @description Add a bouncing animation to the Pokemon species you want
// @author Err0r404
// @match https://www.pokemontpellier.fr/
// @grant none
// @downloadURL https://gist.githubusercontent.com/Err0r404/7799395b3c34e4d55e64fd33b0342c36/raw/
// @updateURL https://gist.githubusercontent.com/Err0r404/71c5f4882a4a518e85a1b6ce8b613e67/raw/
@btamayo
btamayo / GistAgeHighlighter.user.js
Created April 8, 2020 19:48 — forked from rf5860/GistAgeHighlighter.user.js
[Gist Age Highlighter] Highlights the age of different Github Gist results, based on age #UserScript
// ==UserScript==
// @name Gist Age Highlighter
// @description Highlights the age of different Github Gist results, based on age
// @version 0.4
// @author rjf89
// @match https://gist.github.com/search*
// @grant none
// ==/UserScript==
Array.prototype.flatMap = function(lambda) { return Array.prototype.concat.apply([], this.map(lambda)); };
const setColor = (e, bgColor) => e.parentElement.style = `background-color: ${bgColor}; color: ivory`;
@btamayo
btamayo / ZSHDocumentationEnhancer.user.js
Last active April 17, 2020 02:45 — forked from rf5860/ZSHDocumentationEnhancer.user.js
[ZSH Documentation Enhancer] Make ZSH Documentation more readable #UserScript
// ==UserScript==
// @name ZSH Documentation Enhancer - Dark
// @version 0.4
// @description Make ZSH Documentation more readable (fork from rjf89)
// @require http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/highlight.min.js
// @resource theme http://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/styles/tomorrow-night.min.css
// @resource bootstrap https://bootswatch.com/4/darkly/bootstrap.min.css
// @author btamayo
// @match http://zsh.sourceforge.net/Doc/*
// @run-at document-start
@btamayo
btamayo / linkshighlight.user.js
Created April 8, 2020 19:48 — forked from Pmmlabs/linkshighlight.user.js
Плагин для VkOpt, который преобразует ссылки на instagram.com, magnet и ftp из текста в собственно ссылки
// ==UserScript==
// @id linkshighlight@vkopt
// @name Links Highlight for VkOpt
// @version 1.1
// @namespace https://greasyfork.org/users/23
// @author Pmmlabs@github
// @description Плагин для VkOpt, подсвечивающий некоторые неподсвечиваемые ссылки
// @include *vk.com*
// @run-at document-end
// @noframes