Skip to content

Instantly share code, notes, and snippets.

Takashi MASUDA masutaka

Block or report user

Report or block masutaka

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
masutaka / test.js
Last active Aug 10, 2019 の通常カテゴリと、Archived カテゴリを行ったり来たりするブックマークレット
View test.js
if (/esa\.io\/#path=%2FArchived%2F/.test(location.href)) {
location.href = location.href.replace(/#path=%2FArchived%2F/, '#path=%2F');
} else if (/esa\.io\/#path=%2F/.test(location.href)) {
location.href = location.href.replace(/#path=%2F/, '#path=%2FArchived%2F');
masutaka / git-push.log
Created Apr 26, 2019
Heroku Buildpack research
View git-push.log
remote: Compressing source files... done.
remote: Building source:
remote: -----> Node.js app detected
remote: -----> Creating runtime environment
remote: NODE_ENV=production
View main.workflow
# For issues
workflow "issues" {
on = "issues"
resolves = ["Add an issue to project"]
action "Add an issue to project" {
uses = "docker://masutaka/github-actions-all-in-one-project"
secrets = ["GITHUB_TOKEN"]
masutaka / 00Overview
Created Feb 1, 2019
All in one GitHub Project using GitHub Actions
View 00Overview
├── main.workflow (01main.workflow)
└── project
├── Dockerfile
masutaka / 00Overview
Last active Jan 27, 2019
A sample files of GitHub Actions
View 00Overview
├── hadolint
│ ├── Dockerfile (hadolint_Dockerfile)
│   └── (
├── main.workflow (01main.workflow)
└── shellcheck
├── Dockerfile (shellcheck_Dockerfile)
└── (
masutaka / app.json
Last active Jan 27, 2019
A sample files of Heroku CI
View app.json
"environments": {
"test": {
"scripts": {
"test-setup": "./script/test-setup",
"test": "./script/test"
masutaka /
Last active Jan 19, 2019
How to get a pushover notification when your Heroku app is deployed
resource "heroku_app" "main" {
name = "masutaka-net"
region = "us"
stack = "container"
resource "heroku_formation" "web" {
app = "${}"
type = "web"
quantity = 1
masutaka / Dockerfile
Created Jan 19, 2019 on Heroku Docker
View Dockerfile
# (1) Perl の chalow コマンドで CHANGELOG メモを静的ファイルに変換
FROM perl:5.28.0 AS chalow
RUN cpanm CGI HTML::Template
COPY chalow/ chalow
COPY script/ script
COPY webroot/ webroot
RUN ./script/mkchalow
# (2) Honoka の css を取得
masutaka / deploy.log
Last active Dec 20, 2018
Heroku deployment log using heroku.yml with ruby buildpack
View deploy.log
=== Fetching app code
=== Building heroku (Dockerfile)
2018/12/20 12:47:33 need environment variables HEROKU_REGISTRY_HOST and HEROKU_API_TOKEN
Sending build context to Docker daemon 141.8kBStep 1/14 : FROM heroku/heroku:18-build as build
18-build: Pulling from heroku/heroku
32802c0cfa4d: Pulling fs layer
da1315cffa03: Pulling fs layer
fa83472a3562: Pulling fs layer
f85999a86bef: Pulling fs layer
305b24214bff: Pulling fs layer
masutaka / console.txt
Created Nov 12, 2018
/usr/include hides deep inside from macOS Mojave
View console.txt
$ gcc -v test.c
Apple LLVM version 10.0.0 (clang-1000.10.44.4)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
"/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.14.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name test.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-cpu penryn -dwarf-column-info -debugger-tuning=lldb -target-linker-version 409.12 -v -resource-dir /Library/Developer/CommandLineTools/usr/lib/clang/10.0.0 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -I/usr/local/include -fdebug-compilation-dir /Users/masutaka/Dropbox/test/c -ferror-limit 19 -fmessage-length 165 -stack-protector 1 -fblocks -fencode-extended-block-signature -fobjc-runtime=macosx-10.14.0 -fmax-type-align=16 -fdiagnost
You can’t perform that action at this time.