Skip to content

Instantly share code, notes, and snippets.

View knorrium's full-sized avatar

Felipe Knorr Kuhn knorrium

View GitHub Profile
DarrenN / get-npm-package-version
Last active April 17, 2024 16:57 — forked from yvele/
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
yoavniran /
Last active June 1, 2024 09:44
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
ekashida / index.css
Created October 21, 2014 04:48
Events dispatched by Good Guy Mobile Safari on almost-clicks
div {
padding: 20px 0;
margin: 5px 0;
background-color: lightgreen;
outline: 1px solid blue;
display: inline-block;
a {
background-color: yellow;
noreiller /
Last active January 4, 2016 16:30
Geeksphone Peak backup scripts
BACKUP_DATE=`date +%Y-%m-%d_%H-%M-%S`
mkdir -p "$BACKUP_DIR"
sudo adb pull /data/local/storage/persistent/
$(document).ready(function() {
var embedGist = function () {
$('a[href^=""]').each(function(i) {
if (writeCapture) {
var wrapper = $("<div></div>");
writeCapture.html(wrapper[0], '<script src="'+$(this).attr("href")+'.js"></script>');
} else {
jimmynotjim /
Last active April 19, 2024 05:26
Setup macOS 12 Monterey

Leaving this for historical reasons, but with the latest iteration I set up proper dotfiles. Check em out

Setup macOS with a Clean Install

After too many years of tinkering my machine is a bit all over. With Mojave High Sierra Montery I wanted to start fresh

1. Run Software Update

Make sure everything is up to date.

feelobot /
Created November 4, 2013 21:47
Troubleshooting Webview with Ruby:

Once this is included in your project you can use


If if does not work then the element does not exist. I am sure the code can be cleaned up but this is how I managed to solve my issues with hybrid app testing.

widged /
Created October 4, 2013 03:29
d3 libraries



Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !

charts: [

xAxis:{type:'Category',field: "Month",orderRule:'Date'},

dbwest / Gemfile
Last active December 23, 2015 00:09
An example script, and accompanying Gemfile, to use for automating the Chrome mobile browser on an Android device. Tested on OS X Mountain Lion. Appium installed using node for CLI. If you don't have a fast android emulator, try genymotion...
source ""
gem 'watir-webdriver'
gem 'selenium-webdriver'
willjohnson /
Last active April 26, 2022 19:32
Server Status Widget for Dashing


A Dashing widget that checks whether a server is responding to either an http or ping request. It displays either a check or alert depending on the response.