Skip to content

Instantly share code, notes, and snippets.

View shamaton's full-sized avatar
🍉
❤️

shamaton

🍉
❤️
View GitHub Profile
@shamaton
shamaton / echo_use_check.go
Last active September 16, 2016 01:48
[golang] Echo Use test
package main
import (
"fmt"
"github.com/labstack/echo"
"github.com/labstack/echo/engine/standard"
)
func main() {
@shamaton
shamaton / first_mail.txt
Last active October 27, 2016 01:51
mail from sourced
Hi xxxxxxxx,
I am a Developer Relations Engineer at source{d}, we are working on improving developer recruitment.
We have analyzed your open source contributions on Github and we think that you could be a good fit for the position as Backend Engineer at Zenly (https://zen.ly/).
Since we are actively helping them search for the right engineer to tackle their specific challenge, I thought I’d reach out.
Zenly is developing a location sharing app which is built on top of a powerful, precise and extremely battery-efficient continuous location technology.
Although they are very discreet, they have already generated several million downloads, and their active user base is growing by 7% each week since more than a year.
They reached a million users twice as fast as Twitter and are on a long-term mission to reach a billion. Their HQ is located in Paris, and they also have offices in SF.
They have recently raised €22M with the first investors of Twitter, Uber and Snapchat. TechCrunch news here: https://t.co/PLV
@shamaton
shamaton / reply_mail.txt
Created October 27, 2016 01:51
reply from sourced
Hello xxxxxxxx,
Thank you for your response.
I completely understand.
Let me wish you the best of luck.
Please don't hesitate to contact us when you are ready to look for new challenges.
redis:
image: redis:latest
restart: always
command: redis-server --appendonly yes
ports:
- '6379:6379'
volumes:
- /tmp
go_redis:
From shamaton/golang-centos6:latest
MAINTAINER shamaton
# golang library
RUN go get github.com/garyburd/redigo/redis
# copy test code
COPY test_redis.go .
@shamaton
shamaton / Dockerfile
Last active December 13, 2016 02:07
build MySQL5.6.27 on CentOS6
From centos:6
MAINTAINER shamaton
ARG version="5.6.27"
# update & install mysql
RUN yum -y update \
&& yum -y install http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm \
&& yum -y --enablerepo=mysql56-community install mysql-community-server-${version} \
@shamaton
shamaton / my.cnf
Created December 13, 2016 02:10
mysql5.6 config
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
# Recommended in standard MySQL setup
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
@shamaton
shamaton / start.sh
Created December 13, 2016 02:21
script for mysql
#!/bin/sh
ROOT_PASS=password
USER_NAME=test
USER_PASS=testpass
__initialize() {
echo "initialize..."
sleep 3
@shamaton
shamaton / dply_init.sh
Last active December 28, 2016 14:46
dply cloud init script
#!/bin/sh
export version="1.7.4"
yum -y update
yum -y install wget
cd /etc/yum.repos.d/
wget http://wing-repo.net/wing/6/EL6.wing.repo
yum -y --enablerepo=wing install git
@shamaton
shamaton / prometheus.yml
Created January 10, 2017 14:45
prometheus simple setting
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'codelab-monitor'