Skip to content

Instantly share code, notes, and snippets.

E.J. Dyksen ejdyksen

Block or report user

Report or block ejdyksen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ejdyksen
ejdyksen / patch-edid.md
Last active Jan 31, 2020
A script to fix EDID problems on external monitors in Mac OS. Source: http://embdev.net/topic/284710
View patch-edid.md

patch-edid.rb

A script to fix EDID problems on external monitors in Mac OS.

  1. Connect the problem monitor.

  2. Download this script into your /System/Library/Displays/Overrides (note: this file is only writeable by root, so some commands require sudo).

@ejdyksen
ejdyksen / gist:53bfdaa72d9fba1644cc
Created Jan 20, 2015
Angular on S3 rewrite rules
View gist:53bfdaa72d9fba1644cc
<RoutingRules>
<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>403</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<HostName>example.com</HostName>
<ReplaceKeyPrefixWith>#/</ReplaceKeyPrefixWith>
<HttpRedirectCode>302</HttpRedirectCode>
</Redirect>
@ejdyksen
ejdyksen / mini-console.html
Last active Sep 18, 2017
A tool for getting at a JS console when there is none available.
View mini-console.html
<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") {
@ejdyksen
ejdyksen / arq5.md
Last active Apr 12, 2016
mirror of Arq 5 blog post
View arq5.md

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:

View keybase.md

Keybase proof

I hereby claim:

  • I am ejdyksen on github.
  • I am ejdyksen (https://keybase.io/ejdyksen) on keybase.
  • I have a public key ASAuSMOLBQLnZjGp4LwuXXPoWG2V_ZqBfFuXQo0dgYAghAo

To claim this, I am signing this object:

View uninstall_gems.sh
#!/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
}
View chargify-webhook-reflector.rb
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)}"
View README.markdown

Run VMware Fusion headless at Mac OS system startup.

I heard you like headless VMs on your Mac so I wrote this script for your launchds.

Assumptions

  • Tested on Mac OS X 10.6.4 with VMware Fusion 2.0.5 and 3.1.1.
  • A interactive user automatically logs into the system at startup. I had some issues trying to get this running without an interactive user logged in. I automatically log in for Airfoil Speakers anyway.
  • Your virtual machines live in /Virtual Machines
@ejdyksen
ejdyksen / forcepush.md
Created Sep 13, 2013
Recovering from a forced push
View forcepush.md

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.

@ejdyksen
ejdyksen / gist:5513145
Created May 3, 2013
Auto-increment build numbers in Xcode
View gist:5513145
# Get the path to the already-built info.plist
buildPlist="${TARGET_BUILD_DIR}/${INFOPLIST_PATH}"
# Construct our version string (in this case, date+git commit)
date=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
rev=`git rev-parse --short HEAD`
buildString="$date-$rev"
# Replace CFBundleVersion with our string
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildString" "$buildPlist"
You can’t perform that action at this time.