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
# This is a workflow to update version of of an application | |
name: Version-release | |
on: | |
# Run this workflow only if PR to master branch is closed | |
pull_request: | |
types: [closed] | |
branches: | |
- master | |
# Also enable manual trigger workflow run |
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
#user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid /run/nginx.pid; | |
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 onOpen() { | |
var menuExecution =[ | |
{name: "json整形", functionName: "indentJson"}, | |
{name: "当シートAPIをcurlで実行", functionName: "automateCurrentAPICall"}, | |
{name: "全てAPIをcurlで実行", functionName: "automateAllAPICalls"}, | |
]; | |
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
package main | |
import ( | |
"bytes" | |
"math/rand" | |
"strings" | |
) | |
func main() { | |
// This main function does nothing since we only want to test benchmarking |
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
package main | |
import ( | |
"encoding/csv" | |
"fmt" | |
"log" | |
"math/rand" | |
"os" | |
"strconv" | |
"sync" |
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
Vagrant.configure("2") do |config| | |
# Define vm box | |
config.vm.box = "gbailey/amzn2" | |
# Constraint vm box version | |
config.vm.box_version = "20210127.0.0" | |
# Copy public key from host to guest | |
# Prerequisite: need to have id_rsa.pub in host machine | |
# Use ssh-keygen to create keys in path e.g. Windows C:\Users\<USER_NAME>\.ssh\id_rsa/pub | |
config.vm.provision "file", source: "~/.ssh/id_rsa.pub", destination: "~/.ssh/id_rsa.pub" |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
BOX_IMAGE = "gbailey/amzn2" |
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 onOpen(e) { | |
// Get current month | |
var now = new Date(); | |
var currentMonthSheet = now.getFullYear() + "年" + (now.getMonth() + 1) + "月"; | |
// Jump to current month's sheet | |
var sheetToSet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(currentMonthSheet); | |
SpreadsheetApp.setActiveSheet(sheetToSet); | |
// Jump to current date's cell by iterating dates in column range |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
BOX_IMAGE = "gbailey/amzn2" |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
@script = <<SCRIPT | |
# Install php and extensions | |
# PHPと拡張をインストールする | |
sudo amazon-linux-extras install php7.4 | |
sudo ln -s /usr/bin/php /usr/local/bin/php | |