!nvidia-smi
# download web-ui
!git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui
# download controlnet as extensions
!git clone https://github.com/Mikubill/sd-webui-controlnet /content/stable-diffusion-webui/extensions/sd-webui-controlnet
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
| font-feature = -dlig | |
| font-size = 13 | |
| keybind = shift+enter=text:\n |
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 | |
| input=$(cat) | |
| EVENT=$(echo "$input" | jq -r '.hook_event_name') | |
| NOTIF_TYPE=$(echo "$input" | jq -r '.notification_type // empty') | |
| case "$EVENT" in | |
| "Stop") | |
| terminal-notifier -title "Claude Code" -message "処理が完了しました" -sound "Glass" | |
| ;; |
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
| const puppeteer = require("puppeteer"); | |
| const VIDEO_ID = "VIDEO_ID"; | |
| const YOUTUBE_LIVE_URL = `https://www.youtube.com/watch?v=${VIDEO_ID}`; | |
| const INTERVAL_MS = 2000; | |
| (async () => { | |
| console.log("🟢 Launching browser..."); | |
| const browser = await puppeteer.launch({ | |
| headless: 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
| const background = { | |
| store: { | |
| messages: [], | |
| }, | |
| interval: 1000, | |
| update: function () { | |
| console.log(this.store.messages) | |
| if (this.store.messages.length > 0) { | |
| chrome.action.setBadgeText({ text: this.store.messages.length.toString() }); |
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
| using System; | |
| using System.Text.RegularExpressions; | |
| using System.Collections.Generic; | |
| using Cysharp.Threading.Tasks; | |
| using UnityEngine; | |
| using UnityEngine.Networking; | |
| using System.Linq; | |
| using System.Threading; | |
| using System.Text; |
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
| using UnityEngine; | |
| public class Cat : MonoBehaviour | |
| { | |
| [SerializeField] GameObject left; | |
| [SerializeField] GameObject right; | |
| [SerializeField] float radius; | |
| [SerializeField] float velocity; | |
| [SerializeField] float theta; |
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
| const _addEventListener = addEventListener | |
| EventTarget.prototype.addEventListener = function (type, listener) { | |
| switch (type) { | |
| case 'visibilitychange': | |
| _addEventListener.apply(this, [ | |
| type, | |
| () => console.log(`${type} is disabled`) | |
| ]) | |
| break |
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
| ffmpeg -re -loop 1 -f image2 -i path/to/your/image.jpg -r 10 -f lavfi -i anullsrc -c:v libx264 -preset ultrafast -tune stillimage -pix_fmt yuv420p -b:v 100k -maxrate 100k -bufsize 200k -g 40 -c:a aac -ar 44100 -b:a 64k -f flv rtmp://a.rtmp.youtube.com/live2/your_stream_key |
NewerOlder