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
#!/bin/bash | |
# init | |
## check OS | |
if [ "$(uname)" == 'Darwin' ]; then | |
OS='Mac' | |
elif [ "$(expr substr $(uname -s) 1 5)" == 'Linux' ]; then | |
OS='Linux' | |
elif [ "$(expr substr $(uname -s) 1 10)" == 'MINGW32_NT' ]; then |
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
#!/usr/bin/env bash | |
diskutil unMountDisk /dev/disk2 | |
diskutil eraseDisk HFS+ USBDISK /dev/disk2 | |
/Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/USBDISK --nointeraction --downloadassets |
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
SELECT date, | |
accounts.num_locked_users, | |
accounts.num_disabled_accounts, | |
accounts.num_delegated_admins, | |
accounts.num_super_admins, | |
accounts.num_suspended_users, | |
accounts.num_users | |
FROM api_project_name.dataset_name.usage | |
WHERE accounts.num_users IS NOT NULL | |
ORDER BY date ASC; |
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
{ | |
"$content-type": "application/x-www-form-urlencoded", | |
"$content": "*****************", | |
"$formdata": [ | |
{ | |
"key": "token", | |
"value": "*****************" | |
}, | |
{ | |
"key": "team_id", |
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
{ | |
"type": "object", | |
"properties": { | |
"$formdata": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"key": { | |
"type": "string" |
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
{ | |
"type": "object", | |
"properties": { | |
"$content-type": { | |
"type": "string" | |
}, | |
"$content": { | |
"type": "string" | |
}, | |
"$formdata": { |
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
{ | |
"type": "object", | |
"properties": { | |
"key": { | |
"type": "string" | |
}, | |
"value": { | |
"type": "string" | |
} | |
} |
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
#include <iostream> // cout, endl, cin | |
#include <string> // string, to_string, stoi | |
#include <vector> // vector | |
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound | |
#include <utility> // pair, make_pair | |
#include <tuple> // tuple, make_tuple | |
#include <cstdint> // int64_t, int*_t | |
#include <cstdio> // printf | |
#include <map> // map | |
#include <queue> // queue, priority_queue |
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
#!/usr/bin/env bash | |
# スクリプト自身のディレクトリを確実に格納 | |
SCRIPT_DIR=$(cd $(dirname $0); pwd) |
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
# 以下を実行するとローカル、リモートともに "initial commit" の1コミットだけの状態になる。 | |
# 独立したローカルブランチ tmp を作成 | |
git checkout --orphan tmp | |
# ローカルブランチ tmp に全体を add | |
git add . | |
# ローカルブランチ tmp に最初のコミット | |
git commit -m "initial commit" |
OlderNewer