- AI Shift
- 社内SQL研修のために作った資料を公開します - (2021/06/21)
- Classi
- 当たり前にリリースしていく ~ 新卒研修編 - (2021/05/20)
- リモートワークのための質問力向上研修を実施しました - (2021/12/07)
- CyberZ
- 良いコードとは何か - エンジニア新卒研修 スライド公開 - (2021/04/27)
- DMM.com(旧DMM.comラボ含む)
- DMM.comラボ16新卒エンジニア研修 - (2016/08/24)
This file contains 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/bash | |
_PIDS=(`pgrep httpd`) | |
_PROC_COUNT=${#_PIDS[@]} | |
_MEMORY_TOTAL=`free | grep Mem | awk '{print $2;};'` | |
#_MEMORY_FREE=`vmstat -a | awk 'NR==3{print $4+$5;};'` | |
_RSS_TOTAL=0 | |
_SHARED_TOTAL=0 |
This file contains 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
<?php | |
/** | |
* trim(全角スペース含む)し、改行を取り除く | |
* | |
* @param string $str | |
* @return string | |
*/ | |
function trim(string $str): string | |
{ | |
$str = str_replace(["\r\n", "\r", "\n"], '', $str); |
This file contains 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/bash | |
set -e | |
# https://github.com/rhysd/tweet-app/blob/master/Casks/update.sh | |
if [ ! -d '.git' ]; then | |
echo 'This script must be run at root of the repository' 2>&1 | |
exit 1 | |
fi |
This file contains 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
(function (factory) { | |
/* global define */ | |
if (typeof define === 'function' && define.amd) { | |
// AMD. Register as an anonymous module. | |
define(['jquery'], factory); | |
} else if (typeof module === 'object' && module.exports) { | |
// Node/CommonJS | |
module.exports = factory(require('jquery')); | |
} else { | |
// Browser globals |
This file contains 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/bash | |
set -eu | |
users() { | |
# user password | |
cat << EOF | |
foo foofoo | |
bar barbar | |
baz bazbaz | |
EOF |
mariaDB のアンインストール
# yum -y remove mariadb-libs
MySQL のリポジトリを追加
# yum -y install http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
インストール
# yum install mysql-community-server
This file contains 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
12 4 * * * /path/to/command 2>&1 | logger -t <NAME> -p local0.info |
This file contains 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
.PHONY: help foo | |
foo: ## description | |
@ehco foo | |
help: | |
@grep -E '^[a-zA-Z_0-9-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |
NewerOlder