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
# frozen_string_literal: true | |
source "https://rubygems.org" | |
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
gem 'slack-ruby-client' | |
gem '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
# tap repositories and their packages | |
tap 'homebrew/core' | |
brew 'adwaita-icon-theme' | |
brew 'amazon-ecs-cli' | |
brew 'atk' | |
brew 'aws-shell' | |
brew 'awscli' | |
brew 'bash' |
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
rm -f /var/log/lastlog-* | |
rm -f /var/log/maillog-* | |
rm -f /var/log/messages-* | |
rm -f /var/log/secure-* | |
rm -f /var/log/spooler-* | |
rm -f /var/log/tallylog-* | |
rm -f /var/log/wtmp-* | |
rm -f /var/log/yum.log-* | |
rm -f /var/log/lastlog-* | |
rm -f /var/log/maillog-* |
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
git log f017fcb..ca1ecb4 --pretty=format:"%s" --no-merges |
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
namespace :db do | |
namespace :reset do | |
desc 'db record reset' | |
task timeleap: :environment do | |
Rake::Task['db:reset:truncates'].invoke | |
Rake::Task['db:seed'].invoke | |
end | |
desc 'db record truncate' | |
task truncates: :environment do |
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 | |
yum update | |
sudo yum install java-1.8.0-openjdk | |
sudo mkdir /opt/metabase | |
wget http://downloads.metabase.com/v0.27.1/metabase.jar -O /opt/metabase/metabase.jar | |
# start => nohup java -jar /opt/metabase/metabase.jar & |
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
# sortable uuid | |
gem 'ulid', require: false |
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
# frozen_string_literal: true | |
# reference https://www.omise.co/ja/api-webhooks | |
module Service | |
extend ActiveSupport::Concern | |
class_methods do | |
def perform(*args) | |
new(*args).perform | |
end |
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 | |
res=$(speedtest --server 14623 --simple) | |
USERNAME="webhookbot" | |
CHANNEL="#speedtest" | |
ICON=":bike:" | |
WEBHOOK_URL="https://hooks.slack.com/services/ID" | |
author="author name" |
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 run() { | |
try { | |
var newSheetName = Utilities.formatDate(new Date(), 'Asia/Tokyo', 'yyyyMM') | |
var sheet = SpreadsheetApp.getActive().getSheetByName('template') | |
SpreadsheetApp.setActiveSheet(sheet) | |
SpreadsheetApp.getActiveSpreadsheet().duplicateActiveSheet().setName(newSheetName) | |
var sheet = SpreadsheetApp.getActive().getSheetByName(newSheetName) |
NewerOlder