Skip to content

Instantly share code, notes, and snippets.

View dbirks's full-sized avatar
🦔

David Birks dbirks

🦔
View GitHub Profile
@dbirks
dbirks / room-calendar-ics.md
Last active May 30, 2017 17:29
How to export a room calendar as .ics

Get a shell on Exchange Online by following Microsoft's guide.

Publish the calendar for the room:

Set-MailboxCalendarFolder RoomNameHere:\Calendar -DetailLevel fulldetails -PublishEnabled $true -reseturl

Show the .html link, as well as the .ics link:

@dbirks
dbirks / set-OoO-template.md
Last active May 30, 2017 17:27
Set default Out of Office template

You can apply an Automatic Reply (Out of Office) message to a user with this powershell command:

Set-MailboxAutoReplyConfiguration testuser@domain.com –ExternalMessage External test message –InternalMessage Internal test message
@dbirks
dbirks / exchange-calendar-notes.md
Last active November 17, 2017 14:39
Exchange calendar notes

Share Exchange calendar

Allow Mike Roe to see Samantha's calendar:

Add-MailboxFolderPermission -Identity samantha@internet.com:\Calendar -User "Mike Roe" -AccessRights Reviewer

Common roles with their associated permissions that you can assign with AccessRights are:

@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

@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 / 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 / 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 / certbot-systemd-ubuntu.md
Last active May 15, 2024 06:51
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 / 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