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
timedatectl set-timezone Asia/Tokyo | |
yum install -y wget epel-release | |
wget https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/ius-release-1.0-15.ius.centos7.noarch.rpm | |
rpm -Uvh ius-release-1.0-15.ius.centos7.noarch.rpm | |
yum install -y git2u --enablerepo=ius | |
git version | |
sleep 3 |
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 | |
mkdir ~/.zsh_completions | |
# git completion | |
curl -L https://raw.github.com/git/git/master/contrib/completion/git-completion.bash > ~/.zsh_completions/git-completion.bash | |
curl -L https://raw.github.com/git/git/master/contrib/completion/git-completion.zsh > ~/.zsh_completions/_git | |
# docker completion | |
curl -L https://raw.githubusercontent.com/docker/docker/master/contrib/completion/zsh/_docker > ~/.zsh_completions/_docker |
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 | |
# make directory | |
mkdir ~/.bash_completions | |
# git | |
curl -L https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash > ~/.bash_completions/git | |
# docker | |
curl -L https://raw.githubusercontent.com/docker/docker/master/contrib/completion/bash/docker > ~/.bash_completions/docker |
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
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEditor; | |
using UnityEngine; | |
namespace EditorExtension { | |
public class EditorExtensionSample : EditorWindow { |
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
using System; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.Profiling; | |
[InitializeOnLoad] | |
public class DrawAssetSizeInProjectView | |
{ | |
static int redZone = 1024 * 1024 * 5; // 5MB |
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
# 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' |
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 | |
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 |
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 | |
ROOT_PASS=password | |
USER_NAME=test | |
USER_PASS=testpass | |
__initialize() { | |
echo "initialize..." | |
sleep 3 |
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
[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 |
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
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} \ |
NewerOlder