# Clean out MDM registration info from machine, in attempt to fix Intune enrollment problems with Windows 10 | |
# after a user reboots, the enrollment process should kick off again. | |
# This special edition, also disables workplace join, as an attempt to mitigate issues with devices previously AAD Registered. | |
# This script has fixed Error codes 0x80180023 and 0x8018002b at some of my customers sites, even without reboot in some cases. | |
# By Michael Mardahl @ Apento.com - @michael_mardahl | |
# Should be run as system user | |
#Disable workplace join if that is happening beyond your control. | |
#Get-ScheduledTask -TaskName "Automatic-Device-Join" | Disable-ScheduledTask |
/* | |
* Copyright (C) 2017 Alberts Muktupāvels | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
# Run below to save to csv | |
\T csv | |
\o ~/my_file.csv | |
select * from users where created_at > '2017-01-01'; |
import functools | |
from datetime import datetime, timedelta | |
from unittest import mock | |
from freezegun import freeze_time | |
def fake_sleep(func): | |
freezegun_control = None |
This is the setup that I use for mutt, I have two google domain account (read as gmail) and an institution where I work and study account. This means I have two gmail accounts and one outlook 365 account that i want to sync and read via mutt.
I want to store all my email locally as I travel a lot and will be in countries without easy internet access. For this I use mbsync (iSync). As it can handle multiple account types easily and efficently.
The setup works this way
[Remote Mail Servers] <= mbsync => [Local Mail Folders]
Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:
Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.
Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.
Instructions provided for both Fedora and Ubuntu (including Debian):
Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running:
from django import template | |
from wagtail.wagtailimages.models import SourceImageIOError | |
from wagtail.wagtailimages.templatetags.wagtailimages_tags import ImageNode | |
register = template.Library() | |
@register.tag(name="responsiveimage") | |
def responsiveimage(parser, token): | |
bits = token.split_contents()[1:] |