As configured in my dotfiles.
start new:
tmux
start new with session name:
# Note the order of arguments matters, otherwise you might get an `Unknown decoder 'copy'` | |
# start from 5 seconds, trim until 01:19 | |
# The output will have a duration of 01:14 = 74 seconds | |
ffmpeg -ss 00:05 -to 01:19 -i input.mp3 -acodec copy output.mp3 |
# python3 | |
from io import BytesIO | |
import IPython.display | |
import numpy as np | |
import PIL.Image | |
def showarray(a, fmt='png'): | |
a = np.uint8(a) | |
f = BytesIO() |
import pprint | |
import chainer | |
from chainercv.datasets import voc_detection_label_names | |
from chainercv.datasets import VOCDetectionDataset | |
from chainercv.extensions import DetectionVOCEvaluator | |
from chainercv.links import FasterRCNNVGG16 | |
eval_data = VOCDetectionDataset(split='test', year='2007', use_difficult=True, return_difficult=True) |
launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist | |
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist | |
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz | |
sudo pkgutil --forget org.macosforge.xquartz.pkg | |
# Log out and log in |
As configured in my dotfiles.
start new:
tmux
start new with session name: