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
import {Duration, Stack, StackProps} from "aws-cdk-lib"; | |
import {Construct} from "constructs"; | |
import {Repository} from "aws-cdk-lib/aws-ecr"; | |
import {Function, LayerVersion, Runtime} from "aws-cdk-lib/aws-lambda"; | |
import {ArnPrincipal, Effect, ManagedPolicy, PolicyStatement} from "aws-cdk-lib/aws-iam"; | |
import {PythonFunction} from "@aws-cdk/aws-lambda-python-alpha"; | |
import {DockerImageAsset} from "aws-cdk-lib/aws-ecr-assets"; | |
import * as path from "path"; | |
import * as ecrdeploy from 'cdk-ecr-deployment'; | |
import {Secret} from "aws-cdk-lib/aws-secretsmanager"; |
Note: this was originally several Reddit posts, chained and linked. But now that Reddit is dying I've finally moved them out. Sorry about the mess.
URL: https://www.reddit.com/r/ProgrammingLanguages/comments/up206c/stack_machines_for_compilers/i8ikupw/ Summary: stack-based vs register-based in general.
There are a wide variety of machines that can be described as "stack-based" or "register-based", but not all of them are practical. And there are a lot of other decisions that affect that practicality (do variables have names or only address/indexes? fixed-width or variable-width instructions? are you interpreting the bytecode (and if so, are you using machine stack frames?) or turning it into machine code? how many registers are there, and how many are special? how do you represent multiple types of variable? how many scopes are there(various kinds of global, local, member, ...)? how much effort/complexity can you afford to put into your machine? etc.)
./configure --enable-openssl-base --enable-openssl-method
make
optionally make install
ida_abda.nl_lumen.bat
then run it{{ define "__yucca_text_alert_list" }}{{ range . }} | |
--- | |
🪪 <b>{{ .Labels.alertname }}</b> | |
{{- if .Annotations.summary }} | |
📝 {{ .Annotations.summary }}{{ end }} | |
{{- if .Annotations.description }} | |
📖 {{ .Annotations.description }}{{ end }} | |
🏷 Labels: | |
{{ range .Labels.SortedPairs }} <i>{{ .Name }}</i>: <code>{{ .Value }}</code> | |
{{ end }}{{ end }} |
create function [dbo].[ToUTF8](@s nvarchar(max)) | |
returns varbinary(max) | |
as | |
begin | |
declare @i int = 1, @n int = datalength(@s)/2, @r varbinary(max) = 0x, @c int, @c2 int, @d varbinary(4) | |
while @i <= @n | |
begin | |
set @c = unicode(substring(@s, @i, 1)) | |
if (@c & 0xFC00) = 0xD800 | |
begin |
Source: https://web.archive.org/web/20141216073338/https://gkbrk.com/blog/read?name=reverse_engineering_the_speedtest_net_protocol Author: Gökberk Yaltıraklı
After finishing my command line speed tester written in Rust, I didn't have a proper blog to document this process. A few days ago I wrapped up a simple blogging script in Python so hopefully it works good enough to explain how everything works.
By now I have already figured out the whole protocol for performing a speed test but I will write all the steps that I took so you can learn how to reverse engineer a simple protocol.
The code that I wrote can be found at https://github.com/gkbrk/speedtest-rust.