Skip to content

Instantly share code, notes, and snippets.

View zhangmx's full-sized avatar
🎯
Focusing

Flyman zhangmx

🎯
Focusing
View GitHub Profile
0 verbose cli /home/mingxing/.nvm/versions/node/v14.19.3/bin/node /home/mingxing/.nvm/versions/node/v14.19.3/bin/npm
1 info using npm@8.13.2
2 info using node@v14.19.3
3 timing npm:load:whichnode Completed in 1ms
4 timing config:load:defaults Completed in 2ms
5 timing config:load:file:/home/mingxing/.nvm/versions/node/v14.19.3/lib/node_modules/npm/npmrc Completed in 5ms
6 timing config:load:builtin Completed in 5ms
7 timing config:load:cli Completed in 6ms
8 timing config:load:env Completed in 1ms
9 timing config:load:project Completed in 4ms
@zhangmx
zhangmx / collect.ps1
Last active January 25, 2021 06:51
powershell collect all files content to single file
$all_project = @(
[PSCustomObject]@{
name = 'project1';
path = '\project1\folder';
}
[PSCustomObject]@{
name = 'project2';
path = '\project2\folder';
@zhangmx
zhangmx / init.gradle
Last active October 26, 2020 05:56
aliyun gradle init config
// copy from https://zhuanlan.zhihu.com/p/26019083
gradle.projectsLoaded {
rootProject.allprojects {
buildscript {
repositories {
def JCENTER_URL = 'https://maven.aliyun.com/repository/jcenter'
def GOOGLE_URL = 'https://maven.aliyun.com/repository/google'
def NEXUS_URL = 'http://maven.aliyun.com/nexus/content/repositories/jcenter'
all { ArtifactRepository repo ->
if (repo instanceof MavenArtifactRepository) {
@zhangmx
zhangmx / nginx.conf
Created October 16, 2017 07:12 — forked from arosh/nginx.conf
redmine on nginx + unicorn
# This is example contains the bare mininum to get nginx going with
# Unicorn or Rainbows! servers. Generally these configuration settings
# are applicable to other HTTP application servers (and not just Ruby
# ones), so if you have one working well for proxying another app
# server, feel free to continue using it.
#
# The only setting we feel strongly about is the fail_timeout=0
# directive in the "upstream" block. max_fails=0 also has the same
# effect as fail_timeout=0 for current versions of nginx and may be
# used in its place.
(function () {
//统计请求的地址
var iAnalyseBaseURL = 'www.google-analytics.com';
//脚本加载的地址
var iScriptBaseURL = 'www.google-analytics.com';
//Ad脚本地址
var iAdBaseURL = 'stats.g.doubleclick.net';
//Inpage 脚本地址
var iInpageURL = 'https://www.google.com/analytics/web/inpage/pub/inpage.js?';