スクリプトエディタでアプリケーションとして書き出すと便利
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
# syntax=docker/dockerfile:1 | |
FROM heartexlabs/label-studio:latest | |
# https://github.com/HumanSignal/label-studio/blob/develop/Dockerfile | |
# Litestream | |
USER root | |
ENV LITESTREAM_VERSION=v0.3.13 | |
RUN ARCH=$(case $(uname -m) in x86_64) echo 'amd64';; aarch64) echo 'arm64';; *) echo 'unsupported' && exit 1;; esac) \ | |
&& curl -sL "https://github.com/benbjohnson/litestream/releases/download/${LITESTREAM_VERSION}/litestream-${LITESTREAM_VERSION}-linux-${ARCH}.deb" \ |
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
package main | |
import ( | |
"flag" | |
"image" | |
"log" | |
"os" | |
_ "image/gif" | |
_ "image/jpeg" |
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
FROM alpine:3.12.0 | |
RUN mkdir /app | |
COPY print.sh /app | |
ENV PATH /app:$PATH | |
ENTRYPOINT ["print.sh"] |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"strconv" | |
"time" | |
) | |
type handler struct{} |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"time" | |
"github.com/gin-gonic/gin" | |
_ "github.com/go-sql-driver/mysql" | |
"github.com/jmoiron/sqlx" |
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/sh | |
cat <<EOS | mysql -uroot | |
CREATE DATABASE IF NOT EXISTS lock_test; | |
USE lock_test; | |
DROP TABLE IF EXISTS example; | |
CREATE TABLE example ( | |
id bigint unsigned NOT NULL, | |
name VARCHAR(10) NOT NULL, | |
count int NOT NULL, | |
updated_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
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
{ | |
"title": "mousekey(s+d)", | |
"rules": [ | |
{ | |
"description": "mousekey(s+d)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"simultaneous": [ |
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
{ | |
"dependencies": { | |
"puppeteer": "^1.5.0", | |
"speedline": "^1.3.3" | |
} | |
} |
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 2 columns, instead of 1 in line 4.
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
支払日,2017年06月05日 | |
会員氏名, 保登心愛 | |
カード名,ライフ・マスターカード | |
当月ご請求金額 合計(弁済金・分割支払金),78088 | |
当月ご請求金額 内訳 | |
回数指定払い,78088 | |
リボルビング, | |
カード保険料・カード年会費・ETC年会費, | |
カード再発行手数料, |
NewerOlder