Skip to content

Instantly share code, notes, and snippets.

🙆
LGTM

Shin'ya Ueoka ueokande

🙆
LGTM
Block or report user

Report or block ueokande

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
@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"
)
View gist:224b28e111595428930e27a1709f9d14
xwininfo
ffmpeg -video_size ${w}x${height} -framerate 12 -f x11grab -i :0.0+${x},${y} output/%04d.png
You can’t perform that action at this time.