Skip to content

Instantly share code, notes, and snippets.

View te-online's full-sized avatar

Thomas Ebert te-online

View GitHub Profile
@te-online
te-online / checkCertificateValidity.py
Last active December 22, 2017 14:40
An AWS Lambda function to check if a given hostname (in the start event) still hold as valid tls certificate.
"""
Copyright 2016 Ryan Scott Brown <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and

Run docker run -v /Users/thomas/Desktop/Backups:/var/backup -it -p 139:139 -p 445:445 -d dperson/samba -u "guest;guest" -s "backup;/var/backup;yes;no" -n

@te-online
te-online / docker-setup.md
Last active August 2, 2017 07:24
Command you could use to test-run changes to a Dockerfile with Docker for Mac.
  • Create a folder with a Dockerfile
  • Build the image docker build --no-cache -t {IMAGE_NAME} .
  • Run the image docker run -d -p 1935:1935 --name {CONTAINER_NAME} {IMAGE_NAME}

To rebuild

  • See the id of the container docker ps -a
  • Stop the container docker stop {ID}
  • Remove the container docker rm {ID}
  • Run the image as shown above.

#FOR MULTIPLE REDIS INSTANCE INSTALLATION ON CentOS USE THE FOLLOWING PATHS AND SETUP PROCESS:

  • create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf
  • edit /etc/redis-xxx.conf, illustrated as below
@te-online
te-online / redis-nc.php
Last active July 31, 2017 12:32
Redis Caching for Nextcloud
<?php
array(
// ...
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => 'localhost',
'port' => 6379,
'password' => 'foobar'
),
@te-online
te-online / window-phone-10.md
Last active July 16, 2017 00:46
Things that used to work on Windows Phone 8.1 but aren't on Windows Mobile 10. :-(

After upgrading to Windows 10 Mobile, I see now that Windows 10 Mobile is in a stadium, Windows Phone 7 was a few years ago. It's a new and fresh operating system, but nothing's really working the way it should.

It is even worse if you consider that Windows Phone 8.1 did all the things right, that I will consecutively list in this gist. @Developers and UX-Experts at Microsoft: Just copy the behaviour of Windows Phone 8.1 and you have a consistent, yet easy to use mobile operating system. Doesn't sound too hard, huh?

And I can really speak from experience. My first smartphone was a Windows Phone until now. I also tested Windows 10 Mobile for more than 4 weeks and now reverted my phone to WP 8.1. I didn't realize until restore was finished how badly you can miss a reliable, smooth and well designed operating system and how happy I would be to have it back.

My experience is based on extensive usage on a Lumia 830. I mainly use my phone for communication like email, phone, messenger and reading and also as a b

@te-online
te-online / service-status.sh
Created April 17, 2017 18:56
Get Daemontools Service Status
svstat ~/service/web
@te-online
te-online / mdt-win10--customsettings.ini
Created March 16, 2017 19:36
MDT Script Series: The CustomSettings.ini used for a nearly hands-free deployment of Windows 10.
[Settings]
Priority=Default
[Default]
_SMSTSORGNAME=te-online.net, Thomas Ebert
_SMSTSPACKAGENAME=Your Deployment Name
;UserDataLocation=NONE
;UserDataLocation=NETWORK
UDShare=\\%YOUR-SERVER%\DeploymentShare$
UDDir=Applications\scannedUserState\v2
@te-online
te-online / mdt-win10--scanstate-command.cmd
Last active March 16, 2017 19:24
MDT Script Series: Scan a user state from a golden image or reference machine
:: Copy the Scanstate tool from Windows ADK and run this
scanstate.exe \\SERVER\DeploymentShare$\Applications\scannedUserState\v2 /ue:%computername%\Administrator /o /i:migapp.xml /i:miguser.xml /v:13 /l:C:\Users\Administrator\Desktop\scanstate.log
@te-online
te-online / mdt-win10--wifi-profile-example.xml
Last active March 16, 2017 19:31
MDT Script Series: Export and apply a prepared WiFi profile from a network share
<?xml version="1.0"?>
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
<name>%SSID-NAME%</name>
<SSIDConfig>
<SSID>
<hex>%HEX-OF-SSID-NAME%</hex>
<name>%SSID-NAME%</name>
</SSID>
</SSIDConfig>
<connectionType>ESS</connectionType>