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
# assumed that: | |
# * Kodi has been installed using brew | |
# * `Arial based` font has been selected in `Settings | Interface | Skin` | |
cd /Applications/Kodi.app/Contents/Resources/Kodi/media/Fonts | |
mv arial.ttf arial.orig.ttf | |
ln -s "/System/Library/Fonts/Supplemental/Arial Unicode.ttf" arial.ttf | |
# then restart Kodi |
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
diff --git recpt1/recpt1core.c recpt1/recpt1core.c | |
index 9412456..7e2a135 100644 | |
--- recpt1/recpt1core.c | |
+++ recpt1/recpt1core.c | |
@@ -171,7 +171,7 @@ calc_cn(int fd, int type, boolean use_bell) | |
do_bell(bell); | |
} | |
else { | |
- fprintf(stderr, "\rC/N = %fdB", CNR); | |
+ fprintf(stderr, "C/N = %fdB", CNR); |
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 | |
# | |
# Usage: replace-mirakc-arib your/image:name | |
# | |
# Assumed that this script is performed on arm32 hosts in order to solve the `std::out_of_range` issue. | |
# See https://twitter.com/masnagam/status/1279962595462529025. | |
cat <<EOF | docker build -t $1 - | |
FROM masnagam/mirakc:alpine | |
COPY --from=masnagam/mirakc:master-alpine /usr/local/bin/mirakc-arib /usr/local/bin/ |
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 | |
# Armbian linux-headers-rockchip64 for 4.4.xxx-rockchip64 has been broken. | |
# Several files required for building drivers are missing. | |
# | |
# * https://forum.armbian.com/topic/9540-linux-headers-rk3399-is-broken-for-building-out-of-tree-modules-with-fix/ | |
# * https://forum.armbian.com/topic/9602-linux-headers-41920-cubox-make-scripts-fails/ | |
# * https://forum.armbian.com/topic/873-solved-compiling-drivers-error-no-header-files-found/ | |
# Reboot before running this script if you have been just upgraded kernel. |
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 | |
set -eu | |
PROGNAME=$(basename $0) | |
BASEDIR=$(cd $(dirname $0); pwd) | |
COPY_BOOT=n | |
ISCSI_PORTAL= | |
ISCSI_TARGET= |
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 | |
set -eu | |
PROGNAME=$(basename $0) | |
BASEDIR=$(cd $(dirname $0); pwd) | |
DKMS=no | |
ACTION= | |
DEPS="curl gcc make python unzip" |
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 | |
set -eu | |
PROGNAME=$(basename $0) | |
BASEDIR=$(cd $(dirname $0); pwd) | |
BRANCH= | |
INSTALL_DIR=/usr/local/bin | |
CLEAN=no |
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
'use strict'; | |
const $ = require('jquery'); | |
const html2canvas = require('html2canvas'); | |
if (ARGS.length < 2) { | |
throw new Error('Selector is required'); | |
} | |
const selector = ARGS[0]; |
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
'use strict'; | |
function getDepth(element, depth) { | |
let maxDepth = depth; | |
for (let i = 0; i < element.children.length; ++i) { | |
let childDepth = getDepth(element.children[i], depth + 1); | |
if (maxDepth < childDepth) { | |
maxDepth = childDepth; | |
} | |
} |
NewerOlder