Skip to content

Instantly share code, notes, and snippets.

@bjoernhohe
bjoernhohe / magentaUbuntu.txt
Created November 2, 2022 21:58
Integrate MagentaCloud and other Telekom Services in Ubuntu
This is just a summary on how I integrated the mentioned services into Ubuntu - mainly for myself than I don't have to google it all again and everyone who is interested.
MagentaCloud:
MagentaCloud can be accessed with the Software provided by Deutsche Telekom for Win and Mac or zou simply use the Nextcloud Client with the following Server URL: https://magentacloud.de and your regular login.
Besides that it is also possible to mount it as a WebDav via https://magentacloud.de/remote.php/webdav - for that a special protocol password is needed -> https://cloud.telekom-dienste.de/hilfe/einrichten/separates-passwort
Telekom Email:
The following servers are used for IMAP
Inbox: secureimap.t-online.de (Port 993)
Outbox: securesmtp.t-online.de (Port 465)
#!/usr/bin/env python
import LCD1602
import time
from datetime import datetime
def setup():
LCD1602.init(0x27, 1) # init(slave address, background light)
i = datetime.now()
start = datetime(2015, 3, 25)
delta = i - start
import sys
import time
import Adafruit_DHT
from RPLCD.i2c import CharLCD
sensor = Adafruit_DHT.DHT11
pin = 4
lcd = CharLCD('PCF8574', 0x27)
while True:
humidity, temperature = Adafruit_DHT.read_retry(sensor, pin)
@bjoernhohe
bjoernhohe / leica-q.xml
Created December 15, 2018 21:33
Leica Q Lensfun
<lensdatabase version="1">
<camera>
<maker>Leica Camera AG</maker>
<model>Leica Q (Typ 116)</model>
<mount>leicaQTyp116</mount>
<cropfactor>1</cropfactor>
</camera>
<lens>
@bjoernhohe
bjoernhohe / maccleaner.bat
Created October 13, 2017 13:12
batch job to clean redundant OSX leftovers on Windows
echo Hi there! Cleaning MacOS redundant files...
del /s /a:h ._*
del /s /a:h .DS_Store
del /s /a:h .Trashes
@pause
@bjoernhohe
bjoernhohe / setup-after-loki.sh
Last active May 15, 2017 12:05
Things I like to do after a fresh install of elementary os loki 0.4
#Updating system packages to latest version
sudo apt-get update && sudo apt-get upgrade
#Install Software properties
sudo apt-get install software-properties-common
#Install elementary tweaks
sudo add-apt-repository ppa:philip.scott/elementary-tweaks && sudo apt-get update
sudo apt install -y elementary-tweaks