Skip to content

Instantly share code, notes, and snippets.

View marsyang1's full-sized avatar

marsyang1 marsyang1

  • Taichung,Taiwan
View GitHub Profile
@marsyang1
marsyang1 / manager-web.xml
Last active September 7, 2016 03:11
tomcat config xml file
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
@daicham
daicham / .gitlab-ci.yml
Last active November 13, 2024 07:47
A sample of .gitlab-ci.yml for a gradle project
image: java:8-jdk
stages:
- build
- test
- deploy
before_script:
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug
@marsyang1
marsyang1 / SimpleHTTPServer-http-file-server
Last active June 14, 2017 05:16
SimpleHTTPServer-http-file-server-by-python
# http://stackoverflow.com/questions/12571804/lightweight-localhost-file-server-for-mac
cd path/to/files
python -mSimpleHTTPServer
or
python -mSimpleHTTPServer 2343
@muhammadghazali
muhammadghazali / What is server_names_hash_bucket_size.md
Last active March 11, 2025 03:56
Nginx: What is server_names_hash_bucket_size?

Background

While I'm learning how to use Nginx, I was instructed to update the server_names_hash_bucket_size (/etc/nginx/nginx.conf) value from 32 to 64, but I don't understand why should I increase the value to 64.

References

References that have been read so far:

/* using gradle */
// dependencies {
// compile 'com.akamai.edgegrid:edgegrid-signer-google-http-client:2.1.1'
// compile 'com.akamai.edgegrid:edgegrid-signer-core:2.1.1'
// compile 'com.akamai.edgegrid:edgegrid-signer-rest-assured:2.1.1'
// }
package akamai.purge;
import com.akamai.edgegrid.signer.ClientCredential;
@dsdstudio
dsdstudio / JQPrefixGeneratorStrategy.java
Last active May 20, 2021 00:48
jooq schema ddl jpa entity로 부터 뽑아내기
import org.jooq.codegen.DefaultGeneratorStrategy;
import org.jooq.meta.Definition;
public class JQPrefixGeneratorStrategy extends DefaultGeneratorStrategy {
@Override
public String getJavaClassName(Definition definition, Mode mode) {
return "JQ" + super.getJavaClassName(definition, mode);
}
}