Skip to content

Instantly share code, notes, and snippets.

View bitkill's full-sized avatar
🍉

Rui Fernandes bitkill

🍉
View GitHub Profile
@bitkill
bitkill / scripts.md
Last active April 1, 2020 11:13
Linux webcam scripts

Preferred settings (no AF, pre-set focus to a good distance, up contrast by a bit)

v4l2-ctl -d /dev/video4 --set-ctrl=focus_absolute=35 --set-ctrl=contrast=132 --set-ctrl=focus_auto=0

Blur Hide Yourself

v4l2-ctl -d /dev/video4 --set-ctrl=focus_absolute=255
@bitkill
bitkill / readme.md
Last active January 29, 2021 15:04
Maven cheatsheet

Performance compile

-T 1C

Accept snapshots

-Denforcer-snapshot.fail=false

No tests

-Dmaven.test.skip skips tests sources, and does not run tests

-DskipTests - does not run tests

@bitkill
bitkill / classFinder.sh
Created February 4, 2020 14:40
Jar class collision finder
#!/bin/bash
if [ $# == 0 ]; then
dir='.'
elif [ $# == 1 ]; then
dir=$1
else
echo "Usage: $0 [dir]";
exit 1;
fi
@bitkill
bitkill / pom.xml
Created January 31, 2020 12:09
Jacoco Coverage Override
<!-- TODO: REMOVE -->
<properties>
<jacoco.line.coveredratio>0.60</jacoco.line.coveredratio>
<jacoco.branch.coveredratio>0.60</jacoco.branch.coveredratio>
</properties>
@bitkill
bitkill / .block
Last active August 10, 2020 14:35
D3.js Histogram II
license: mit
<?php
class ConfigController {
const MODEL = 'App\Models\Config';
// see RestControllerTrait. sends less data on indexing the list of the model
// protected $indexFields = [ 'name' ];
protected $triggers = [
// 'show' => 'extendObject',
// 'update' => 'dataFormatFix',