Skip to content

Instantly share code, notes, and snippets.

Anthony Prestia prestia

Block or report user

Report or block prestia

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
@prestia
prestia / Configuring Raspberry Pi 3 B+ to Run Pi-Hole and Use DNS over HTTPS.md
Last active May 25, 2019
Configuring Raspberry Pi 3 B+ to Run Pi-Hole and Use DNS over HTTPS
View Configuring Raspberry Pi 3 B+ to Run Pi-Hole and Use DNS over HTTPS.md

Configure the Raspberry Pi

Install Raspbian Lite

  • Download Raspbian Lite
  • Download and install balenaEtcher
  • Flash the Raspbian Lite .img or .zip to an SD card using balenaEtcher

Optimize & configure the Raspberry Pi

  • Turn on the Raspberry Pi and wait for it to boot to the CLI
  • Enter sudo raspi-config
    • Select 1 Change User Password and create a unique password
    • Optional: Select 2 Network Options > N1 Hostname
@prestia
prestia / installing_MTGA_on_macOS_with_Retina_support.md
Last active May 23, 2020
Instructions on how to install Magic the Gathering Arena on macOS with Retina support.
View installing_MTGA_on_macOS_with_Retina_support.md

Installing MTGA on macOS using Wine, and making it look pretty!

The following instructions are heavily inspired by /u/uhohohdear. I modified uhohohdear's instructions and then added support for Retina/HiDPI displays and instructions about how to update MTGA.

IMPORTANT UPDATE: This will no longer work if you upgrade to macOS Catalina, as Wine and Wineskin are 32-bit. I'll update this Gist with 64-bit versions when they become available.

We're back in business!

It appears that the workarounds no longer work. A few people with Macs using Nvidia graphics cards are having success, but Macs with Intel and AMD GPUs crash regularly. At this time, the best way to play Arena on Mac is via Boot Camp or GeForce Now.

@prestia
prestia / installing_MTGO_on_macOS_with_Retina_support.md
Last active Dec 7, 2018
Instructions on how to install Magic the Gathering Online on macOS with Retina support.
View installing_MTGO_on_macOS_with_Retina_support.md

Installing MTGO on macOS using Wine, and making it look pretty!

The following instructions are heavily inspired by @pauleve. I modified his instructions and then added details about how to make a shortcut and support Retina/HiDPI displays.

Installing MTGO (and Wine and Homebrew and Xquartz and ...)

  1. Install Homebrew by opening Terminal and executing the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
View keybase.md

Keybase proof

I hereby claim:

  • I am prestia on github.
  • I am prestia (https://keybase.io/prestia) on keybase.
  • I have a public key whose fingerprint is FC8D 2221 1F85 A05D 4D1C 5508 339D BF9F DB19 2A00

To claim this, I am signing this object:

@prestia
prestia / gist:2360638
Created Apr 11, 2012
A simple, gem-free Ruby method for sending Gmail
View gist:2360638

After digging through countless posts trying to find a quick and easy way to send Gmail using Ruby, I eventually had to come up with something on my own. Most solutions online require installing Gmail-specific gems (unnecessary) or are based on versions of Ruby prior to 1.8.7, which added native TLS support to Net::SMTP. The following code is based on a great little method by Jerod Santo, but has been expanded to work with Gmail and Net::SMTP's native TLS support:

require 'net/smtp'

def send_gmail(to,opts={})
  opts[:server]     ||='smtp.gmail.com'
  opts[:port]       ||= 587
  opts[:from_dom]   ||='<your_domain>'
  opts[:login]      ||='<your_login>'
  opts[:pass]       ||='<your_password>'
You can’t perform that action at this time.