Skip to content

Instantly share code, notes, and snippets.

View dbirks's full-sized avatar
🦔

David Birks dbirks

🦔
View GitHub Profile
@dbirks
dbirks / mailbox-recursive-access.md
Last active January 4, 2023 12:31
Give a user access recursively to another mailbox's folders

Give a user access recursively to another mailbox's folders

I was running into a problem giving a user access to another user's mailbox, where the user was only getting permission to view the top level folders, while the subfolders had no viewing permissions set on them.

Here's the way to set permissions on each folder recursively if all else fails.

In this example, we are giving Mike editor privileges on Kukuri's mailbox folders.

ForEach($f in (Get-MailboxFolderStatistics kukuri@company.com | Where { $_.FolderPath.Contains("/") -eq $True } ) ) {
@dbirks
dbirks / keybase.md
Created September 25, 2017 22:27
Keybase proof

Keybase proof

I hereby claim:

  • I am dbirks on github.
  • I am dbirks (https://keybase.io/dbirks) on keybase.
  • I have a public key ASAHM3aYP5st_vS0TpuHY_4j8MrM26zQNHcHxKFMrVhGGwo To claim this, I am signing this object:
{
  "body": {
    "key": {
@dbirks
dbirks / change-last-logged-on-user-windows-10.md
Last active February 26, 2024 13:00
Change last logged on user on Windows 10

In Windows 10 you can no longer change the last logged on user in the registry like you could in Windows 7. Windows 10 requires the user's SID to be entered as well. Here's an updated guide.

In HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI, you'll want to change 4 entries:

  • LastLoggedOnDisplayName
    • Enter the user's full name, like Allan Jude
  • LastLoggedOnSAMUser
    • Enter the username, like SHORTDOMAIN\allan.jude
  • LastLoggedOnUser
  • Enter the username again, like SHORTDOMAIN\allan.jude
@dbirks
dbirks / prep-droplet.sh
Last active September 5, 2017 22:53
Prep droplet for use with Debian Sid
#!/bin/sh
# update to debian sid
cat >> 'EOF' < /etc/apt/sources.list
deb http://deb.debian.org/debian sid main
deb-src http://deb.debian.org/debian sid main
deb http://deb.debian.org/debian sid-updates main
@dbirks
dbirks / certbot-systemd-ubuntu.md
Last active November 2, 2023 08:49
Certbot renew with a systemd timer on Ubuntu

Ubuntu 16.04

/etc/systemd/system/certbot.service

[Unit]
Description=Let's Encrypt renewal

[Service]
Type=oneshot
ExecStart=/usr/bin/certbot renew --quiet --agree-tos
@dbirks
dbirks / adminer-apache-ubuntu-16.04.md
Last active April 15, 2024 08:51
Install Adminer with Apache on Ubuntu 16.04

Adminer is in the repos, so install it with:

apt install adminer

Copy the configuration to your available configs folder and enable it.

cp /etc/adminer/apache.conf /etc/apache2/conf-available/adminer.conf
@dbirks
dbirks / allow-access-libvirt-debian-9.md
Last active September 18, 2017 16:09
Allow users to access libvirt in Debian 9

Allow users to access libvirt in Debian 9 Stretch

In /etc/libvirt/libvirtd.conf, uncomment these two lines:

unix_sock_group = "libvirt"

unix_sock_rw_perms = "0770"

Then add your user to the libvirt and libvirt-qemu groups:

@dbirks
dbirks / set-mouse-cursor-size.md
Created June 21, 2017 15:31
Set mouse cursor size in Linux

I've found a couple places that need the change.

In ~/.Xresources, add something like Xcursor.size: 16. This fixed many issues for me, but chromium still had a large cursor when I hovered over it. A quick change to gsettings fixed it: gsettings set org.gnome.desktop.interface cursor-size 16.

@dbirks
dbirks / mount-bitlocker.md
Created June 21, 2017 12:22
Mount Bitlocker drive on Linux

Notes taken from the dislocker man page.

Make mount points

mkdir /mnt/ntfs
mkdir /mnt/clear

Mount the drive, and prompt for the password