arch4edu
リポジトリを追加する。paru -Syu rocm-hip-sdk rocm-opencl-sdk python-pytorch-rocm python-torchvision-rocm python-numpy yq
virtualenv --system-site-packages sdenv
source sdenv/bin/activate
git clone https://github.com/CompVis/stable-diffusion.git && cd stable-diffusion
yq '.dependencies[].pip?[]' environment.yaml | sed 's/"//g' | xargs -L1 pip install
https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt
からチェックポイントファイルを入手して、models/ldm/stable-diffusion-v1/model.ckpt
に置くpython scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms
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 去黑白滤镜 | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description 国内常见视频, 购物网站去黑白滤镜 | |
// @author carlos | |
// @match *://*.jd.com/* | |
// @match *://*.bilibili.com/* | |
// @match *://*.taobao.com/* | |
// @match *://*.youku.com/* |
This guide is deprecated! Please take a look at the defacto un-official SteamOS project HoloISO.
HoloISO is more straightforward to install and is being actively worked on.
This is an unofficial short guide on running Steam Decks new UI on Manjaro. I am kind of a linux noob, so forgive me if I get a few things wrong in this guide. Also, I have not fully tested everything so there may be some weird issues that I have overlooked.
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
do shell script "defaults write com.apple.screensaver askForPassword 1; defaults write com.apple.screensaver askForPasswordDelay 0" | |
repeat until (do shell script "defaults read com.apple.screensaver askForPassword") = "1" and (do shell script "defaults read com.apple.screensaver askForPasswordDelay") = "0" | |
delay 0.5 | |
end repeat | |
tell application "ScreenSaverEngine" to activate | |
if application "iTunes" is running then | |
tell application "iTunes" |
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
-- You need to create a Keychain item whose name matches what you use in place | |
-- of "[keychain_item_name]" on line #7 (and whose password is identical to your | |
-- user account's password). | |
tell application "System Events" | |
if ((get name of every process) contains "ScreenSaverEngine") then | |
set pw to (do shell script "security find-generic-password -l \"[keychain_item_name]\" -w") | |
tell application "ScreenSaverEngine" to quit | |
delay 0.5 | |
keystroke pw |
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
$ su | |
$ echo "net.core.default_qdisc=fq" >> /etc/sysctl.d/bbr.conf | |
$ echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.d/bbr.conf | |
$ sysctl -p | |
$ sysctl net.ipv4.tcp_available_congestion_control | |
$ sysctl net.ipv4.tcp_congestion_control | |
$ reboot |
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
High Sierra https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?mt=12 | |
Sierra https://itunes.apple.com/us/app/macos-sierra/id1127487414?ls=1&mt=12 | |
El Capitan https://itunes.apple.com/app/os-x-el-capitan/id1147835434?mt=12 | |
Yosemite https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=915041082&mt=12 |
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
# /etc/udev/rules.d/20-bt-auto-enable-a2dp.rules | |
# hxss | |
SUBSYSTEM=="bluetooth", ACTION=="add", RUN+="/home/replace-it/bt-auto-enable-a2dp.sh" |
###Sketch trial non stop
Open hosts files:
$ open /private/etc/hosts
Edit the file adding:
127.0.0.1 backend.bohemiancoding.com
127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com
NewerOlder