Skip to content

Instantly share code, notes, and snippets.

View vallieres's full-sized avatar
🏡
Working from Home

Alexandre Vallières-Lagacé vallieres

🏡
Working from Home
View GitHub Profile
@vallieres
vallieres / ffmpeg-install.sh
Created February 20, 2018 15:47
ffmpeg install with all options
brew install ffmpeg --with-chromaprint --with-fdk-aac --with-fontconfig --with-freetype --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libgsm --with-libmodplug --with-librsvg --with-libsoxr --with-libssh --with-libvidstab --with-libvorbis --with-libvpx --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-rubberband --with-sdl2 --with-snappy --with-speex --with-tesseract --with-theora --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg
@vallieres
vallieres / bookmarklet-github-pr-status.js
Created January 17, 2019 14:43
Prepares a Status Update from Selected PR in Github
javascript: void((function(d) {
function collectionHas(a, b) { //helper function (see below)
for(var i = 0, len = a.length; i < len; i ++) {
if(a[i] == b) return true;
}
return false;
}
function findParentBySelector(elm, selector) {
var all = document.querySelectorAll(selector);
@vallieres
vallieres / toggle-github-pr-files.js
Created January 17, 2019 14:52
Toggles GitHub's PR Files Collapsable Boxes
javascript: void((function(d) {
d.querySelectorAll('button[aria-label="Toggle diff contents"]').forEach(function(x) {
x.click()
});
})(document));
@vallieres
vallieres / copy-branch-from-jira.js
Last active December 12, 2022 17:13
Copy branch name from JIRA webpage to clipboard
// Create here:
// https://katanya.co.uk/labs/bookmarklet-generator
let jiraIssue = jQuery('a[data-testid="issue.views.issue-base.foundation.breadcrumbs.current-issue.item"] span')[0].textContent.toUpperCase();
let jiraTicketName = jQuery('h1[data-test-id="issue.views.issue-base.foundation.summary.heading"]')[0].textContent;
jiraTicketName = jiraTicketName.toLowerCase().split(" ").join("-").split("/").join("-");
jiraTicketName = jiraTicketName.replace(/[^a-z0-9-_]+/g, '');