Skip to content

Instantly share code, notes, and snippets.

View yuryu's full-sized avatar

Emma Haruka Iwao yuryu

View GitHub Profile
@yuryu
yuryu / README.md
Last active August 7, 2019 06:03
GTUG Girls Bazel 事前準備

下記の事前準備を行っておくと当日スムーズです。わからないことがあれば当日一緒に解決しましょう!

Mac

Mac の方は Xcode をインストールしていなければインストールしましょう。(特にダウンロードに時間がかかるので、最低限ダウンロードはしておいていただけると助かります!)

ダウンロード: https://developer.apple.com/download/release/

インストールしたら、コマンドラインユーティリティを有効にします。下記のコマンドをターミナルで実行します。

$source = '.\Album\'
$destination = '.\Switch\'
Get-ChildItem $source -PipelineVariable year |
ForEach-Object { Get-ChildItem $year.Fullname -PipelineVariable month |
Where-Object { $month.PSIsContainer -eq $true } |
ForEach-Object {
$dest = Join-Path $destination "$year-$month"
New-Item -Path $dest -ItemType 'directory' -Force;
Get-ChildItem $month.FullName -Recurse |
@yuryu
yuryu / bigquery-per-github-repo.sql
Last active July 5, 2020 03:35
BQ Joshi Public datasets sample queries
SELECT repo_name, SUM(ARRAY_LENGTH(REGEXP_EXTRACT_ALL(content, r"(?i)bigquery"))) AS count
FROM bigquery-public-data.github_repos.contents
JOIN bigquery-public-data.github_repos.files
ON contents.id = files.id
GROUP BY repo_name
ORDER BY count DESC
LIMIT 100
@yuryu
yuryu / pre-warm-elb.pl
Last active June 2, 2021 21:52
ELB Warm-up tool
#!perl
use strict;
use warnings;
use Parallel::ForkManager;
use POSIX;
use String::Random;
my $c_start = 1;
my $c_end = 64;