This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "github.com/miguelmota/go-ethereum-hdwallet" | |
| "github.com/tyler-smith/go-bip39" | |
| "log" | |
| ) | |
| func main() { |
This file contains hidden or 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
| #!/bin/sh | |
| # 测试环境使用的启动脚本 | |
| # 增加了 jacoco/remote debug,JVM 参数资源最小化 | |
| FILE_NAME=app.jar | |
| cd `dirname $0` | |
| LOG_FILE=./logs/run.out | |
| if [ ! -f "$LOG_FILE" ]; then | |
| touch $LOG_FILE |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
This file contains hidden or 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
| /** | |
| * Copied from stackoverflow. But I couldn't find the origin link anymore :(. | |
| */ | |
| public class MailSender { | |
| /** | |
| * Send email using GMail SMTP server. | |
| * | |
| * @param username GMail username | |
| * @param password GMail password | |
| * @param recipientEmail TO recipient |
This file contains hidden or 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
| --- | |
| layout: nil | |
| --- | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
| <url> | |
| <loc>{{ site.url }}/</loc> | |
| <lastmod>{{ site.time | date_to_xmlschema }}</lastmod> | |
| <changefreq>weekly</changefreq> | |
| <priority>1.0</priority> |
This file contains hidden or 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
| *.gch | |
| *.dot | |
| *.out | |
| core | |
| *.swp |
This file contains hidden or 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
| # config/initializers/will_paginate.rb | |
| require 'will_paginate/view_helpers/link_renderer' | |
| require 'will_paginate/view_helpers/action_view' | |
| module WillPaginate | |
| module ActionView | |
| def will_paginate(collection = nil, options = {}) | |
| options[:renderer] ||= BootstrapLinkRenderer | |
| super.try :html_safe | |
| end |
This file contains hidden or 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
| case class Endpoint(provisionId: String, brandId: String, | |
| imei: String, locale: String, model: String, msisdn: String, | |
| os: String, osVersion: String, vendor: String, version: String) { | |
| private val PROVISIONING_ID = "PROVISIONING_ID" | |
| private val BRAND_ID = "BRAND_ID" | |
| private val IMEI = "IMEI" | |
| private val LOCALE = "LOCALE" | |
| private val MODEL = "MODEL" | |
| private val MSISDN = "MSISDN" |

