Skip to content

Instantly share code, notes, and snippets.

Avatar
🙆‍♀️
LGTM

Shin'ya Ueoka ueokande

🙆‍♀️
LGTM
View GitHub Profile
@ueokande
ueokande / sidecar-proxy-route-manager.sh
Last active Mar 2, 2021
Initialization script for AppMesh network by aws-appmesh-proxy-route-manager (v3-prod)
View sidecar-proxy-route-manager.sh
#!/bin/bash -e
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
@ueokande
ueokande / readme.txt
Last active Oct 31, 2019
Super autolink test (BUGZILLA-12345)
View readme.txt
See, also KUBERNETES-8523, KUBERNETES-8575 and ETCD-1137
@ueokande
ueokande / .bashrc
Created Oct 23, 2019
dot.separated.case <---> SNAKE_CASE
View .bashrc
# Converts between dot.separated.case and SNAKE_CASE (app caps).
# dot.separated.case to SNAKE_CASE
#
# echo 'mysql.user' | dots_to_snake
# => MYSQL_USER
#
alias prop_to_env="tr '[a-z].' '[A-Z]_'"
# SNAKE_CASE to dot.separated.case
@ueokande
ueokande / 20190808.txt
Last active Aug 8, 2019
OpenJDK docker tags
View 20190808.txt
10
10-ea
10-ea-32
10-ea-32-experimental
10-ea-32-jdk
10-ea-32-jdk-experimental
10-ea-32-jdk-slim
10-ea-32-jdk-slim-experimental
10-ea-32-jre
10-ea-32-jre-experimental
@ueokande
ueokande / script.sh
Created Jul 28, 2019
Create screenshot GIF
View script.sh
# Get window info
xwininfo
# Save screenshot animation as a PNG format into outputs
ffmpeg -video_size $widthx$height -framerate 24 -f x11grab -i :0.0+$x,$y outputs/%04d.png
# Generate GIF from PNG images
ffmpeg -y -i outputs/%04d.png -ss 2.3 -t 15 -filter_complex "[0:v]setpts=0.7*PTS,split [a][b];[a] palettegen [p];[b][p] paletteuse" screenshot.gif
View x.rs
struct Document<'a> {
fields: Vec<Box<Field + 'a>>,
}
impl<'a> Document<'a> {
fn new() -> Document<'a> {
Document { fields: Vec::new() }
}
fn add_field<T>(&mut self, field: T)
@ueokande
ueokande / main.go
Created Jun 6, 2019
Convert tab-splitted dictionaly to json
View main.go
package main
import (
"bufio"
"encoding/json"
"errors"
"fmt"
"os"
"strings"
)
@ueokande
ueokande / start.sh
Created Aug 29, 2018
Screencast on Linux
View start.sh
sudo modprobe v4l2loopback
ffmpeg -video_size 3840x2160 -framerate 30 -f x11grab -i :0.0 -f v4l2 /dev/video0
View main.go
package main
import (
"context"
"fmt"
"os"
"time"
"github.com/coreos/etcd/clientv3"
)