- 1/19 LOCAL Community Summit 登壇
- 1/26 PHPカンファレンス仙台 登壇
- 2/2 PostgreSQLアンカンファレンス 主催
- 2/14-15 デブサミコンテンツ委員
- 2/16 Laravelカンファレンス 登壇
- https://soudai.hatenablog.com/entry/2019/02/11/023715
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 | |
$list = explode("\n", `yum list installed`); | |
foreach ($list as $key => $val) { | |
if (empty($val)) { | |
continue; | |
} | |
$base_list = array_filter(explode(" ", $val)); | |
$json_base[$key]['name'] = array_shift($base_list); |
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
127.0.0.1 | |
ServerVersion: Apache/2.4.27 (Amazon) PHP/5.6.31 | |
ServerMPM: prefork | |
Server Built: Sep 24 2017 23:19:50 | |
CurrentTime: Tuesday, 28-Nov-2017 08:25:28 UTC | |
RestartTime: Monday, 27-Nov-2017 03:20:01 UTC | |
ParentServerConfigGeneration: 6 | |
ParentServerMPMGeneration: 5 | |
ServerUptimeSeconds: 104726 | |
ServerUptime: 1 day 5 hours 5 minutes 26 seconds |
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
var scriptProp = PropertiesService.getScriptProperties().getProperties(); | |
var trelloKey = scriptProp.TRELLO_API_KEY; | |
var trelloToken = scriptProp.TRELLO_TOKEN; | |
var username = scriptProp.TRELLO_USERNAME; | |
var trelloBaseURL = scriptProp.TRELLO_BASE_URL; | |
function addTrelloCard(){ | |
var values = getSpreadsheet(); | |
// リクエスト用のURL文字列を作成 |
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 | |
/** | |
* [plugin.checks.check_memory] | |
* command = "php /usr/local/bin/check_memory.php -c 90" | |
* max_check_attempts = 5 | |
* check_interval = 1 | |
* action = { command = "/etc/init.d/httpd graceful" } | |
* memo = "httpdによってmemoryが圧迫されたらhttpdをgracefulする" | |
**/ |
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 | |
$time = time(); | |
$value = rand(5, 50); | |
$value1 = rand(5, 50); | |
$value2 = rand(5, 50); | |
$value3 = rand(5, 50); | |
$metric_name = 'random.count'; | |
echo "{$metric_name}\t{$value}\t{$time}\n"; | |
echo "{$metric_name}_1\t{$value1}\t{$time}\n"; |
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
var scriptProp = PropertiesService.getScriptProperties().getProperties(); | |
var mackerelApiKey = scriptProp.MACKEREL_API_KEY; | |
var serviceName = scriptProp.MACKEREL_SERVICE_NAME; | |
var BaseURL = scriptProp.BASE_URL; | |
function main() { | |
var mackerelPostRes = postMackerelServiceMetric(mackerelApiKey, serviceName, getEndpointJSON()); | |
} | |
function postMackerelServiceMetric(apiKey, serviceName, payload) { |
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
javascript: (async function() { | |
if (!window.location.href.match(/tonamel\.com\/competition\/[a-zA-Z0-9]{5}$/)) { | |
alert('bookmarkletを起動したページには対応していません。大会トップを指定してください'); | |
return; | |
} | |
var title = document.querySelector('#__layout>div.wrapper>div.competition-detail>div.competition-detail>div.main>div.detail>div.m-competition-card>div.linkable-area>div.m-link>div.name>span').textContent; | |
var org = document.querySelector('#__layout>div>div.competition-detail>div.competition-detail>div.main>div.detail>div.a-box.m-competition-card.a-box--no-radius.a-box--white>div.inner>div.a-flex.organization.a-flex--flex-start.a-flex--row>a>div>span').textContent; | |
var entryStartDate = document.querySelector('#__layout>div>div.competition-detail>div.competition-detail>div.main>div.entry>div>div>div>div>ol>li:nth-child(1)>dl>dd:nth-child(4)>span:nth-child(1)').textContent; | |
entryStartDate = entryStartDate.replace(/(\d{4})\/(\d{2})\/(\d{2})\(.\) (\d{2}:\d{2}) 〜/, '$1$2$3T$4:00+0900'); | |
var entryE |
OlderNewer