calendarID from cal.csv can be used at path param in
https://developers.google.com/calendar/v3/reference/calendars/get
https://developers.google.com/calendar/v3/reference/events/list
| Encoder av1_amf [AMD AMF AV1 encoder]: | |
| General capabilities: dr1 delay hardware | |
| Threading capabilities: none | |
| Supported hardware devices: d3d11va d3d11va dxva2 dxva2 amf amf | |
| Supported pixel formats: nv12 yuv420p d3d11 dxva2_vld p010le amf bgr0 rgb0 bgra argb rgba x2bgr10le rgbaf16le | |
| av1_amf AVOptions: | |
| -usage <int> E..V....... Set the encoding usage (from -1 to 5) (default -1) | |
| transcoding 0 E..V....... Generic Transcoding | |
| ultralowlatency 2 E..V....... ultra low latency trancoding | |
| lowlatency 1 E..V....... Low latency usecase |
| Encoder av1_nvenc [NVIDIA NVENC av1 encoder]: | |
| General capabilities: dr1 delay hardware | |
| Threading capabilities: none | |
| Supported hardware devices: cuda cuda d3d11va d3d11va | |
| Supported pixel formats: yuv420p nv12 p010le yuv444p p016le yuv444p16le bgr0 bgra rgb0 rgba x2rgb10le x2bgr10le gbrp gbrp16le cuda d3d11 | |
| av1_nvenc AVOptions: | |
| -preset <int> E..V....... Set the encoding preset (from 0 to 18) (default p4) | |
| default 0 E..V....... | |
| slow 1 E..V....... hq 2 passes | |
| medium 2 E..V....... hq 1 pass |
These notes are pretty much the same steps as the two extensions list, it's just that I had to collate them together because neither seems to list it fully in the proper order.
-
Install Synthwave ’84/Synthwave + Fluoromachine theme on VS Code (I used the Fluoromachine one)
-
Install Custom CSS and JS Loader
-
Command + Shift + P to open command palette > "Preferences: Open settings (JSON)"
The following are examples of the four types rate limiters discussed in the accompanying blog post. In the examples below I've used pseudocode-like Ruby, so if you're unfamiliar with Ruby you should be able to easily translate this approach to other languages. Complete examples in Ruby are also provided later in this gist.
In most cases you'll want all these examples to be classes, but I've used simple functions here to keep the code samples brief.
This uses a basic token bucket algorithm and relies on the fact that Redis scripts execute atomically. No other operations can run between fetching the count and writing the new count.
| package base | |
| import ( | |
| "errors" | |
| "fmt" | |
| "github.com/manucorporat/try" | |
| "github.com/simpleton/beego" | |
| "github.com/streadway/amqp" | |
| "math/rand" | |
| "model/helper" |
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
| mholt [9:10 AM] | |
| When using http.Get(), is it really necessary to read the full response body just to close it later? | |
| [9:10] | |
| The docs keep saying `Caller should close resp.Body when done reading from it.` and I keep seeing code like this: | |
| ``` | |
| io.Copy(ioutil.Discard, resp.Body) | |
| resp.Body.Close() | |
| ``` |
| print("UPDATE AUG 2023: this script is beyond old and broken") | |
| print("You may find interesting and more up to date resources in the comments of the gist") | |
| exit() | |
| from slacker import Slacker | |
| import json | |
| import argparse | |
| import os | |
| # This script finds all channels, private channels and direct messages |
| import ( | |
| "archive/zip" | |
| "io" | |
| "os" | |
| "path/filepath" | |
| "strings" | |
| ) | |
| func zipit(source, target string) error { | |
| zipfile, err := os.Create(target) |