Skip to content

Instantly share code, notes, and snippets.

View alexpls's full-sized avatar

Alex Plescan alexpls

View GitHub Profile
@alexpls
alexpls / BorderedButton.swift
Last active August 7, 2016 09:59
UIButton subclass where borderRadius can be set for each corner individually
//
// BorderedButton.swift
//
// A UIButton subclass where you can choose which corners (top left, top right,
// bottom left, bottom right) of the button you want to have a borderRadius on.
// Either set these in code or in Interface Builder.
//
import UIKit
@alexpls
alexpls / filter_email_domains.sh
Created July 11, 2016 04:10
Filter a list of domains keeping only those which have a valid MX record
awk '{print $1}' domains.txt | while read domain; do if [[ $(dig +noall +answer mx $domain) ]]; then echo $domain; fi; done