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 / 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 / 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 / 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/
// ==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 / 00-admin-scripts-and-snippets.md
Last active April 11, 2020 04:59
Admin Scripts and Snippets

00-admin-scripts-and-snippets.md

// ==UserScript==
// @name Reddit Title Bold For r/acturnips
// @version 0.1
// @description Bolds Reddit Post Titles
// @author btamayo
// @match https://www.reddit.com/r/acturnips/*
// @run-at document-idle
// @grant GM_addStyle
// @grant GM_getResourceText
// @grant GM_log
@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
@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 / download-gdsls.sh
Created September 12, 2020 22:44
Download GDSL for Jenkins jobs to import into IntelliJ
#!/usr/bin/env bash
# Pretty rough script on downloading GDSLs. Replace http://localhost:8080 with your Jenkins URL. You may have to
# provide an authtoken.
jobs_curl=$(curl --silent --location --request GET 'http://localhost:8080/api/json?tree=jobs\[name\]')
list=$(jq --raw-output '.jobs[] | .name' <<< "$jobs_curl")
write_gdsl_file() {