Homebrew is a package management system for OS X. You can read more about it here, or simply run
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"to install it.
| import asyncio | |
| import functools | |
| import json | |
| import secrets | |
| import aiohttp | |
| from concurrent.futures import ALL_COMPLETED | |
| #!/bin/sh | |
| SITEMAP=$1 | |
| if [ "$SITEMAP" = "" ]; then | |
| echo "Usage: $0 http://domain.com/sitemap.xml" | |
| exit 1 | |
| fi | |
| XML=`wget -O - --quiet $SITEMAP` |
| package main | |
| import ( | |
| "database/sql" | |
| "gopkg.in/gorp.v1" | |
| "log" | |
| "strconv" | |
| "github.com/gin-gonic/gin" | |
| _ "github.com/go-sql-driver/mysql" |
| 1. | |
| # vim /etc/sysctl.conf | |
| fs.file-max = 999999 | |
| net.ipv4.tcp_rmem = 4096 4096 16777216 | |
| net.ipv4.tcp_wmem = 4096 4096 16777216 | |
| net.ipv4.ip_local_port_range = 1024 65535 | |
| 2. | |
| # vim /etc/security/limits.conf | |
| root - nofile 999999 |
| #user nobody; | |
| worker_processes 4; | |
| #error_log logs/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| #pid logs/nginx.pid; |
| if _, err := os.Stat("/path/to/whatever"); os.IsNotExist(err) { | |
| // path/to/whatever does not exist | |
| } | |
| if _, err := os.Stat("/path/to/whatever"); !os.IsNotExist(err) { | |
| // path/to/whatever exists | |
| } |
| import ( | |
| "crypto/md5" | |
| "encoding/hex" | |
| ) | |
| func GetMD5Hash(text string) string { | |
| hasher := md5.New() | |
| hasher.Write([]byte(text)) | |
| return hex.EncodeToString(hasher.Sum(nil)) | |
| } |
| #!/bin/bash | |
| VERSION="1.17" | |
| if [ ! -f wget-${VERSION}.tar.xz ]; then | |
| wget http://ftp.gnu.org/gnu/wget/wget-${VERSION}.tar.xz | |
| fi | |
| rm -rf wget-${VERSION} build | |
| tar xJf wget-${VERSION}.tar.xz |
Homebrew is a package management system for OS X. You can read more about it here, or simply run
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"to install it.
| { fontWeight: '100' }, // Thin | |
| { fontWeight: '200' }, // Ultra Light | |
| { fontWeight: '300' }, // Light | |
| { fontWeight: '400' }, // Regular | |
| { fontWeight: '500' }, // Medium | |
| { fontWeight: '600' }, // Semibold | |
| { fontWeight: '700' }, // Bold | |
| { fontWeight: '800' }, // Heavy | |
| { fontWeight: '900' }, // Black |