This file contains hidden or 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
autocmd FileType xml map <Space>f :%!python -c "from xml.dom import minidom; import sys, io; istr=io.TextIOWrapper(sys.stdin.buffer, encoding='utf-8'); print(minidom.parse(istr).toprettyxml(indent=' '))" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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/env python3 | |
# run like this: `find ~/Desktop/exporting/*.{mp4,mov} | python3 ~/bin/splitmovies.py` | |
import fileinput | |
import subprocess | |
import math | |
SPLIT_SECONDS = 180 |
This file contains hidden or 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 | |
# https://www.ibm.com/support/knowledgecenter/ja/SS7K4U_liberty/com.ibm.websphere.wlp.zseries.doc/ae/rwlp_loose_applications.html | |
# put its content into apps/application-name.war.xml | |
TMDIR=$(cd dirname $0; echo $PWD) | |
cat <<EOF | |
<?xml version="1.0" encoding="UTF-8"?> |
OlderNewer