See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
if [ ! -f .env ] | |
then | |
export $(cat .env | xargs) | |
fi |
SELECT user, pid, client_addr, waiting, query, query_start, NOW() - query_start AS elapsed | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' | |
-- AND EXTRACT(EPOCH FROM (NOW() - query_start)) > 1 | |
ORDER BY elapsed DESC; |
postgres: | |
image: postgres:9.4 | |
volumes: | |
- ./init.sql:/docker-entrypoint-initdb.d/init.sql |
You can either set up the S3 variables for all projects or per individual project if you prefer.
In this example, I will do it for all projects. Just open the build.gradle
file and add the following code.
allprojects {
project.ext.AWS_S3_BUCKET = "YOUR BUCKET NAME"
<?php | |
/* | |
参考自: | |
http://darklaunch.com/2010/09/01/http-status-codes-in-php-http-header-response-code-function | |
http://snipplr.com/view/68099/ | |
*/ | |
function HTTPStatus($num) { | |
$http = array( |
package com.brs; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
/** | |
* Simple class that we use to trigger a log statement. | |
*/ | |
public class ExampleThatLogs { |
# encoding: UTF-8 | |
module ApplicationHelper | |
# ... | |
def concat_content_tag(*args, &blk) | |
concat content_tag(*args, &blk) | |
end | |
end |