Forfatterarkiv: mike

Nagios / Incinga plugin for verifying ssl certificates

Udgivet i Nagios, PHP, Uncategorized | Skriv en kommentar

Fixing broken ini_parser in PHP7

The cause if this problem is a broken brain somewhere in the PHP Developer comunity, for some reason they have removed support for using hash-marks (#) for comments in PHP 7. Theres no valid reason for this, it’s not like … Læs resten

Udgivet i Uncategorized | Skriv en kommentar

OpenVPN på FreeNAS

FreeNAS kommer med OpenVPN som en del af basedist, men den skal sættes manuelt op, der er ikke gui til det (endnu?). Ved hver reboot overskrives /etc, derfor skal persistent config oprettes i /conf/base istedet. Opret mappen /conf/base/etc/local/openvpn og placer … Læs resten

Udgivet i Uncategorized | Skriv en kommentar

Autostart browser on Raspberry Pi

First use this approach to create a python based browser, call it browser.py and leave it in pi’s home directory. Set up .xinitrc to contain the following: The first three commands disable screen-blanking and the last one runs a script … Læs resten

Udgivet i Uncategorized | Skriv en kommentar

Croping video with FFMPEG

Crops a rectangle with the dimensions 580×304 out of test.mp4 with an offset of 0 (left) and 388 (down) into out.php and skips everything after 5 minuttes, use this for testing your cut, when sattisfied, run command without “-t 5:00” … Læs resten

Udgivet i Uncategorized | Skriv en kommentar

Manual TLS Certificate Verification

$ openssl s_client -connect server.com:443 -crlf imaps 443 pop3s 995 https 443

Udgivet i Uncategorized | Skriv en kommentar

Irssi channel-list

First install scriptassists (https://scripts.irssi.org/) /run scriptassist Now install adv_windowlist /script install adv_windowlist Setup adv_list, heres my config: /toggle awl_viewer /toggle awl_mouse /set awl_block -19 /format awl_display_header 0 Enjoy 😉 Finish up by running /save And finaly move adv_windowlist from .irssi/script … Læs resten

Udgivet i Irssi | Skriv en kommentar

Benchmarking disk-access

root@defiant:~# sync root@defiant:~# echo 3 > /proc/sys/vm/drop_caches mmc@defiant:~$ dd if=test.iso | pv > /dev/null  

Udgivet i Uncategorized | Skriv en kommentar

Letsencrypt Wildcard certificate on Debian 9

Point a wildcard record to your server, install apache2 root@cluebat:~# apt-get install virtualenv apache2 and install certbot: root@cluebat:~# wget https://dl.eff.org/certbot-auto –2018-10-05 23:07:52– https://dl.eff.org/certbot-auto Resolving dl.eff.org (dl.eff.org)… 151.101.16.201, 2a04:4e42:4::201 Connecting to dl.eff.org (dl.eff.org)|151.101.16.201|:443… connected. HTTP request sent, awaiting response… 200 OK … Læs resten

Udgivet i Apache, Kryptering, Letsencrypt | Skriv en kommentar

Manually deleting movies and pictures from OnePlus 5

When you delete the content of the DCIM folder on the phone the space, for some reason, does not gets released. This is because the phone stores the files in  /Android/data/com.oneplus.gallery/files/recyclebin instead of just deleting them .. *sigh*

Udgivet i Android | Skriv en kommentar