- develop ブランチから新たに作成する機能のためのフィーチャーブランチを作成します。
git branch feature/new_feature develop
FROM --platform=linux/amd64 golang:1.22.4 | |
WORKDIR /app | |
COPY main.go ./ | |
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=off go build -o /go-hpa | |
EXPOSE 8080 | |
CMD ["/go-hpa"] |
DROP FUNCTION IF EXISTS fconsider_null_as_max; | |
DELIMITER // | |
CREATE FUNCTION fconsider_null_as_max (originalYear INT) | |
RETURNS INT | |
BEGIN | |
RETURN CASE | |
WHEN MAX(originalYear IS NULL) = 0 THEN MAX(originalYear) | |
ELSE originalYear | |
END; | |
END; // |
{ | |
"Ansi 1 Color" : { | |
"Green Component" : 0, | |
"Blue Component" : 0, | |
"Red Component" : 0.73333334922790527 | |
}, | |
"Tags" : [ | |
], | |
"Ansi 12 Color" : { |
package main | |
import ( | |
"fmt" | |
"sync" | |
) | |
var ( | |
doOnce sync.Once | |
doLock = &sync.Mutex{} |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export PATH=$PATH:/usr/local/go/bin:$HOME/.rvm/bin | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/euclid/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME |
// these are labels for the days of the week | |
cal_days_labels = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; | |
// these are human-readable month name labels, in order | |
cal_months_labels = ['January', 'February', 'March', 'April', | |
'May', 'June', 'July', 'August', 'September', | |
'October', 'November', 'December']; | |
// these are the days of the week for each month, in order | |
cal_days_in_month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.require_version ">= 1.6.0" | |
# K8s Master Nodes | |
M_NODES = ENV['M_NODES'] || 1 |
When setting these options consider the following:
sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
Download memcached source | |
./configure --enable-sasl --enable-sasl-pwdb | |
make | |
echo "user:password" > memcached-sasl-pwdb | |
export MEMCACHED_SASL_PWDB=memcached-sasl-pwdb | |
./memcached -S -vv | |
Don't need anything with sasl, saslpasswd2, or memcached.conf |