Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am okinjp on github.
  • I am okin (https://keybase.io/okin) on keybase.
  • I have a public key ASDxLJsxY370sdhRpp14Pa4M2dof1oNyaNLTRLnA2WiL5Qo

To claim this, I am signing this object:

@okinjp
okinjp / 99-softether-bridge.yaml
Last active November 24, 2020 08:09
Setting to bridge Softether tap device and Ethernet device.
network:
version: 2
ethernets:
tap_local:
dhcp4: no
dhcp6: no
optional: yes
accept-ra: no
bridges:
br_local:
@okinjp
okinjp / youtube-dl_download_channel_with_screen.sh
Last active November 25, 2020 03:24
youtube-dlのチャンネルダウンロードをバックグラウンド実行できるスクリプト
#!/bin/bash
####
# CONFIG
# シェル(標準はbash)
SHELL=/bin/bash
# 半角英数などでチャンネル名が分かるもの。他のscreenで使っていないもの。
SNAME=kagura_nana
# 標準でmkvだがffmpegやavconvがあればmp4なども可能
FORMAT=mkv
# チャンネルのURL
@okinjp
okinjp / speedtest-cli-install-gist.md
Last active June 27, 2021 15:56
speedtest-cli-install.sh

What do this script on your computer

https://www.speedtest.net/apps/cli

How to use this script

For Ubuntu

curl -L "https://ip1.info/gist_dl/index.php?gist_id=299338de5b9a8a7d40a0f0c48a9f47a6&filename=speedtest-cli-install.sh" | sudo bash
#!/bin/bash
# ytdl-screen-core
VERSION=2021062806
if [ "$1" = "v" ];then
echo $VERSION
fi
if [ ! -d $DLDIR/$SNAME ]; then
mkdir -p $DLDIR/$SNAME
if [ $? = 0 ];then
echo 'cannot make DLDIR('$DLDIR/$SNAME'). '
@okinjp
okinjp / fr24feed.ini
Created June 22, 2022 12:23
PiAware+fr24feed
receiver="avr-tcp"
host="127.0.0.1:30002"
fr24key="<your-key>"
bs="no"
raw="no"
logmode="0"
logpath="/var/log/fr24feed"
mlat="no"
mlat-without-gps="no"
@okinjp
okinjp / install_docker_compose_x86_64.sh
Last active March 10, 2023 13:28
Setup docker and dcoker compose for Linux x86_64 (amd64)
#!bin/bash
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
# 不要
# DOCKER_COMPOSE_LATEST_URL=https://api.github.com/repos/docker/compose/releases/latest
# DL_URL=$(curl $DOCKER_COMPOSE_LATEST_URL -fsSL | \
# jq -Mr '.assets[].browser_download_url' | \
# grep -e docker-compose-linux-x86_64\$)
# sudo curl $DL_URL -fsSL -o /usr/local/lib/docker/cli-plugins/docker-compose
# sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose
function FindProxyForURL(url, host) {
if(dnsDomainIs(host, "jump1.nttcloud.net")||dnsDomainIs(host, "jump2.nttcloud.net")){
return "DIRECT";
} if(dnsDomainIs(host, "bastion01.nw6.jp")){
return "DIRECT";
}
if(dnsDomainIs(host, "nttcloud.net")){
return "SOCKS localhost:10081; DIRECT";
#!/bin/bash
####
# How to run this script on your computer.
# 1. Open your terminal
# 2. Copy
# "
# curl -Ls https://ip1.info/gist_dl/ubuntu-unixbench.php | bash
# "
# 3. Paste to your terminal
@okinjp
okinjp / podman.sh
Last active October 30, 2023 08:34
Shellscript for podman compose as podman-compose
#!/usr/bin/env bash
####
# Notice: This script must be in /usr/local/bin because the default "podman" is in /usr/bin and the shell prefers commands from /usr/local/bin over /usr/bin.
#
# How to install this script on your computer.
# 1. Open your terminal
# 2. Copy
# "
# sudo curl -Ls https://ip1.info/gist_dl/get_podman_sh.php -o /usr/local/bin/podman && sudo chmod +x /usr/local/bin/podman
# "