Skip to content

Instantly share code, notes, and snippets.

View sistlind's full-sized avatar

Stefan Lindner sistlind

View GitHub Profile
@sistlind
sistlind / wake.php
Last active April 23, 2017 12:57
Fritzbox External wakeonlan
<?php
$fritz_url = 'https://public.dyndns.domain:8443';
$fritz_user = 'wakeup';
$fritz_pwd = 'meinpasswort';
$wol_mac='00:aa:bb:cc:dd:ee';
$ch = curl_init(sprintf('%s/login_sid.lua', $fritz_url));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
@sistlind
sistlind / pic_rename.sh
Created September 4, 2015 11:38
Foto time changing
#Zeiten anpassen
exiftool -AllDates-='00:10' -verbose -overwrite_original *
#filesystem modify time anpassen
exiftool "-filemodifydate<datetimeoriginal" *
#automatisch bennenen mit Anhängen von _1 _2 falls doppelt:
exiftool -P -'Filename<DateTimeOriginal' -d Kerwa_%Y%m%d_%Hh%Mm%Ss%+c.%%e *
@sistlind
sistlind / utc.reg
Last active August 29, 2015 14:22
Set at Win7 Bios clock to UTC
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
"RealTimeIsUniversal"=dword:00000001
@sistlind
sistlind / startconmgr.sh
Last active August 29, 2015 14:22
EcoDMS conmgr did start only with cleared env from Linux Mint
#!/bin/sh
#delete all env environment variables exvept DISPLAY and HOME:
unset $(/usr/bin/env | egrep '^(\w+)=(.*)$' | \
egrep -vw 'DISPLAY|HOME' | /usr/bin/cut -d= -f1);
#Now start conmgr:
/opt/ecodms/ecodmsclient/ecodmsconmgr.sh