Skip to content

Instantly share code, notes, and snippets.

View radimklaska's full-sized avatar
:octocat:
Working from @cowosedlice. Stop by. ;-)

Radim Klaška radimklaska

:octocat:
Working from @cowosedlice. Stop by. ;-)
View GitHub Profile
@radimklaska
radimklaska / readme.md
Created December 26, 2018 10:29 — forked from max-mapper/readme.md
Video stabilization using VidStab and FFMPEG (Mac OS X)

Video stabilization using VidStab and FFMPEG

Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.

Here's an example video I made

Install ffmpeg with the vidstab plugin from homebrew

brew install ffmpeg --with-libvidstab
{
"data": [
{
"device": "4D2BA5",
"time": 1515885642,
"data": "af0b4b4255fc634100000100",
"snr": "52.72",
"linkQuality": "GOOD",
"seqNumber": 2347,
"rinfos": [
# diff
# Betaflight / SPRACINGF3EVO (SPEV) 3.2.1 Oct 15 2017 / 19:48:22 (434db9a36) MSP API: 1.36
name mimo
feature -RSSI_ADC
feature -TRANSPONDER
feature AIRMODE
feature DYNAMIC_FILTER
serial 0 1 115200 57600 0 115200
aux 0 0 0 1900 2100
diff --git a/settings/blt.settings.php b/settings/blt.settings.php
index c8ef4d2..5959b88 100644
--- a/settings/blt.settings.php
+++ b/settings/blt.settings.php
@@ -59,8 +59,13 @@
******************************************************************************/
if ($is_ah_env) {
- if (!$is_acsf && file_exists('/var/www/site-php') && $site_dir == 'default') {
- require "/var/www/site-php/{$_ENV['AH_SITE_GROUP']}/{$_ENV['AH_SITE_GROUP']}-settings.inc";
{"[object HTMLDivElement]":"1111","accumulatedJobTimeMS":"13988428","cncMode":"Disable","defaultBitmapDPI":"800","defaultDPI":"72","endgcode":"M30","homingseq":"G28","illustratorDPI":"","imagePosition":"BottomLeft","inkscapeDPI":"","jogFeedXY":"20","jogFeedZ":"1","laserXMax":"400","laserYMax":"300","lasermultiply":"255","laseroff":"M5","laseron":"M3","lasertestduration":"1","lasertestpower":"1","lastJogSize":"10","lastUsedBaud":"115200","lastUsedPort":"/dev/ttyUSB0","loglevel":"ERROR","optimisegcode":"Disable","rapidspeed":"30","safetyLockDisabled":"Disable","showQuoteTab":"Show","smoothieIp":"","spotSize":"0.5","startgcode":"G28","subnet1":"","subnet2":"","subnet3":"","tour_current_step":"1","tour_end":"yes","useNumPad":"Disable","useVideo":"Disable","webcamUrl":"","wifisubnet1":"","wifisubnet2":"","wifisubnet3":""}
@radimklaska
radimklaska / settings.php
Created August 24, 2017 15:16
Include settings specific to Wedos only when running there.
/**
* Detect Wedos.
*/
$wedos_settings = DRUPAL_ROOT . "/sites/default/settings.wedos.php";
if (isset($_SERVER['SERVER_ADMIN']) && $_SERVER['SERVER_ADMIN'] == ' hosting@wedos.com' && file_exists($local_settings)) {
include $local_settings;
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@radimklaska
radimklaska / detect_devices.php
Created June 26, 2017 01:29
* Check you have php with curl and arp-scan
<?php
$names = array(
"aa:bb:cc:dd:ee:ff" => 'Radim - mobil',
"aa:bb:cc:dd:ee:ff" => 'Radim - notebook',
);
$timestamp = time();
$path = "/tmp/";
$prefix = "detected_devices_";
ffmpeg -f image2 -start_number 22096 -i G01%05d.JPG -vcodec libx264 -b:v max -s 1920x1080 stx.mp4
The YHDC SCT-013-000 CT has a current range of 0 to 100 A. For this example, let's choose 100 A as our maximum current.
Primary peak-current = RMS current × √2 = 100 A × 1.414 = 141.4A
The YHDC SCT-013-000 CT has 2000 turns, so the secondary peak current will be:
Secondary peak-current = Primary peak-current / no. of turns = 141.4 A / 2000 = 0.0707A
If you're using an Arduino running at 5V: AREF / 2 will be 2.5 Volts. So the ideal burden resistance will be:
#NO: Ideal burden resistance = (AREF/2) / Secondary peak-current = 2.5 V / 0.0707 A = 35.4 Ω