This file was generated automatically based on this two sources:
- /etc/nginx/mime.types
- http://www.garykessler.net/library/file_sigs.html
This is a JSON object by following structure:
[string ext] : {
signs: [sign]
This file was generated automatically based on this two sources:
This is a JSON object by following structure:
[string ext] : {
signs: [sign]
{ | |
"USD": { | |
"symbol": "$", | |
"name": "US Dollar", | |
"symbol_native": "$", | |
"decimal_digits": 2, | |
"rounding": 0, | |
"code": "USD", | |
"name_plural": "US dollars" | |
}, |
#!/usr/bin/env ts-node | |
import * as fs from 'fs' | |
import * as path from 'path' | |
import { promisify } from 'util' | |
import { SourceMapConsumer } from 'source-map' | |
const writeFile = promisify(fs.writeFile) | |
const mapFile = process.argv[2] |
#!/bin/sh | |
# | |
# a simple way to parse shell script arguments | |
# | |
# please edit and use to your hearts content | |
# | |
ENVIRONMENT="dev" |
#!/usr/bin/env bash | |
set -e | |
pcre_version="8.42" | |
zlib_version="1.2.11" | |
openssl_version="1.0.2n" | |
nginx_version="1.12.2" | |
source_path=/usr/local/src | |
yum -y install gcc automake autoconf libtool make | |
yum install gcc gcc-c++ |
function capitalize (word) { | |
return (word || '').replace(/^([a-z])/, w => w.toUpperCase()); | |
} |
/** | |
* 根据字符串、字符串数组创建map | |
* @param {String|Array<String>} items | |
* @param {String|RegExp} delimiter 默认值/\s+/ | |
* @param {Object} [map] | |
* @returns {{*}} | |
*/ | |
var makeMap = function (items, delimiter, map) { | |
items = items || []; | |
if (typeof items === 'string') { |
# Node | |
npm-debug.log | |
node_modules | |
# Mac | |
.DS_Store | |
# Windows | |
Thumbs.db |
#!/bin/bash | |
git config --global alias.a add | |
git config --global alias.b branch | |
git config --global alias.br branch | |
git config --global alias.c commit | |
git config --global alias.ci commit | |
git config --global alias.d diff | |
git config --global alias.f fetch | |
git config --global alias.g grep | |
git config --global alias.l log |
var updateUrlQuery = function(url, key, value) { | |
var query = key + '=' + value; | |
var search = ''; | |
var hash = ''; | |
var hashIndex = url.indexOf('#'); | |
if (hashIndex > -1) { | |
hash = url.substring(hashIndex); | |
url = url.substring(0, hashIndex); | |
} |