Skip to content

Instantly share code, notes, and snippets.

View OrkhanAlikhanov's full-sized avatar
☝️
Be mindful of your Creator! We all will die soon...

Orkhan Alikhanov OrkhanAlikhanov

☝️
Be mindful of your Creator! We all will die soon...
View GitHub Profile
@zacwest
zacwest / ios-font-sizes.swift
Last active May 4, 2024 13:41
iOS default font sizes - also available on https://www.iosfontsizes.com
let styles: [UIFont.TextStyle] = [
// iOS 17
.extraLargeTitle, .extraLargeTitle2,
// iOS 11
.largeTitle,
// iOS 9
.title1, .title2, .title3, .callout,
// iOS 7
.headline, .subheadline, .body, .footnote, .caption1, .caption2,
]
@jgeewax
jgeewax / configure-mailgun
Created December 7, 2015 17:59
Script to configure Postfix for Mailgun
#!/bin/bash
# Configuration for the script
POSTFIX_CONFIG=/etc/postfix/main.cf
POSTFIX_SASL=/etc/postfix/sasl_passwd
function confirm () {
read -r -p "${1:-Are you sure? [Y/n]} " response
if [[ $response == "" || $response == "y" || $response == "Y" ]]; then
echo 0;