For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
| <?php | |
| include 'predis/predis.phar'; | |
| class OnlineUsers { | |
| /* time to consider user online */ | |
| private $minutes = 5 ; | |
| function online() { | |
| /* current hour and minute */ |
| function Gauge(placeholderName, configuration) | |
| { | |
| this.placeholderName = placeholderName; | |
| var self = this; // for internal d3 functions | |
| this.configure = function(configuration) | |
| { | |
| this.config = configuration; | |
| #!/bin/bash | |
| # Takes one parameter: a remote git repository URL. | |
| # | |
| # This is the stuff this script does: | |
| # | |
| # 1. Clones the repository | |
| # 2. Fetches all remote branches | |
| # 3. Compresses the folder | |
| # 4. Deletes the cloned folder. |
| <?php | |
| /** | |
| * @author Antoine Hedgecock | |
| */ | |
| /** | |
| * @namespace | |
| */ | |
| namespace Application; | |
| use Zend\Acl\Acl, |
| <?php | |
| echo $this->navigation('default-navigation') | |
| ->menu() | |
| ->setPartial('default/navigation/sub_menu') | |
| ->render( | |
| null, | |
| array( | |
| 'indent' => 4, | |
| 'ulClass' => '', | |
| 'minDepth' => 1, |
| # zabbix_get.py : Python port of zabbix_get | |
| # http://www.zabbix.com/documentation/1.8/protocols/agent | |
| # http://www.zabbix.com/wiki/doc/tech/proto/zabbixagentprotocol | |
| import argparse | |
| import socket | |
| import struct | |
| import sys | |
| def str2packed(data): |
rsync (Everyone seems to like -z, but it is much slower for me)
| # Controlling my Buva Qstream ventilation system using: | |
| # * A Wemos D1 mini lite (an ESP8266 based board) | |
| # * A Wemos power shield so I can power the Wemos from the ventilation units 12V supply. | |
| # * A simple PWM to 10V convertor like this: https://www.cheaptech.nl/pwm-signaal-te-voltage-converter-1-3-khz-0-10-v-pw.html | |
| # * The amazing ESPHome firmware tool: https://esphome.io | |
| # * Home Assistant to tie it all together: https://www.home-assistant.io | |
| # | |
| # I used to use a Raspberry Pi and some Python code for this. See https://gist.github.com/SqyD/a927ab612df767a0cc892bcde23d025c | |
| # The Wemos approach seems more stable and doesn't require external USB power. |