Skip to content

Instantly share code, notes, and snippets.

View ejdyksen's full-sized avatar
😎

E.J. Dyksen ejdyksen

😎
View GitHub Profile
@ejdyksen
ejdyksen / start-vm.ps1
Created May 13, 2021 22:18
Start a VM from Azure Automation
## Get the Azure Automation Acount Information
$azConn = Get-AutomationConnection -Name 'AzureRunAsConnection'
## Add the automation account context to the session
Add-AzureRMAccount -ServicePrincipal -Tenant $azConn.TenantID -ApplicationId $azConn.ApplicationId -CertificateThumbprint $azConn.CertificateThumbprint
## Get the Azure VMs with tags matching the value '6am'
$azVMs = Get-AzureRMVM | Where-Object {$_.Name -eq 'VM_NAME_HERE'}
## Start VMs
@ejdyksen
ejdyksen / http-test.rb
Last active August 6, 2020 15:02
A simple script to test if a website is responding to HTTP requests
#!/usr/bin/env ruby
loop do
good = 0
bad = 0
for i in 1..100 do
result = system("curl -sS https://www.google.com/ > /dev/null 2> /dev/null")
if result then
@ejdyksen
ejdyksen / arq5.md
Last active April 12, 2016 14:04
mirror of Arq 5 blog post

Arq 5: Massively faster backup and restore

Today we released Arq 5, and we’re really excited about it! We implemented a bunch of the most-requested features, and we worked hard on improving the performance.

Big Price Change

With Arq 5 we’re switching from per-computer licenses to per-user licenses! Buy one license and use it on all your Macs and PCs!

Way Faster

Arq 5 is faster in several ways:

let notificationCenter = NSUserNotificationCenter.defaultUserNotificationCenter()
let notification = NSUserNotification()
notification.title = "Hello"
notification.informativeText = "This is a test"
notification.soundName = NSUserNotificationDefaultSoundName
notification.userInfo = ["key": "value"]
notificationCenter.deliverNotification(notification)
@ejdyksen
ejdyksen / gist:cb0fcffd6c4b71b6c470
Last active August 29, 2015 14:21
improv leadership email
From: E.J. Dyksen
Date: Fri 5/4/2007 2:53 AM
Subject: IMPROV leadership

I am sending this email to the entire team in the interest of transparency and openness in this matter. I think everyone should read it.

Hello soon-to-be-juniors of IMPROV!

@ejdyksen
ejdyksen / gist:53bfdaa72d9fba1644cc
Created January 20, 2015 21:24
Angular on S3 rewrite rules
<RoutingRules>
<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>403</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<HostName>example.com</HostName>
<ReplaceKeyPrefixWith>#/</ReplaceKeyPrefixWith>
<HttpRedirectCode>302</HttpRedirectCode>
</Redirect>
@ejdyksen
ejdyksen / gist:dabee71e633c5b7df6e1
Created January 13, 2015 18:45
openssl commands
# Generate a CSR and unencrypted private key
openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
@ejdyksen
ejdyksen / gist:c60e1aa1e4934ff32c36
Created October 28, 2014 19:19
LaunchAgent plist for Chrome Kiosk mode
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.mutuallyhuman.radiator</string>
<key>Program</key>
<string>/Applications/Google Chrome.app/Contents/MacOS/Google Chrome</string>
<key>ProgramArguments</key>
<array>
@ejdyksen
ejdyksen / patch-edid.md
Last active May 18, 2024 13:21
A script to fix EDID problems on external monitors in macOS

patch-edid.rb

A script to fix EDID problems on external monitors in macOS.

Instructions

  1. Connect only the problem display.

  2. Create this directory structure (if it doesn't already exist):

#!/usr/bin/env bash
uninstall() {
list=`gem list --no-versions`
for gem in $list; do
gem uninstall $gem -aIx
done
gem list
gem install bundler
}