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 | |
# | |
# このファイルは、様々なカラーコードを端末にエコーし、どんな色が | |
# 使用可能かを示します。 | |
# それぞれの行では、黒とグレイの背景の上に一つの色を示し、コードを中央に | |
# 表示しています。白、黒、グリーンの背景色で確認してあります。(2 Dec 98) | |
# | |
echo " On Light Gray: On Black:" | |
echo -e "\033[47m\033[1;37m White \033[0m\ | |
1;37m \ |
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/sh | |
openssl genpkey -algorithm RSA -out rsa_private.pem -pkeyopt rsa_keygen_bits:2048 | |
openssl rsa -in rsa_private.pem -pubout -out rsa_public.pem |
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/sh | |
sudo apt install -y libxinerama-dev libvulkan-dev libxcursor-dev libgtk-3-dev | |
git clone https://github.com/IntelRealSense/librealsense.git | |
cd librealsense/ | |
mkdir build | |
cd build | |
cmake .. | |
make |
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/sh | |
sudo apt install python3-pip | |
cd local/src/openpose | |
pip3 install -r requirements.txt | |
pip3 install pycocotools |
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/sh | |
/usr/local/bin/MP4Box -fps 30 -add ${1} ${2} |
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 rm /var/lib/ubuntu-release-upgrader/release-upgrade-available | |
sudo /usr/lib/ubuntu-release-upgrader/release-upgrade-motd |
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 | |
for file in `find . -name "*.h264"`; do | |
/usr/local/bin/MP4Box -v -fps 30 -add $file ${file/h264/mp4} | |
done |
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/sh | |
for id in `docker images | grep 'none' | awk '/[0-9a-f]+/{ print $3 }'` | |
do | |
docker rmi -f $id | |
echo "remove image ID:" $id | |
done | |
docker images |
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
#!/usr/bin/bash | |
for file in `find . -maxdepth 1 -type f`; do /usr/bin/sed -i s/\"SymbolName\":\".*\",\"T/\"T/g $file | |
done |