Skip to content

Instantly share code, notes, and snippets.

View edombowsky's full-sized avatar

edombowsky

  • Port Moody, BC, Canada
View GitHub Profile
@nikAizuddin
nikAizuddin / podman-installation-on-ubuntu-2004-wsl2.md
Last active January 26, 2025 20:59
Podman Installation on Ubuntu 20.04 WSL2

Podman Installation on Ubuntu 20.04 WSL2

Execute the following command to install Podman:

sudo apt update
sudo apt install ca-certificates
. /etc/os-release
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -
sudo apt update
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@shanselman
shanselman / ohmyposhv3-v2.json
Last active March 17, 2026 20:26
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@felipou
felipou / decrypt_dbeaver.py
Last active December 23, 2025 22:20
DBeaver password decryption script - for newer versions of DBeaver
# https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection
# requires pycryptodome lib (pip install pycryptodome)
import sys
import base64
import os
import json
from Crypto.Cipher import AES
@GabLeRoux
GabLeRoux / ReadMe.md
Created July 31, 2019 01:35
Convert OPENSSH to RSA from command line

Convert openssh keys to rsa keys

from something that starts with

-----BEGIN OPENSSH PRIVATE KEY-----

to something that starts with

@bradtraversy
bradtraversy / eslint_prettier_airbnb.md
Created July 19, 2019 17:54
ESLint, Prettier & Airbnb Setup

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
@dzikowski
dzikowski / ValidationResultLib.scala
Last active July 20, 2021 09:09
A micro-library for data validation over cats.Monad and cats.data.EitherT
package com.softwaremill.monadvalidation.lib
import cats.Monad
import cats.data.EitherT
import scala.language.higherKinds
trait ValidationResultLib[M[_]] {
type ValidationResult[F, S] = EitherT[M, F, S]
@borice
borice / Gzip.scala
Created March 1, 2019 16:40
Enable gzip-compressed JSON payload in op-rabbit
//
// To use the below, simply import Gzip._ instead of import com.spingo.op_rabbit.PlayJsonSupport._
//
import java.io.{ByteArrayInputStream, ByteArrayOutputStream}
import java.util.zip.{GZIPInputStream, GZIPOutputStream}
import com.spingo.op_rabbit._
import play.api.libs.json._
import scala.io.{Codec, Source}
@hochgi
hochgi / Scheduling.scala
Created February 20, 2019 11:11
scala scheduling with akka
import akka.actor.{ActorSystem, Scheduler}
import com.astoncap.util.concurrent.Async._
import scala.concurrent.{ExecutionContext, Future, Promise}
import scala.concurrent.duration.{Duration, FiniteDuration}
import scala.util.Try
trait Scheduling {
implicit val scheduling: Scheduling = this
@Otiel
Otiel / Prevent screensaver.ahk
Last active October 4, 2023 10:35
AutoHotkey script to prevent Windows or your screen from going to sleep
CoordMode, Mouse, Screen
Loop
{
; Move mouse
MouseMove, 1, 1, 0, R
; Replace mouse to its original location
MouseMove, -1, -1, 0, R
; Wait before moving the mouse again
Sleep, 600000
}