Skip to content

Instantly share code, notes, and snippets.

View prestia's full-sized avatar

Anthony Prestia prestia

View GitHub Profile
@prestia
prestia / DIM-wishlist.txt
Created August 23, 2024 21:19
DIM-wishlist
dimwishlist:item=2809120022&perks=3751917998,1476923955
dimwishlist:item=2809120022&perks=3751917995,3751917994
dimwishlist:item=2809120022&perks=3751917995,1476923955
dimwishlist:item=2809120022&perks=3751917996,3751917992
dimwishlist:item=2809120022&perks=3751917996,1476923956
dimwishlist:item=2809120022&perks=3751917997,1476923955
dimwishlist:item=2809120022&perks=1476923953,1476923956
dimwishlist:item=2809120022&perks=1476923953,1476923955
dimwishlist:item=2809120022&perks=1476923953,3751917994
dimwishlist:item=2809120022&perks=3751917997,1476923957
@prestia
prestia / Configuring Raspberry Pi 3 B+ to Run Pi-Hole and Use DNS over HTTPS.md
Last active July 7, 2024 18:52
Configuring Raspberry Pi 3 B+ to Run Pi-Hole and Use DNS over HTTPS

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 October 13, 2023 23:22
Instructions on how to install Magic the Gathering Arena on macOS with Retina support.

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 November 4, 2024 16:49
Instructions on how to install Magic the Gathering Online on macOS with Retina support.

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)"

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 April 11, 2012 17:14
A simple, gem-free Ruby method for sending Gmail

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] ||=''