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
| # OS: Ubuntu Server 20.04 aarch64 on Raspberry Pi 4B (4GB) | |
| # Standard command | |
| g++ -o benchmark main.cpp fun_neon.cpp fun.cpp | |
| # Scalar: 131.32 msec, 0.00 Mcycles | |
| # NEON: 72.39 msec, 0.00 Mcycles | |
| # Extended with march and mtune as shown here: | |
| # https://gist.github.com/fm4dd/c663217935dc17f0fc73c9c81b0aa845 | |
| g++ -o benchmark main.cpp fun_neon.cpp fun.cpp -mtune=cortex-a72 -mcpu=cortex-a72 |
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
| if [ ! -z "$(swapon | grep /dev/md)" ]; then swapoff $(swapon | grep /dev/md | awk '{ print $1 }'); 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
| #!/bin/bash | |
| ARGS=$1 | |
| PRIVATE_REGISTRY_HOST="https://<some-registry-url-here>:<port><without-tailing-slash>" | |
| IMAGE=$(echo $ARGS | awk -F\: '{ print $1 }') | |
| TAG=$(echo $ARGS | awk -F\: '{ print $2 }') | |
| TOP_REPOSITORY=$(echo $IMAGE | awk -F\/ '{ print $1 }') | |
| if [ -z "$TAG" ]; then | |
| TAG="latest" |
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/bash | |
| ARG=$@ | |
| TOP_FILE_SIZE=$(unzip -l $@ | head -n 4 | tail -n 1 | awk '{ print $1 }') | |
| if [ "$TOP_FILE_SIZE" -eq "0" ]; then | |
| echo "Top folder exists" | |
| unzip "$ARG" -d . | |
| else | |
| echo "Top folder not exists" | |
| FILENAME=$(echo $ARG | rev | cut -f 2- -d '.' | cut -f -1 -d '/' | rev) |
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
| from argparse import ArgumentParser | |
| import sys | |
| import glob | |
| import os | |
| import xml.etree.ElementTree as ET | |
| from functools import reduce | |
| def parse_annotation(xml_filename): | |
| objects = [] |
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
| from pathlib import Path | |
| import subprocess | |
| import os | |
| import stat | |
| if __name__ == '__main__': | |
| ''' Fix SDK filesystem | |
| author: JungIn An <[email protected]> | |
| CVMIPLab. |
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
| # | |
| # tap-up.sh | |
| # | |
| #!/bin/bash | |
| # TAP after-up script for OpenVPN TAP connection | |
| # LimeOrangePie, 2021/06/15 | |
| TAP=$1 | |
| PERM_ADDR=02:c1:93:29:f1:5d # it's randomly generated TAP device MAC! |
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/bash | |
| # | |
| # rc.local | |
| # | |
| # This script is executed at the end of each multiuser runlevel. | |
| # Make sure that the script will "exit 0" on success or any other | |
| # value on error. | |
| # | |
| # In order to enable or disable this script just change the execution | |
| # bits. |
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/bash | |
| # hevc_nvenc AVOptions (See https://gist.github.com/nico-lab/c2d192cbb793dfd241c1eafeb52a21c3 ) | |
| " | |
| -preset <int> E..V...... Set the encoding preset (from 0 to 18) (default p4) | |
| default 0 E..V...... | |
| slow 1 E..V...... hq 2 passes | |
| medium 2 E..V...... hq 1 pass | |
| fast 3 E..V...... hp 1 pass | |
| hp 4 E..V...... |
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
| let $__cP = nowPageNum; | |
| function $__gNp() { | |
| if ($__cP <= totalPageNum) { | |
| opener.PageMove2019AfterVersion($__cP); | |
| console.log(`${$__cP} 페이지를 수강완료했습니다.`); | |
| $__cP += 1; | |
| setTimeout(() => $__gNp(), 1000); | |
| } else { | |
| alert('강의 수강이 완료되었습니다!'); | |
| } |