Skip to content

Instantly share code, notes, and snippets.

View hello-forsharing-todu's full-sized avatar

ForSharing ToDu hello-forsharing-todu

View GitHub Profile
@hello-forsharing-todu
hello-forsharing-todu / Fonts.swift
Created May 4, 2018 09:16 — forked from feighter09/Fonts.swift
Set global font for iOS app in one place
// MARK: - Swizzling
extension UIFont {
class var defaultFontFamily: String { return "Georgia" }
override public class func initialize()
{
if self == UIFont.self {
swizzleSystemFont()
}
}
@hello-forsharing-todu
hello-forsharing-todu / NPRP.sh
Last active March 7, 2018 06:47
Nginx, Php-fpm, Redis, Postgresql
#!/bin/bash
#================#
# For CentOS 7.0 #
#================#
######## CONFIG ##########
user="forsharing"
router="index.php"
#/!/bin/bash
# update system
yum update -y
# install bind-utils
sudo yum install bind-utils
# Apache
yum install nano wget curl vim git httpd -y