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
# 受け取り側 (MMD Tools 2.5.1) | |
with open("/tmp/panel.txt") as f: | |
for name in f.readlines(): | |
C.active_object.pose.bones[name[:-1]].bone.select = True |
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
OpenCV が新しいと発生する模様 | |
Could not load the Qt platform plugin "xcb" in 〜 | |
※このエラーは DISPLAY 変数がおかしいときも出る模様 | |
OpenCV 内蔵版のプラグインを読もうとして落ちる? | |
黙って古いバージョンを入れると直ります。 | |
$ pip install opencv-python\<4.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
#!/bin/sh | |
ffmpeg -f x11grab -video_size 1366x768 -r 30 -show_region 1 -i ${DISPLAY}+0,167 -f pulse -i default -vcodec h264_nvenc output.mp4 |
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 f in uma*.mp4; do echo file $f; done | ffmpeg -protocol_whitelist file,pipe -f concat -safe 0 -r 60 -i - -vcodec h264_nvenc test_.mp4 | |
mv progress.mp4 progress.mp4.old | |
ffmpeg -i test_.mp4 -stream_loop -1 -i 苦行.wav -vcodec copy -shortest progress.mp4 | |
rm test_.mp4 |
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/env python | |
""" | |
生み出してしまった史上最悪レベルの畳み込みです。 | |
できるだけスカラーを扱うようにするという制約の下で作成しています。 | |
高速化の真逆のことをやっています。 | |
""" | |
import numpy as np | |
try: | |
import tensorflow.compat.v1 as tf | |
except ImportError: |
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
Section "Device" | |
Identifier "Device0" | |
Driver "nvidia" | |
VendorName "NVIDIA Corporation" | |
BoardName "GeForce GTX 750 Ti" | |
BusID "PCI:3:0:0" | |
EndSection | |
Section "Device" | |
Identifier "Device1" |
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 | |
# 戻す時は unmask で | |
systemctl --user mask tracker-{extract,miner-apps,miner-fs,store,writeback} |
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
FROM moveit/moveit:melodic-release | |
ENV NVIDIA_VISIBLE_DEVICES ${NVIDIA_VISIBLE_DEVICES:-all} | |
ENV NVIDIA_DRIVER_CAPABILITIES ${NVIDIA_DRIVER_CAPABILITIES:+$NVIDIA_DRIVER_CAPABILITIES,}graphics |
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 f in *.png; do convert ${f} eps2:${f}.eps; done |