Skip to content

Instantly share code, notes, and snippets.

View LoganTann's full-sized avatar

Logan (ShinProg) LoganTann

View GitHub Profile
@Maistho
Maistho / Format-String-Ics.ps1
Created February 16, 2022 02:29
Powershell scripts to export calendar events from outlook to ics
function Format-String-Ics([string] $Body) {
$Str = $Body.Replace("`n", "\n").Replace("`r", "")
$Result = ""
[Int]$i = 0
while (($Str.Length - $i) -gt 60) {
$next = [math]::Min($i + 60, $Str.Length - 1)
$Result = "$Result$($Str.Substring($i, $next - $i))`r`n "
$i = $next
}
if ($i -eq 0) {
@nicolasramy
nicolasramy / wordpress.local
Created July 30, 2012 12:43
Simple Apache2 Virtual Host for WordPress
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName wordpress.local
# Indexes + Directory Root.
DirectoryIndex index.php index.html
DocumentRoot /var/www/workspace/wordpress/
# BEGIN WordPress
<IfModule mod_rewrite.c>