Note
This no longer works in browser!
Note
This no longer works if you're alone in vc! Somebody else has to join you!
How to use this script:
- Accept the quest under User Settings -> Gift Inventory
using System.Net.WebSockets; | |
using System.Text; | |
Uri uri = new("wss://yabu.me/"); | |
using ClientWebSocket ws = new(); | |
await ws.ConnectAsync(uri, default); | |
var req = "[\"REQ\", \"_\", {\"kinds\": [1], \"limit\": 10}]"; | |
Console.WriteLine("< " + req); |
class NostrSubscription | |
{ | |
static void Main(string[] args) | |
{ | |
string url = "wss://yabu.me"; | |
using (var ws = new WebSocketSharp.WebSocket(url)) | |
{ | |
ws.OnOpen += (sender, e) => | |
{ |
Option Explicit | |
Private Const VERSION As String = "0.1" | |
Private Const DIALOG_TITLE As String = "yourModuleName › SendAllDrafts (v" & VERSION & ")" | |
' Name of the subfolder of the Drafts folder, containing the draft e-mails to be sent | |
Private Const MAILMERGE_SUBFOLDER_NAME = "MailMerge" | |
' Send all messages from the MAILMERGE_SUBFOLDER_NAME subfolder | |
' of the Drafts folder (ignores any subfolder) |
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc
// ==UserScript== | |
// @name ChatGPT CSS fixes | |
// @version 2024-02-11 | |
// @updateURL https://gist.github.com/alexchexes/d2ff0b9137aa3ac9de8b0448138125ce/raw/chatgpt_ui_fix.user.js | |
// @downloadURL https://gist.github.com/alexchexes/d2ff0b9137aa3ac9de8b0448138125ce/raw/chatgpt_ui_fix.user.js | |
// @namespace http://tampermonkey.net/ | |
// @description Adjusts width of side bar and messages of the chatGPT web interface | |
// @author alexchexes | |
// @match https://chat.openai.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com |
import cv2 | |
from PIL import Image, ImageOps | |
from dataclasses import dataclass | |
@dataclass | |
class VideoStatus: | |
time: float = 0 | |
videoObject: cv2.VideoCapture = None | |
def __deepcopy__(self, memo): | |
return self |
For years, people have been using jemalloc with ruby. There were various benchmarks and discussions. Legend had it that Jemalloc 5 didn't work as well as Jemalloc 3.
Then, one day, hope appeared on the horizon. @wjordan offered a config for Jemalloc 5.
FROM ruby:3.1.2-bullseye
RUN apt-get update ; \
#!/bin/bash | |
### steps #### | |
# verify the system has a cuda-capable gpu | |
# download and install the nvidia cuda toolkit and cudnn | |
# setup environmental variables | |
# verify the installation | |
### | |
### to verify your gpu is cuda enable check |