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
// upload a docker image to a remote SSH server without publishing it on a docker registry | |
docker save <IMAGE_NAME> | gzip -c | ssh <REMOTE_SERVER> "gunzip -c | docker load" |
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 | |
CONTAINERS=$(docker ps --all --quiet --filter status=exited) | |
if [ -z "$CONTAINERS" ] | |
then | |
echo Nothing to cleanup | |
else | |
echo Removing containers: | |
docker rm $CONTAINERS | |
fi |
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
# Add English language subtitle to MP4 file | |
MP4Box -add <Subtitle>.srt:hdlr=sbtl:lang=eng <MovieWithoutSubtitle>.mp4 -out <MovieWithSubtitle>.mp4 | |
# Add English language subtitle with 1sec time delay to MP4 file | |
MP4Box -add <Subtitle>.srt:hdlr=sbtl:lang=eng:delay=1000 <MovieWithoutSubtitle>.mp4 -out <MovieWithSubtitle>.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
ROOT = ${PWD} | |
DIST_DIR = ${ROOT}/dist | |
BUILD_DIR = ${ROOT}/build2 | |
HOST_DIR = ${BUILD_DIR}/host | |
TVOS_DIR = ${BUILD_DIR}/tvos | |
TVSIMULATOR_DIR = ${BUILD_DIR}/tvsimulator | |
LIBS = libicui18n.a libicuio.a libicuuc.a | |
TVOS_LIBS = $(addprefix ${TVOS_DIR}/,${LIBS}) | |
TVSIMULATOR_LIBS = $(addprefix ${TVSIMULATOR_DIR}/,${LIBS}) | |
DIST_LIBS = $(addprefix ${DIST_DIR}/,${LIBS}) |
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
import lldb | |
def __lldb_init_module(debugger, internal_dict): | |
debugger.HandleCommand('type summary add QString -F lldb_qt.QString_summary') | |
debugger.HandleCommand('type summary add QUuid -F lldb_qt.QUuid_summary') | |
print 'lldb_qt.py has been loaded and is ready for use.' | |
def QString_summary(value, internal_dict): | |
name = value.GetName() | |
deref = '->' if value.TypeIsPointerType() else '.' |
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 | |
# 初期設定 | |
WORK=$HOME/Builds/GCC | |
PREFIX=$HOME/mingw | |
export PATH="$HOME/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" | |
# ソースコードのダウンロード | |
if [ ! -d $WORK/src ] ; then | |
mkdir -p $WORK/src |
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
<?xml version="1.0"?> | |
<!-- | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:gpx="http://www.topografix.com/GPX/1/0"> | |
--> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:gpx="http://www.topografix.com/GPX/1/1"> | |
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" /> | |
<xsl:template match="/"> | |
<kml xmlns="http://www.opengis.net/kml/2.2" |