- 中国电信 100M 宽带接入,局域网段
192.168.1/24
,光猫拥有管理员权限(后继需要); - NetGear WNDR3700v2 跑 OpenWRT 作为家庭主路由器, WAN IP
192.168.1.234
,局域网段10.10.10/24
; - PS4 无线连家庭网络(主),IP
10.10.10.3
;有线连光猫(备),IP192.168.1.3
。
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
allprojects{ | |
repositories { | |
def ALIYUN_REPOSITORY_URL = 'http://maven.aliyun.com/nexus/content/groups/public' | |
def ALIYUN_JCENTER_URL = 'http://maven.aliyun.com/nexus/content/repositories/jcenter' | |
all { ArtifactRepository repo -> | |
if(repo instanceof MavenArtifactRepository){ | |
def url = repo.url.toString() | |
if (url.startsWith('https://repo1.maven.org/maven2')) { | |
project.logger.lifecycle "Repository ${repo.url} replaced by $ALIYUN_REPOSITORY_URL." | |
remove repo |
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
buildscript { | |
ext { | |
springBootVersion = '2.0.0.RELEASE' | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | |
} |
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
Homebrew build logs for homebrew/science/r on Mac OS X 10.11 | |
Build date: 2016-06-02 09:23:32 |
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
# nvTagFinder - Brett Terpstra 2013 | |
# | |
# Creates a list of tags with links to their associated files in Markdown as a new nvALT note | |
# Requires "Store as plain text" to be enabled | |
# Configure default extension and the path to notes folder below | |
require 'uri' | |
require 'shellwords' |
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
@start /b powershell -ExecutionPolicy Unrestricted ./Set-ActiveWindow.ps1 |
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
[CmdletBinding()] | |
Param( | |
) | |
Add-Type @" | |
using System; | |
using System.Runtime.InteropServices; | |
public class Zotero { | |
[DllImport("user32.dll")] | |
[return: MarshalAs(UnmanagedType.Bool)] | |
public static extern bool SetForegroundWindow(IntPtr hWnd); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
class Bootstrap { | |
def grailsApplication | |
def messageSource | |
def init = { servletContext -> | |
for(dc in grailsApplication.domainClasses) { | |
dc.metaClass.getErrorStrings = { Locale locale = Locale.getDefault() -> | |
def stringsByField = [:].withDefault { [] } | |
for(fieldErrors in delegate.errors) { |