Skip to content

Instantly share code, notes, and snippets.

@greg-fischer
greg-fischer / O365 User Creation for GSuite Migration - Powershell.ps1
Last active July 4, 2020 18:06
O365 User Creation for GSuite Migration - Powershell
# Use While following this Doc: https://docs.microsoft.com/en-us/exchange/mailbox-migration/perform-g-suite-migration
# start powershell as administrator first!!!
# First time running Exchange stuff you need modules installed, do this:
# Install-Module MSOnline
# !! This is not a complete script, run in sections!!
@greg-fischer
greg-fischer / zol-fio-testing-kvm-guests.txt
Created March 22, 2016 20:16
ZFS on Linux - KVM Linux and Windows guests - testing fio and diskspd - guest volumes on raw image and ZVOL, host with 0.6.5.5 ZFS
---------------------------------------------------------------------------------------------------
All below are in Guest VM - Ubuntu 12.04 - ZFS 0.6.5.4
Host OS is CentOS 7 - ZFS 0.6.5.5
host file systems and ZVOLs all have compression lz4
Image files are raw and are sparse files.
Host ZFS ZVOLs (vdj and vdi below) are NOT sparse volumes
Guest KVM disks are configured with cache="writethrough"
/dev/vdj1 /tests/hdxfszvol = xfs over ZVOL HD (volblocksize 128k)
<?php
// Ab PHP 5.4 steht für json_encode die Konstante JSON_PRETTY_PRINT zur Verfügung.
echo json_encode($arr, JSON_PRETTY_PRINT);
// Für PHP <= 5.3 gibt es folgende Alternative (Quelle Zend):
/**
* Pretty-print JSON string
*
@greg-fischer
greg-fischer / gist:3d280388be8815454349
Created January 16, 2015 03:10
MyDirectRDP.desktop
[Desktop Entry]
## Use the remote-ssh-rdp-wrapper.sh script with this
## this one uses rdp direct
Version=x.y
Name=MuaRemote
Exec=/home/pi/remote-ssh-rdp-wrapper.sh rdpdirect mua.1stbyte.lan 3389
Terminal=true
Type=Application
@greg-fischer
greg-fischer / gist:edfdbed82b9610d08ef4
Created January 16, 2015 03:09
MyRemoteDesktop.desktop
[Desktop Entry]
## Use the remote-ssh-rdp-wrapper.sh script with this
Version=x.y
Name=MyRemote
Exec=/home/pi/remote-ssh-rdp-wrapper.sh username /home/pi/.ssh/id_rsa ssh.host.com 22 rdp-host.remote.local
Terminal=true
Type=Application
@greg-fischer
greg-fischer / gist:a785339b4cf6829910f1
Last active August 29, 2015 14:13
remote-ssh-rdp-wrapper.sh
#!/usr/bin/env bash
## Need 6 parms
# 1 sshuser
# 2 sshkeyfile
# 3 sshhost
# 4 sshport
# 5 rdphost
# 6 rdpport (optional, will def to 3389)