Skip to content

Instantly share code, notes, and snippets.

View quin47's full-sized avatar

Carlos Quin quin47

View GitHub Profile
@quin47
quin47 / sdrocm.md
Created February 22, 2023 18:31 — forked from elderica/sdrocm.md
Stable Diffusion with ROCm and ArchLinux
  1. arch4edu リポジトリを追加する。
  2. paru -Syu rocm-hip-sdk rocm-opencl-sdk python-pytorch-rocm python-torchvision-rocm python-numpy yq
  3. virtualenv --system-site-packages sdenv
  4. source sdenv/bin/activate
  5. git clone https://github.com/CompVis/stable-diffusion.git && cd stable-diffusion
  6. yq '.dependencies[].pip?[]' environment.yaml | sed 's/"//g' | xargs -L1 pip install
  7. https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt からチェックポイントファイルを入手して、 models/ldm/stable-diffusion-v1/model.ckpt に置く
  8. python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms
// ==UserScript==
// @name 去黑白滤镜
// @namespace http://tampermonkey.net/
// @version 1.0
// @description 国内常见视频, 购物网站去黑白滤镜
// @author carlos
// @match *://*.jd.com/*
// @match *://*.bilibili.com/*
// @match *://*.taobao.com/*
// @match *://*.youku.com/*
@quin47
quin47 / Deck ui.md
Created July 24, 2022 01:22 — forked from red-dragon65/Deck ui.md
How to properly run Steam Decks UI on Manjaro

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.


Running Steams Deck UI on Manjaro with Minimal Glitches

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.

@quin47
quin47 / docker-compose-hackintosh.md
Last active June 16, 2020 07:01 — forked from slykar/docker-compose-hackintosh.md
Docker and Docker Compose on AMD OSX Hackintosh via Docker Machine

Introduction

Docker.app will complain about incompatible processor, so we will use Docker Machine.

Instalation

Download Docker It contains some binaries that are necessary.

brew install docker virtualbox docker-machine
@quin47
quin47 / leaving_range.scpt
Created December 24, 2018 14:29 — forked from hiilppp/leaving_range.scpt
AppleScript to lock your Mac's screen, pause iTunes (if playing), and sync OmniFocus (if open). (Use EventScripts to automatically trigger script when a Bluetooth device (e.g., your iPhone) leaves your Mac's range: http://www.mousedown.net/mouseware/EventScripts.html)
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"
@quin47
quin47 / entering_range.scpt
Created December 24, 2018 14:28 — forked from hiilppp/entering_range.scpt
AppleScript to unlock your Mac's screen. (Use EventScripts to automatically trigger script when a Bluetooth device (e.g., your iPhone) enters your Mac's range: http://www.mousedown.net/mouseware/EventScripts.html)
-- 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
@quin47
quin47 / ArchLinux_Kernel4.13_enable_BBR.sh
Created December 16, 2018 01:10 — forked from sendya/ArchLinux_Kernel4.13_enable_BBR.sh
ArchLinux Kernel4.13 enable BBR
$ 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
@quin47
quin47 / mac_img_download
Last active November 28, 2018 05:36
mac
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
# /etc/udev/rules.d/20-bt-auto-enable-a2dp.rules
# hxss
SUBSYSTEM=="bluetooth", ACTION=="add", RUN+="/home/replace-it/bt-auto-enable-a2dp.sh"
@quin47
quin47 / sketch-never-ending.md
Created November 9, 2018 06:57 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###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