Author: frank

[work in progress] Compile and install php 7.X on Debian 0

[work in progress] Compile and install php 7.X on Debian

Error update-alternatives: error: alternative /usr/local/php-7.1.26/bin/php for php not registered; not setting echo "Will set php version to $PHP_VERSION" sudo update-alternatives --set php /usr/local/php-$PHP_VERSION/bin/php update-alternatives: error: alternative /usr/local/php-7.1.26/bin/php for php not registered; not setting Solution...

Remove ssh key for new host with same IP 0

Remove ssh key for new host with same IP

Problem [dev@shrub kraken-ui]$ ssh root@10.65.11.212 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)!...

Debian Installation 0

Debian Installation

Live DVD (Standalone Non-install OS) https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/  

gSOAP to implement an ONVIF device 0

gSOAP to implement an ONVIF device

  Prerequisites gSOAP 2.8.62 or greater for ONVIF projects. I used the 2.8.76 GPL version from SourceForge Option soapcpp2 -2 forces SOAP 1.2, which is required by ONVIF. flex and bison CentOS : sudo yum install...

Install Selenium + Firefox drivers + Headless drivers on CentOS 7 0

Install Selenium + Firefox drivers + Headless drivers on CentOS 7

Downloads Binaries Chromedriver https://sites.google.com/a/chromium.org/chromedriver/downloads Extract and cp to /usr/local/bin/ For more info see https://intoli.com/blog/running-selenium-with-headless-chrome/ Install Python and Python Modules pyenv install 2.7.9 pyenv local 2.7.9 pip install -U setuptools pip install paramiko deepdiff faker ConfigParser enum...

Backbone Collection Flexible Value Sorting Solution 0

Backbone Collection Flexible Value Sorting Solution

Model/Collection Declaration Inputs.Collection = Backbone.Collection.extend({ model: Inputs.Model, url: "/apis/v2/inputs", sortAttribute: "name", // supported attributes are model's element names + any custom strategies below comparator: function(model) { return Utils.genericComparator.call(this, model); }, strategies: {}, changeSort: function...

Convert a TS file to MP4 using ffmpeg Looselessly 0

Convert a TS file to MP4 using ffmpeg Looselessly

$> ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -i ~/assets/input.ts -c:v copy -c:a copy ~/assets/output.mp4 analyzeduration and probesize are just a safety in case the GOP size is very high in TS stream. You might not need...

Website Tools 0

Website Tools

Emails https://toolbox.googleapps.com/apps/checkmx/check   Page loading speed https://developers.google.com/speed/pagespeed/insights/