Skip to content

Instantly share code, notes, and snippets.

@sarimarton
sarimarton / fix_github_copilot.sh
Last active April 24, 2024 06:59
Fix Github Copilot in dealing with self-signed certificates
# [2023-05-25] Added Copilot Chat, and VSCode Insiders
# [2023-05-20] Add VSCode Insiders variant
# [2023-02-22] Added Copilot Labs
# Fix Github Co-pilot self-signed cert problem
# See: https://github.com/orgs/community/discussions/8866#discussioncomment-3517831
# Note
#
# To make Github Copilot/Nightly/Labs/Chat work, you might need additional
@sarimarton
sarimarton / bezier-easing.avs
Last active July 24, 2022 22:18
Avisynth+ bezier-easing function
# ported from https://github.com/gre/bezier-easing/blob/master/src/index.js
# Takes CSS-compliant bezier args and an X value and returns the Y value.
# Playground for bezier args: https://cubic-bezier.com/
# Example usage:
# scripted = ScriptClip(part, """
# x = float(current_frame) / float(len)
# val = bezier(1, 0.55, 0.45, 1, 0.5)
# overlay(blankclip(c, color=color), opacity=(val))
# """, args="len,color,c", local=true)
@sarimarton
sarimarton / SketchSystems.spec
Last active August 31, 2021 04:23
Time Part Field
Time Part Field
focused -> Init
Init*
typed non-finishing digit -> Init
typed finishing digit -> Finished
Finished
@sarimarton
sarimarton / SketchSystems.spec
Last active August 31, 2021 04:00
Time Field
Time Field
Hour Focused
Hour Focused Init*
update -> Hour Focused Init
digit typed -> Hour Focused Typed
Hour Focused Typed
digit typed -> Minute Focused Init
Minute Focused
Minute Focused Init*
digit typed -> Minute Focused Typed
Terraform will perform the following actions:
# aws_lightsail_instance.vps will be replaced, as requested
-/+ resource "aws_lightsail_instance" "vps" {
~ arn = "arn:aws:lightsail:eu-central-1:422874730227:Instance/f5d87ed2-85f3-4dc4-8adf-5c87fd49ff83" -> (known after apply)
~ cpu_count = 1 -> (known after apply)
~ created_at = "2021-08-25T06:03:29Z" -> (known after apply)
~ id = "vps" -> (known after apply)
~ ipv6_address = "2a05:d014:c17:e500:216a:baed:35f8:44ae" -> (known after apply)
~ ipv6_addresses = [
@sarimarton
sarimarton / socat_server.sh
Created August 6, 2021 22:03 — forked from CMCDragonkai/socat_server.sh
Socat Simple HTTP Server #cli #network
socat \
-v -d -d \
TCP-LISTEN:1234,crlf,reuseaddr,fork \
SYSTEM:"
echo HTTP/1.1 200 OK;
echo Content-Type\: text/plain;
echo;
echo \"Server: \$SOCAT_SOCKADDR:\$SOCAT_SOCKPORT\";
echo \"Client: \$SOCAT_PEERADDR:\$SOCAT_PEERPORT\";
"
@sarimarton
sarimarton / machine.js
Last active August 5, 2020 00:11
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
FilterInput
Init
click -> DropdownActiveWithAllOptions
DropdownActiveWithAllOptions
type -> DropdownFilteredToOne
DropdownFilteredToOne
typeEnter -> InverseMode
InverseMode
@sarimarton
sarimarton / crossover-howtocompile.md
Last active April 19, 2024 07:55 — forked from Alex4386/crossover-howtocompile.md
CodeWeavers CrossOver - How to compile from source! for macOS

UPDATE 2023-01-22 21:34:33

This guide was last tested on an Intel MacBook 2017. Since then it's unmaintained and won't be updated (I quit the game and bought a life-time crossover licence).


This has been forked from https://gist.github.com/Alex4386/4cce275760367e9f5e90e2553d655309

For the latest discussion, see the comments there.

// types.ts
import { AutoSaveEvent } from 'src/store/slices/autoSave'
import { EntityUpdateEvent } from 'src/store/slices/review'
import { StateMachine } from 'xstate'
export type Machine = StateMachine<MachineContext, MachineStateSchema, MachineEvent>
export type MachineEvent =
| EntityUpdateEvent
| { type: 'UPDATED' }