A script to fix EDID problems on external monitors in macOS.
-
Connect only the problem display.
-
Create this directory structure (if it doesn't already exist):
## 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 |
#!/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 |
<RoutingRules> | |
<RoutingRule> | |
<Condition> | |
<HttpErrorCodeReturnedEquals>403</HttpErrorCodeReturnedEquals> | |
</Condition> | |
<Redirect> | |
<HostName>example.com</HostName> | |
<ReplaceKeyPrefixWith>#/</ReplaceKeyPrefixWith> | |
<HttpRedirectCode>302</HttpRedirectCode> | |
</Redirect> |
<div id="consolelog" style="font-family: 'Courier New', Courier, monospace; font-size: 12px; margin: 40px 30px 0px; background-color: white; border: 2px solid black; padding: 10px;"></div> | |
<input type="text" id="consoleinput" style="margin: 0px 30px; width: 400px;" onkeypress="return evalConsoleInput(event, this.value);" /> | |
<script type="text/javascript"> | |
var appendConsole = function(message, type) { | |
var color = "black"; | |
if (type === "error") { | |
color = "red"; | |
} else if (type === "debug") { |
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.
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!
Arq 5 is faster in several ways:
#!/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 | |
} |
require 'sinatra' | |
require 'openssl' | |
require 'json' | |
post '/' do | |
body = request.body.read | |
puts "Time : #{Time.now}" | |
puts "Actual Signature : #{request.env['HTTP_X_CHARGIFY_WEBHOOK_SIGNATURE_HMAC_SHA_256']}" | |
puts "Computed Signature: #{signature(body)}" |
I heard you like headless VMs on your Mac so I wrote this script for your launchd
s.
/Virtual Machines
Make sure your working tree is clean. Stash or commit anything you're working on.
❯ git status
# On branch features/enrollment_popout
nothing to commit, working directory clean
Fetch the latest changes from the server.