Skip to content

Instantly share code, notes, and snippets.

View nacika-ins's full-sized avatar
:octocat:

nacika nacika-ins

:octocat:
View GitHub Profile
@fabiojose
fabiojose / devops-kpi-nifi-template.xml
Created August 1, 2018 16:50
DevOps KPI in Practice - Chapter 2
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.2">
<description></description>
<groupId>8ce97bbb-0162-1000-233e-5c8cc4c3a93f</groupId>
<name>DevOps KPI - Change Volume and Lead Time</name>
<snippet>
<connections>
<id>8a0d9e3d-1744-3d97-0000-000000000000</id>
<parentGroupId>33980602-0d29-3ae1-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
@masayokoo
masayokoo / SendSlackWIthPRLabeled.js
Created March 26, 2018 10:49
プルリクエストのラベル変更時にSlack通知するGoogleAppsScriptサンプル
function doPost(e) {
var url = 'https://hooks.slack.com/services/***************'; //slack webhook url
var channel = '***************'; //投稿先チャンネル名
var userName = 'github'; //BOTの名前
var json = e.postData.getDataAsString();
var payload = JSON.parse(json);
if (isSendAction(payload)) {
sendSlack(url, userName, channel, sendText(payload))
}
}
@tamx
tamx / gas_ss_atena.js
Last active January 2, 2020 16:42 — forked from githubmorley/gas_ss_atena.js
Googleスプレッドシート_宛名印刷
// 宛名印刷&住所録 テスト用データ
/*
1000001 ◯◯県◯◯市◯◯◯◯◯,1丁目2−3 ◯山 ◯太郎 様,◯子 様 2000001 ◯◯県◯◯市◯◯ 1丁目2−3,◯◯アパート◯◯◯号室 ◯村 ◯郎
1000002 ◯◯◯県◯◯◯市◯◯◯,2丁目3−4 ◯木 ◯男 様 2000001 ◯◯県◯◯市◯◯ 1丁目2−3,◯◯アパート◯◯◯号室 ◯村 ◯郎
1000003 ◯◯県◯◯◯郡◯◯◯◯,3丁目4−5 ◯村 ◯一  様,◯◯美 様 2000001 ◯◯県◯◯市◯◯ 1丁目2−3,◯◯アパート◯◯◯号室 ◯村 ◯郎
*/
// はがきのシートの設定
function setHagakiSheet(){
var margin_left = 1; // 左側の余白
@gakuzzzz
gakuzzzz / sbt-coursier.md
Last active June 27, 2019 03:23
あなたの sbt update を爆速にする sbt-coursier の紹介

あなたの sbt update を爆速にする sbt-coursier の紹介

この記事は Scala Advent Calendar 2016(Adventar) 10日目の記事です。

今は 12/10 の 625時です。年明けなんて無かった。いいね?

さてさて、sbt の依存jarのダウンロードが遅い、というのは割とよく言われる事であります。

で、この原因の一旦に、sbtが Apache Ivy を使っている、という点があります。

@btroncone
btroncone / rxjs_operators_by_example.md
Last active June 15, 2024 07:17
RxJS 5 Operators By Example
@sonots
sonots / out_forward.conf
Last active November 2, 2021 06:14
ログの欠損をできるだけ避ける Fluentd の out_forward 設定サンプル cf. http://blog.livedoor.jp/sonots/archives/44690980.html
<source>
type in_tail
# ...
tag raw.eventlog
</source>
<match raw.**>
type forward
log_level "#{ENV['DEBUG'] ? 'debug' : 'info'}"
@yunano
yunano / consul
Last active October 7, 2022 18:58
/etc/init.d/consul for CentOS 6
#!/bin/sh
#
# consul - this script manages the consul agent
#
# chkconfig: 345 95 05
# processname: consul
### BEGIN INIT INFO
# Provides: consul
# Required-Start: $local_fs $network
@doi-t
doi-t / setting_default_value.bash
Last active April 2, 2023 11:35
シェル変数のデフォルト値を設定する
#!/bin/bash
foo=${1:-hoge}
echo $foo #$1がなかったらhogeをデフォルト値としてfooに代入する
#var自身にデフォルト値としてhogeを代入としたいので以下のように書きたい
${var:=hoge} #このままでは、hogeが展開されてしまって、hogeなんてコマンドはないとシェル怒られる
echo "1:$var"
var=
@bugcloud
bugcloud / ViewController.h
Created August 19, 2013 13:36
[iOS] Facebook SDKのSSOボタンをローカライズする ref: http://qiita.com/bugcloud/items/a61a5a43fb8a601b850d
//
// ViewController.h
// FBSample
//
#import <UIKit/UIKit.h>
#import <FacebookSDK/FacebookSDK.h>
@interface ViewController : UIViewController <FBLoginViewDelegate>
@end
@Mortimerp9
Mortimerp9 / Retry.scala
Last active July 3, 2022 22:35
A retry implementation for Scala, a bit of explanations here: http://pierreandrews.net/posts/retry-fail-scala.html
import scala.concurrent.Await
import scala.concurrent.ExecutionContext
import scala.concurrent.Future
import scala.concurrent.blocking
import scala.concurrent.duration.Deadline
import scala.concurrent.duration.Duration
import scala.concurrent.duration.DurationInt
import scala.concurrent.duration.DurationLong
import scala.concurrent.future
import scala.concurrent.promise