Skip to content

Instantly share code, notes, and snippets.

@harryxu
harryxu / fontconfig.properties
Created March 23, 2013 06:51
Java字体配置文件,优化了等宽字体与中文。
# @(#)fontconfig.properties 1.5 04/01/28
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
#
# Version
version=1
# Component Font Mappings
#!/usr/bin/env bash
apigen \
--source ./vendor/laravel \
--source ./vendor/symfony \
--source ./vendor/monolog \
--exclude "*/tests/*" \
--exclude "*/Tests/*" \
--destination ./ldocs/ --title "Laravel Framework 4.1"
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to make opened Markdown files always be soft wrapped:
#
# path = require 'path'
#
@harryxu
harryxu / vunzip.php
Created November 14, 2018 10:42
解压vendor.zip
<?php
function extractVendor($rootPath)
{
$vendorArchive = "$rootPath/vendor.zip";
$vendorDir = "$rootPath/vendor";
if (!file_exists($vendorArchive)) {
return "$vendorArchive 文件不存在";
}
@harryxu
harryxu / docker-compose.yml
Last active February 14, 2019 12:14
docker mysql
version: '3.1'
services:
db:
image: mysql:5.7
restart: always
volumes:
- ./data:/var/lib/mysql
ports: