Skip to content

Instantly share code, notes, and snippets.

@atsapura
atsapura / GuaranteedDeliveryActor.fs
Created September 9, 2020 16:40 — forked from object/GuaranteedDeliveryActor.fs
Guaranteed delivery actor in Akka.NET/F#
module GuaranteedDelivery =
open Akka.Actor
open Akka.Persistence
open Akkling
open Akkling.Persistence
type Payload = string
type DeliveryEnvelope = { Payload: Payload; DeliveryId: int64 }
@object
object / GuaranteedDeliveryActor.fs
Created September 9, 2020 15:16
Guaranteed delivery actor in Akka.NET/F#
module GuaranteedDelivery =
open Akka.Actor
open Akka.Persistence
open Akkling
open Akkling.Persistence
type Payload = string
type DeliveryEnvelope = { Payload: Payload; DeliveryId: int64 }
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution
Last active June 6, 2024 14:37
Fix DNS resolution in WSL2
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
secondary.
@object
object / AkklingPersistence.txt
Created May 20, 2018 07:29
Akkling persistence example
1. Yaml configuration section
<?xml version="1.0" encoding="utf-8"?>
<akka.persistence>
<hocon>
<![CDATA[
akka {
persistence{
query.journal.sql {
max-buffer-size = 10000
@alirobe
alirobe / reclaimWindows10.ps1
Last active June 6, 2024 15:34
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###