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
| #!/usr/bin/env python3 | |
| from os import write | |
| import xml.etree.ElementTree as ET | |
| import sys | |
| class paragraph(): | |
| def __init__(self, t, d, text): | |
| self.t = int(t if t else 0) |
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
| #!/usr/bin/env bash | |
| if [[ $# -eq 3 ]]; then | |
| echo ffmpeg -i "${1}" -i "${2}" -c:a copy -c:v copy "${3}" | |
| ffmpeg -i "${1}" -i "${2}" -c:a copy -c:v copy "${3}" | |
| else | |
| echo "unexpected number or arguments, 3 is expected."; | |
| fi |
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
| // ==UserScript== | |
| // @name Sketch Measure Helper | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match file://*/* | |
| // @grant none | |
| // @run-at document-idle | |
| // ==/UserScript== |
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
| define dump_qhash | |
| set $i = 0 | |
| set $qhash = 0 | |
| while $i < $argc | |
| eval "set $qhash = $arg%d", $i | |
| set $qhash_data = $qhash.d | |
| set $qhash_endl = $qhash.e | |
| set $buckets = $qhash_data.buckets | |
| set $numBuckets = $qhash_data.numBuckets | |
| set $nodeSize = $qhash_data.nodeSize |
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
| #~/.config/ibus/rime/build/ibus_rime.yaml | |
| style: | |
| horizontal: true |
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
| sudo ifconfig eth0 down | |
| sudo ifconfig eth0 hw ether MAC_ADDR | |
| sudo ifconfig eth0 up |
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
| function subst-template () { | |
| (echo "cat << EOF"; cat "${1}"; echo "EOF") | bash | |
| } |
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
| function load-img () { | |
| sudo id; | |
| IMAGE_NAME="$1"; | |
| IMAGE_FILE="${IMAGE_NAME}.img"; | |
| if [[ -f "${IMAGE_FILE}" ]]; then | |
| loop_dev=$(sudo losetup --show -f "${IMAGE_FILE}"); | |
| echo "loop_dev = ${loop_dev}"; |
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
| for f in *;do echo "$(gdb -q --core $f -batch |grep Core|sed "s#Core#$f#g")";done |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag] | |
| "ThisPCPolicy"="Hide" | |
NewerOlder