17 articles founded:


How to convert video files to mp4 x264:

ffmpeg -i input.avi -c:v libx264 -crf 19 -preset slow -c:a aac -b:a 192k -ac 2 -threads 4 out.mp4

How to split videos by time:

ffmpeg -i in.mp4 -ss 0 -t 01:20:50 -threads 4 out.mp4

Tags: Linux, Raspberry Pi

Configuring Redis

Redis is designed to be accessed by trusted clients inside trusted environments. This means that usually it is not a good idea to expose the Redis instance directly to the internet or, in general, to an environment where untrusted clients can directly access the Redis TCP port or UNIX socket.

Access to the Redis port should be denied to everybody but trusted clients in the network, so the servers running Redis should be directly accessible only by the computers implementing the applica...
Read more

Tags: Linux

Semantic Versioning 2.0.0


Given a version number MAJOR.MINOR.PATCH, increment the:

  1. MAJOR version when you make incompatible API changes,
  2. MINOR version when you add functionality in a backwards-compatible manner, and
  3. PATCH version when you make backwards-compatible bug fixes.

Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATC...
Read more

Tags: Linux, Windows, Mac

New JavaScript Engine Module Owner

Posted on June 21, 2011 by Brendan Eich

As you may know, I wrote JavaScript in ten days. JS was born under the shadow of Java, and in spite of support by marca and Bill Joy, JS in 1995 was essentially a one-man show.

I had a bit of help, even at the start, that I’d like to acknowledge again. Ken Smith, a Netscape acquiree from Borland, ported JDK 1.0-era java.util.Date (we both just drafted off of...
Read more

Tags: JavaScript

What is The Singularity?

Vernor Vinge Department of Mathematical Sciences San Diego State University

(c) 1993 by Vernor Vinge (This article may be reproduced for noncommercial purposes if it is copied in its entirety, including this notice.)

The original version of this article was presented at the VISION-21 Symposium sponsored by NASA Lewis Research Center and the Ohio Aerospace Institute, March 30-31, 1993. A slightly changed version appeared in the Winter 1993 issue of Whole Earth Review. AbstractRead more

Tags: IoT

A Proposed Design for Distributed Artificial General Intelligence

Version 2.2 By Matt Mahoney, Oct. 13, 2008


This document describes a proposed design for a globally distributed artificial general intelligence (AGI) for the purpose of automating the world economy. The estimated value is on the order of US $1 quadrillion. The cost of a solution would be of the same order if we assume a million-fold decrease in the costs of computation, memory, and bandwidth, solutions to the natura...
Read more

Tags: IoT

Run your own npm-registry

The easiest way is to replicate the couch database, and use the same (or similar) design doc to implement the APIs.

If you set up continuous replication from the official CouchDB, and then set your internal CouchDB as the registry config, then you’ll be able to read any published packages, in addition to your private ones, and by default will only publish internally.

If you then want to publish a package for the whole world to see, you can simply override the --registry option f...
Read more

Tags: Linux

Install tensorflow-gpu on Linux

wget -c https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh

sh Anaconda3-2019.03-Linux-x86_64.sh

conda install tensorflow-gpu=1.7 cudatoolkit=9.0 cudnn=7.1

Tags: IoT, Linux

Setup FirefoxSync FXA

npm install -g concurrently

cd /opt/fxa/packages/123done npm install --save express

cd /opt/fxa/packages/browserid-verifier npm install --save --production convict

cd /opt/fxa/packages/fxa-auth-db-mysql npm install --production

cd /opt/fxa/packages/fxa-auth-server scripts/download_l10n.sh npm install --production --save mailparser

cd /opt/fxa/packages/fxa-basket-proxy npm install --production

cd /opt/fxa/packages/fxa-content-server script...
Read more

Tags: Linux

Checking Hard Disk Sanity

apt install smartmontools

Enable SMART monitoring

smartctl -s on -a /dev/sda

Destroy/Wipe data on Hard Disk

shred -vfz -n 1 /dev/sda

Tags: Linux

Get a list of installed certificates on Windows Using PowerShell


sigcheck64.exe -tv


An automatic updater of untrusted certificates is available for Windows Vista, Windows Server 2008, Windows 7, and Windows Server 2008 R2. This updater expands on the existing automatic root update mechanism technology that is found in Windows Vista and in Windows 7 to let certificates that are compromised or are untrusted...
Read more

Tags: Windows

Fix mjpg_streamer problem with tmpfs

This is a bug in mjpg-streamer's input_file plugin.

It uses the inotify mechanism to wake up a thread when there is a change in the directory it is watching. The kernel will return as many inotify events as are available and will fit into the buffer, but input_file only expects one event per read.

raspistill writes each image to pic.jpg~ and then renames it to pic.jpg when complete. When writing to the SD card it is slow enough for the close event and the rename event to be deli...
Read more

Tags: IoT, Raspberry Pi, Linux

How to reset your GitLab password

gitlab-rails console production

user = User.where(id: 1).first user.password = 'secret_pass' user.password_confirmation = 'secret_pass' user.save!

Tags: Linux

Let's Encrypt for Fritz.box & ProxMox

apt install -y certbot wget

Generate certificate certbot certonly -n -a webroot -w /var/www/html -d <domain>

Check two times each month (on the first and the 15th) at 06:30 AM if it needs to issue a new certificate.

30 6 1,15 * * root /usr/bin/certbot renew --quiet --post-hook /usr/local/bin/renew-pve-certs.sh

cp /etc/letsencrypt/live//fullchain.pem /etc/pve/local/pveproxy-ssl.pem

cp /etc/letsencrypt/live//privkey...
Read more

Tags: Linux

Enable Built-in Administrator Account in Windows

First you’ll need to open a command prompt in administrator mode by right-clicking and choosing Run as administrator (or use the Ctrl+Shift+Enter shortcut from the search box).

net user administrator /active:yes

Tags: Windows

Windows 10 change home directory

  1. Create a System Restore Point.
  2. Log on under an admin account.
  3. Move the folder C:\Users\SomeUser so that it becomes D:\SomeUser.
  4. Open the registry editor.
  5. Navigate to HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList.
  6. Search for "ProfileImagePath" until you find the one that points at C:\Users\SomeUser.
  7. Modify it so that it points at D:\SomeUser.
  8. Use System Restore in case things go wrong.

Tags: Windows