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
| /* | |
| * Double Jump System for VRChat (UdonSharp) | |
| * | |
| * Requirements: | |
| * - VRC SDK 3.10.3 or later | |
| * (Uses VRCPlayerApi.isVRCPlus) | |
| * | |
| * This code is released into the public domain. | |
| * You can use, modify, and distribute it freely without restriction. | |
| * No warranty is provided. |
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
| import cv2 | |
| import numpy as np | |
| import pyautogui | |
| import time | |
| def main(): | |
| s_filename = 'tabloid.png' | |
| # Env: Raspberry OS chromium browser full screen mode on 1024px x 600px (7inch) display | |
| # Trim tabloid area (include menu button) |
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
| --- | |
| meta: | |
| state_label: unity_quiz # クイズを一意に識別するための文字列、ほかのものと被らないようにつけること | |
| header: VRChat Unity Quiz # クイズのタイトル | |
| command: '/unityクイズ' # クイズを呼び出すコマンド | |
| quiz: | |
| - name: Q1 | |
| question: "\ | |
| 2020年12月現在、VRChatにアバターやワールドをアップロードするために\ |
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 | |
| sudo amazon-linux-extras install ansible2 |
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 -ue | |
| script_dir=$(cd $(dirname $0);pwd) | |
| # Code commit setting | |
| # インスタンスロールでコードコミットのR/W権限をつけていることが前提 | |
| sudo yum install git | |
| git config --global credential.helper '!aws codecommit credential-helper $@' | |
| git config --global credential.UseHttpPath 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
| #!/bin/bash | |
| set -ue | |
| NUM_LOOPS=1000 | |
| use_cut(){ | |
| for i in $(seq 1 $NUM_LOOPS) | |
| do | |
| line="i-ec56a9f5 vol-07d00601 servername" | |
| instance_id=`echo $line | cut -d' ' -f1` | |
| volome_id=`echo $line | cut -d' ' -f2` |
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 -ue | |
| node_id=1 | |
| lock_key=lock | |
| ttl=10 | |
| redis_db=0 | |
| redis_host=localhost | |
| redis_port=6379 |
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
| sechiro$ brew install redis | |
| ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/redis-2.8.19.mavericks.bottle.tar.gz | |
| ######################################################################## 100.0% | |
| ==> Pouring redis-2.8.19.mavericks.bottle.tar.gz | |
| ==> Caveats | |
| To have launchd start redis at login: | |
| ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents | |
| Then to load redis now: | |
| launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist | |
| Or, if you don't want/need launchctl, you can just run: |
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 | |
| if [ `uname` = "Darwin" ]; then | |
| start_time=`date -u -v-30M "+%Y-%m-%dT%H:%M:%SZ"` | |
| else | |
| start_time=`date -u -d "30 minute ago" "+%Y-%m-%dT%H:%M:%SZ"` | |
| fi | |
| end_time=`date -u "+%Y-%m-%dT%H:%M:%SZ"` | |
| period=300 | |
| statistics=Average |
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 -ue | |
| prefix=`basename $0` | |
| timestamp_file=/tmp/$prefix.timestamp | |
| cache_file=/tmp/$prefix.cache | |
| timestamp=`date '+%s'` | |
| cache_time=300 | |
| if [ "${1:-''}" = "nocache" ];then |
NewerOlder