This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
db: | |
image: mysql:5.7 | |
restart: always | |
volumes: | |
- ./data:/var/lib/mysql | |
ports: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function extractVendor($rootPath) | |
{ | |
$vendorArchive = "$rootPath/vendor.zip"; | |
$vendorDir = "$rootPath/vendor"; | |
if (!file_exists($vendorArchive)) { | |
return "$vendorArchive 文件不存在"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @(#)fontconfig.properties 1.5 04/01/28 | |
# | |
# Copyright 2003 Sun Microsystems, Inc. All rights reserved. | |
# | |
# Version | |
version=1 | |
# Component Font Mappings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
CURRENT_PATH=`pwd` | |
outdir="$CURRENT_PATH/out" | |
if [[ ! -d $outdir ]]; then | |
mkdir $outdir | |
fi | |
cd "$CURRENT_PATH/origin" | |
VIDEOS=`find . -name "*"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unmap <M-d> | |
unmap <C-f> | |
set disablesites=mail.google.com, reader.google.com, localhost, 127.0.0.1 | |
" vim: set ft=vim: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a new user. | |
adduser username | |
# Add a existing user to existing group. | |
# Add existing user tony to ftp supplementary/secondary group with usermod command using -a | |
# option ~ i.e. add the user to the supplemental group(s). Use only with -G option : | |
usermod -a -G ftp tony | |
# Create a new group. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- http://blog.itmem.com/?p=1062 | |
-- @author xueyu | |
-- @desc modify the prefix of table name in db | |
-- @example | |
-- | |
-- use DBNAME; | |
-- show tables; | |
-- source ~/change_prefix.sql; | |
-- | |
-- call change_prefix('old_', 'new_', 'DBNAME'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>这个手册是我转载的,准备用markdown整理下格式,感觉原来的html太乱了。</p> | |
<p>TOC是通过python的markdown生成的,<a href="http://www.freewisdom.org/projects/python-markdown/">http://www.freewisdom.org/projects/python-markdown/</a></p> | |
<pre><code>markdown awk.md > awk.html -x toc | |
</code></pre> | |
<p>以下全部内容是从 <a href="http://linuxfire.com.cn/~lily/awk.html">http://linuxfire.com.cn/~lily/awk.html</a> 转载的。</p> | |
<div id="awktoc"> | |
<div class="toc"> | |
<ul> | |
<li><a href="#awk">awk 手册</a><ul> |
NewerOlder