- Accept the quest under User Settings -> Gift Inventory.
- Join a vc to your alt or your friend.
- Stream any window
- Press
Ctrl
+Shift
+I
to open DevTools - Go to the
Console
tab - Paste this code and press enter:
Discover gists
This file contains 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
shader_type spatial; | |
render_mode unshaded; | |
void vertex() { | |
POSITION = vec4(VERTEX, 1.0); | |
} | |
uniform sampler2D BackBufferTex : hint_screen_texture, repeat_disable, filter_nearest; | |
uniform sampler2D DepthBufferTex : source_color, hint_depth_texture, filter_nearest; |
This file contains 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
""" | |
stable diffusion dreaming | |
creates hypnotic moving videos by smoothly walking randomly through the sample space | |
example way to run this script: | |
$ python stablediffusionwalk.py --prompt "blueberry spaghetti" --name blueberry | |
to stitch together the images, e.g.: | |
$ ffmpeg -r 10 -f image2 -s 512x512 -i blueberry/frame%06d.jpg -vcodec libx264 -crf 10 -pix_fmt yuv420p blueberry.mp4 |
This file contains 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
wget -nv https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb | |
sudo dpkg -i packages-microsoft-prod.deb | |
sudo apt-get install apt-transport-https | |
sudo apt install snapd | |
sudo service snapd start | |
sudo snap install dotnet-sdk --classic | |
sudo apt-get install mono-complete |
This file contains 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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
This file contains 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
## AWS | |
# from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories | |
http://169.254.169.254/latest/user-data | |
http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME] | |
http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE NAME] | |
http://169.254.169.254/latest/meta-data/ami-id | |
http://169.254.169.254/latest/meta-data/reservation-id | |
http://169.254.169.254/latest/meta-data/hostname | |
http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key |
I needed a simple way to implement dragging and scroll wheel zooming on an HTML canvas, but I couldn't find a pure JS example. The most popular one uses an SVG node to convert coordinates, but I didn't like that so I created my own version.
Try it here: https://jsfiddle.net/balazsbotond/6n2uzjkq/30/
The multi-monitor support information below is based on personal experimentation and is not supported by the Batocera team. Please do not contact them for assistance with this setup.
- Download the latest Batocera beta at: https://mirrors.o2switch.fr/batocera/x86_64/beta/last/
- Go to https://store.rg-adguard.net.
- Search for the HEVC Video Extensions from Device Manufacturer (
Microsoft.HEVCVideoExtension
) app by entering the following store URL.https://www.microsoft.com/en-us/p/hevc-video-extensions-from-device-manufacturer/9n4wgh0z6vhq
- Do not use the normal HEVC Video Extensions app URL, because that can't play HEVC videos in Windows Media Player for some inscrutable reason.
- Download the x64 appx file, or whatever your Windows architecture is.
- You may have to right click › Save Link As because the URL scheme is http, not https, if your browser is set to enforce HTTPS-only mode.
- If it tries to save as a filename that's just a GUID, you may copy the correct .appx filename and save it as that instead.
This file contains 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
;; AHK#41 translate | |
;; 輸入:選取文字 | |
;; 輸出:c:\temp\translate.md, c:\temp\(選取文字).mp3 | |
;; UI:彈出翻譯後的對話窗 | |
#SingleInstance Force | |
#include d:\util\AHK\WinClipAPI.ahk | |
#include d:\util\AHK\WinClip.ahk | |
global sOutputFilename |
NewerOlder