Skip to content

Instantly share code, notes, and snippets.

@easel
easel / Brewfile
Last active June 16, 2023 15:37
MacOS Tips (as of Ventura)
tap "hashicorp/tap"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-versions"
tap "homebrew/core"
tap "redpanda-data/tap"
brew "python@3.11"
brew "ansible"
brew "giflib"
brew "libpng"
POST /Architect/US/CASS/CASSService.asmx HTTP/1.1
Content-Type: application/soap+xml; action="WS-SatoriSoftware-US-CASS/SetProperties"; charset=UTF-8
Accept: */*
Cookie: $Version="1"; ASP.NET_SessionId=uoxrwj2g44l44avvjr4uer2i; $Path=/
Cookie: $Version="1"; BIGipServer8+pc8Rqap6e2zgX9HyJreg=!UxPycKYfXU/haUKOgHhPlfavPFFVV18PJJmmAnNwQafYilIDo1rfRGh3imIPV7MLIKcpNF713STjvQ==; $Path=/
User-Agent: Apache-CXF/3.4.2
Cache-Control: no-cache
Pragma: no-cache
Host: ws.satorisoftware.com
Connection: keep-alive
@easel
easel / multipass.sh
Last active January 17, 2023 14:55
MultiPass Multi-Network Commands
# Create networks using Hyper-V virtual switches with "External" access
# Verify network visibility with networks command
multipass networks
# Create primary instance with two bridged networks and lots of resources
multipass launch --network name="Ethernet" --network name="WiFi" --name primary --cpus 8 --mem 40g --disk 100g
# Set the ubuntu password so remote ssh works
multipass exec primary sudo passwd ubuntu
@easel
easel / POSH Stuff
Last active May 6, 2020 13:49
Windows Terminal Configuration
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
Then run "notepad $PROFILE" and add these lines to the end:
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox
@easel
easel / gist:0cc3df9e1506a8dc86115f76bdfe0eb8
Last active December 9, 2019 21:17
Windows Long File Names
regedit
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
LongPathsEnabled
1
git config --global core.longpaths true
@easel
easel / profile.ps1
Last active April 1, 2019 14:55
PowerShell Core!
// Install powershell core 6
// https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-6
// Install posh-git by running this command from an Admin powershell 6 prompt
// PowerShellGet\Install-Module posh-git -Scope CurrentUser -AllowPrerelease -Force
// Or via chocalatey
// choco install poshgit
// paste this stuff into your user profile
@easel
easel / keybase.md
Created March 1, 2019 17:25
keybase.md

Keybase proof

I hereby claim:

  • I am easel on github.
  • I am easel (https://keybase.io/easel) on keybase.
  • I have a public key ASAvBm51IDBmzzx93V4RuhY0dpaexSgwPzttVdD8SMdUpgo

To claim this, I am signing this object:

@easel
easel / AAA Kubernetes Stuff.md
Last active January 18, 2019 18:37
Kubernetes Stuff

Kubernetes stuff

package com.theseventhsense.utils.akka
import akka.stream.stage._
trait BufferObservation {
def update(count: Int)
}
object ObservableBuffer {
package com.theseventhsense.clients.wsclient
import akka.actor.{ Props, Status }
import akka.pattern.pipe
import akka.stream.actor.ActorPublisher
import com.theseventhsense.utils.persistence.Keyed
import scala.concurrent.ExecutionContext
class BatchSource[A <: Keyed](loader: BatchLoader[A])(implicit ec: ExecutionContext) extends ActorPublisher[A] {