Skip to content

Instantly share code, notes, and snippets.

View lknight's full-sized avatar

Pavel Roytberg lknight

View GitHub Profile
@lknight
lknight / nanlite-protocol.md
Created December 2, 2023 21:36 — forked from vmedea/nanlite-protocol.md
Nanlite RF and BLE protocol

(this document can be found here: https://gist.github.com/vmedea/434694c11092261fcac401b7a4b9a741)

Contents:

  • Nanlite RF protocol (V1.0)
  • Nanlite RF protocol (V2.0) -- TODO
  • Bluetooth LE ("app protocol")

Nanlite RF protocol (V1.0)

This document describes the RF remote control protocol used by at least the Nanlite PavoTubeII6C RGBWW photography lights, and probably more lighting equipment by the same vendor (I do not have access to any other so cannot verify this).

@lknight
lknight / blog_yerkanian.txt
Created November 29, 2014 11:20
Mac OS monitoring tools
#http://blog.yerkanian.com/2011/10/17/monitoring-disk-io-on-macos-x/
Monitoring disk I/O on MacOS X with iosnoop, fs_usage and iotop
Posted on October 17, 2011
MacOS X comes with great command line programs for debugging and troubleshooting various issues with your system. If you ever need to check what program is accessing your disk, use these three programs: iosnoop, fs_usage and iotop.
All require the sudo password, as they tap deep into your kernel to get the information.
The first one, iosnoop, monitors the disk I/O displaying the information line by line as it happens in real-time. Think of it as the tcpdump command for your disk operations. To run it, type the following in your Terminal window:
sudo iosnoop -v -a
@lknight
lknight / mysql_dbsize_query.sql
Created January 24, 2014 21:54
DB SIZE MYSQL
SELECT table_schema "Data Base Name",
sum( data_length + index_length ) / 1024 /
1024 "Data Base Size in MB",
sum( data_free )/ 1024 / 1024 "Free Space in MB"
FROM information_schema.TABLES
where table_schema = "name" or table_schema = "wp_name"
GROUP BY table_schema ;
@lknight
lknight / wp-cron-multisite.php
Created December 17, 2013 13:47
wordpress cluster multi site cron script copied from http://www.lucasrolff.com/wordpress/why-wp-cron-sucks/
<?php
require('./wp-load.php');
global $wpdb;
$sql = $wpdb->prepare("SELECT domain, path FROM $wpdb->blogs LIMIT 0,300", '');
$blogs = $wpdb->get_results($sql);
foreach($blogs as $blog) {
$command = "http://" . $blog->domain . ($blog->path ? $blog->path : '/') . 'wp-cron.php?doing_wp_cron';
$ch = curl_init($command);
@lknight
lknight / DNS FLUSH
Created October 30, 2013 16:04
DNS FLUSH OS X MAVERICKS 10.9
dscacheutil -flushcache;sudo killall -HUP mDNSResponder
@lknight
lknight / MicroServers_url
Last active December 25, 2015 14:29
HomeLab MicroServers Infostructure
http://b3n.org/installed-xeon-e3-1230v2-in-gen8-hp-microserver/
http://homeservershow.com/forums/index.php?/topic/5639-proliant-microserver-gen8-links/?p=62204
!! http://www.scoop.it/t/home-computing-labs
http://amitabh-vworld.blogspot.com.es/2013/01/internet-accessible-high-performance.html
UPS 2 consider:
1) CyberPower CP1500EPFC - розетки куда можно втыкать нормальные вилки!
@lknight
lknight / DIY_url
Created October 3, 2013 23:54
DIY project
http://habrahabr.ru/post/184966/
http://habrahabr.ru/post/178661/
@lknight
lknight / OpenData_urls
Last active December 24, 2015 15:19
OpenData
http://habrahabr.ru/company/yandex/blog/193336/
http://www.wikidata.org/
http://hub.opengovdata.ru/
http://infoculture.ru/
http://tech.yandex.ru/events/meetings/hack/
http://api.yandex.ru/
http://gov-gov.ru/
http://mkrf.ru/opendata/
http://hub.opengovdata.ru/group/moscow
@lknight
lknight / virtualization_urls
Last active December 24, 2015 15:18
VIRTUALIZATION GIST
MAAS:
-- http://www.thisismrhelp.com/blog/?p=65
-- http://maas.ubuntu.com/docs/install.html
http://habrahabr.ru/post/140375/
http://www.proxmox.com/proxmox-ve/comparison
http://www.turnkeylinux.org/
https://hub.turnkeylinux.org/ - !!
@lknight
lknight / SSD-NAS
Last active December 24, 2015 15:19
NAS CHOICES
http://wahlnetwork.com/2012/09/26/the-all-flash-synology-ds2411-array/
http://wahlnetwork.com/resources/
http://www.smallnetbuilder.com/nas/nas-howto/31485-build-your-own-fibre-channel-san-for-less-than-1000-part-1?start=4
http://techhead.co/hp-proliant-microserver-g8a-decent-home-lab-server/
!! http://www.scoop.it/t/home-computing-labs
SSD: KINGSTON SV300S3D7/120G
Samsung MZ-7TD120BW
Kingston SVP200S37A/120G - best? ~100$