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
-- | |
-- Slack Verifying request filter | |
-- see: https://api.slack.com/docs/verifying-requests-from-slack | |
-- | |
-- Setup: | |
-- cd /path/to/lua | |
-- curl -sL https://github.com/jkeys089/lua-resty-hmac/archive/master.tar.gz | tar zxf - | |
-- | |
-- Usage: | |
-- ```nginx.conf |
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
% TF_LOG=trace terraform init | |
2019/05/21 16:17:56 [INFO] Terraform version: 0.12.0 rc1 | |
2019/05/21 16:17:56 [INFO] Go runtime version: go1.12.1 | |
2019/05/21 16:17:56 [INFO] CLI args: []string{"/Users/namutaka/local/bin/terraform", "init"} | |
2019/05/21 16:17:56 [DEBUG] Attempting to open CLI config file: /Users/namutaka/.terraformrc | |
2019/05/21 16:17:56 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/05/21 16:17:56 [INFO] CLI command args: []string{"init"} | |
2019/05/21 16:17:56 [TRACE] ModuleInstaller: installing child modules for . into .terraform/modules | |
Initializing modules... | |
2019/05/21 16:17:56 [DEBUG] Module installer: begin sample |
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/env ruby | |
# encoding: utf-8 | |
# | |
# SwaggerからURLとmethodの定義を取得して | |
# Elastic Serch(kibana)の検索条件式のJSONを出力します | |
# | |
require 'json' | |
require 'open-uri' |
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
#!/usr/bin/python | |
# -*- conding: utf-8 -*- | |
# | |
# copy ivy cache to local | |
# | |
import sys | |
import os | |
import re | |
import glob |
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
<beans> | |
<context:property-placeholder | |
location="classpath*:config-${my.env}.properties" | |
order="1" | |
ignore-unresolvable="true" | |
/> | |
</beans> |
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
// @file Gruntfile.js | |
// https://github.com/yeoman/generator-angular/blob/master/templates/common/root/_Gruntfile.js | |
module.exports = function (grunt) { | |
require('load-grunt-tasks')(grunt); | |
grunt.initConfig({ | |
// https://github.com/jmreidy/grunt-browserify/tree/master/examples/basic | |
browserify : { // タスク名. $ grunt browserify で実行できる |
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
import scalikejdbc._ | |
import java.util.Locale.{ ENGLISH => en } | |
object JDBCMetaDataTest extends Settings { | |
GlobalSettings.loggingSQLAndTime = new LoggingSQLAndTimeSettings( | |
enabled = true, | |
singleLineMode = true, | |
logLevel = 'DEBUG |
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/bash | |
# | |
# git-svn-diff originally by (http://mojodna.net/2009/02/24/my-work-git-workflow.html) | |
# modified by [email protected] | |
# modified by aconway@[redacted] - handle diffs that introduce new files | |
# | |
# Generate an SVN-compatible diff against the tip of the tracking branch | |
# Get the tracking branch (if we're on a branch) | |
TRACKING_BRANCH=`git svn info | grep URL | sed -e 's/.*\/branches\///'` |
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
function tm { | |
tmux has -t main 2> /dev/null | |
if [ "$?" -eq 0 ]; then | |
exec tmux attach -t main | |
else | |
exec tmux new -s main | |
fi | |
} |
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
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) | |
Public BorderColor As Integer, MarkerColor As Integer | |
' | |
' スライド全体の埋め込みグラフの色を1つ目のグラフに合わせて変更します | |
' MacではGraph編集機能の起動・終了のタイミングがあわず | |
' 上手く処理できないグラフが出ることがあります | |
' | |
Sub changeGraphColor() | |
BorderColor = -1 |
NewerOlder