Skip to content

Instantly share code, notes, and snippets.

Avatar

Filipe Freire filfreire

View GitHub Profile
View grep_json_field.sh
# quick hack alternative to using 'jq -r .some_field'
grep -o '"some_field": *"[^"]*' experiment.json | grep -o '[^"]*$'
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@filfreire
filfreire / SerenityRequestOf.java
Created Feb 8, 2019
This class solves all your Check Automation problems, Doctors hate it.
View SerenityRequestOf.java
//... Le usage:
final Response response = new RequestOf(this.spec, "POST", endpoint).execute();
Serenity.setSessionVariable(StaticConstants.SESSION_RESPONSE).to(response);
//... Le class:
package com.jurassicpark.requests;
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@filfreire
filfreire / no-comments.js
Created Oct 13, 2017 — forked from Darep/no-comments.js
Remove all comments from GitHub Pull Request
View no-comments.js
// Sometimes it's necessary to do a bit of clean-up
Array.prototype.forEach.call(document.querySelectorAll('.js-comment-delete button'), function(el, i) {
el.removeAttribute('data-confirm');
el.click();
});