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 | |
| _APP=$(ls -1 ~/Applications/cursor*.AppImage) | |
| _ARGS=() | |
| for arg in "$@"; do | |
| if [ -f "$arg" ] || [ -d "$arg" ]; then | |
| _ARGS+=($(realpath "$arg")) | |
| else | |
| _ARGS+=("$arg") |
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 | |
| # Output "BlackHole 16ch" and Input "BlackHole 16ch" | |
| go-chromecast transcode --command 'rec -c 1 -r 16000 -t flac -' --content-type audio/flac --first |
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 | |
| SCRIPT=$0 | |
| MEMORY=2048 | |
| NET_DRV=virtio | |
| NET_BRIDGE=vmbr0 | |
| STORAGE=local-lvm | |
| SCSI_DRV=virtio-scsi-pci | |
| IDE=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
| // ==UserScript== | |
| // @name Anime4K for VideoJS | |
| // @match *://*/* | |
| // @require https://raw.githubusercontent.com/bloc97/Anime4K/legacy/web/main.js | |
| // @grant GM_addStyle | |
| // @grant GM.listValues | |
| // ==/UserScript== | |
| //- The @grant directives are needed to restore the proper sandbox. | |
| function Anime4K(options) { |
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 | |
| import sys | |
| import tarfile | |
| import os | |
| import hashlib | |
| import tempfile | |
| if len(sys.argv) != 2: | |
| print('Usage: %s <OVA File>' % sys.argv[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
| #!/bin/bash | |
| set -e | |
| BASE_IMAGE="rancher/rancher:latest" | |
| REGISTRY="registry.hub.docker.com" | |
| IMAGE="$REGISTRY/$BASE_IMAGE" | |
| CID=$(docker ps | grep $IMAGE | awk '{print $1}') | |
| docker pull $IMAGE | |
| for im in $CID | |
| do |
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 frolvlad/alpine-oraclejdk8:full | |
| # Android SDK | |
| ENV ANDROID_HOME /opt/android-sdk-linux | |
| ENV SDK_TOOLS_VERSION 3859397 | |
| ENV API_LEVELS android-25 | |
| ENV BUILD_TOOLS_VERSIONS 25.0.2 |
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
| <?php | |
| // timeout (ms) | |
| define('TIMEOUT', 500); | |
| // sites ( 'ID' => [ 'name' => 'Display Name', 'url' => 'URL to check' ] ) | |
| define('SITE', [ | |
| 'GOOGLE' => [ | |
| 'name' => 'Google Inc.', | |
| 'url' => 'http://googl.com' | |
| ] | |
| ]); |
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 | |
| PARENT_URL="$1" | |
| urldecode(){ | |
| echo -e "$(sed 's/+/ /g;s/%\(..\)/\\x\1/g;')" | |
| } | |
| if [[ ! $PARENT_URL =~ ^.*\/$ ]]; then | |
| PARENT_URL="$PARENT_URL/" |
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 ddtick __asm__("nop\n\t") | |
| #if F_CPU == 20000000L | |
| #define dd5tick __asm__("nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t") | |
| #define delayOneUs() { dd5tick; dd5tick; dd5tick; dd5tick; } | |
| #endif | |
| #if F_CPU == 16000000L | |
| #define dd4tick __asm__("nop\n\t""nop\n\t""nop\n\t""nop\n\t") | |
| #define delayOneUs() { dd4tick; dd4tick; dd4tick; dd4tick; } | |
| #endif |
NewerOlder