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 -eu | |
function spin() { | |
spinner="/|\\-/|\\-" | |
while : | |
do | |
for i in `seq 0 7` | |
do | |
echo -n "${spinner:$i:1}" | |
echo -en "\010" |
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
// This file was initially generated by Windows Terminal 1.0.1401.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
// Setting.json Documentation, see: https://github.com/microsoft/terminal/blob/master/doc/cascadia/SettingsSchema.md | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", |
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
sudo apt install -y \ | |
sed \ | |
make \ | |
binutils \ | |
build-essential \ | |
gcc \ | |
g++ \ | |
bash \ | |
patch \ | |
gzip \ |
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 -eu | |
cd $(dirname `realpath $0`) | |
ls ./*.mp4 | sed -e s/\.mp4//g | xargs -IMP4 ffmpeg -i MP4.mp4 -strict -2 MP4.webm | |
#ls ./*.mp4 | sed -e s/\.mp4//g | xargs -IMP4 ffmpeg -i MP4.mp4 -strict -2 -vcodec vp9 -acodec opus MP4.webm |
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 -eu | |
SEARCH := localhost 127.0.0.1 | |
is_local := $(words $(filter $(DOCKER_HOST), $(SEARCH))) | |
# 未指定 | |
ifeq ($(DOCKER_HOST),) | |
FOO="empty" | |
# ローカルではない | |
else ifeq ($(is_local),0) |
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 -eu | |
.DEFAULT_GOAL := help | |
.PHONY: help | |
STR = foo | |
$(eval TS := $(shell date +%Y%m%d%H%M%S%N)) | |
hoge: ## [hoge] make hoge STR=bar | |
@echo "STR: ${STR}" |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Buildroot 2019.02.4 Configuration | |
# | |
BR2_HAVE_DOT_CONFIG=y | |
BR2_HOST_GCC_AT_LEAST_4_5=y | |
BR2_HOST_GCC_AT_LEAST_4_6=y | |
BR2_HOST_GCC_AT_LEAST_4_7=y | |
BR2_HOST_GCC_AT_LEAST_4_8=y | |
BR2_HOST_GCC_AT_LEAST_4_9=y |
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
crontab -l | tee /var/tmp/.crontab && vim /var/tmp/.crontab && crontab /var/tmp/.crontab && rm -f /var/tmp/.crontab |
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 | |
ARGS=$@ | |
docker run --rm -i greymd/ojichat:latest ${ARGS} |
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 | |
ARGS=$@ | |
# match command only | |
if [ "git" == ${1} ]; then | |
expect -c " | |
set timeout 60 | |
spawn ${ARGS} |
NewerOlder