Skip to content

Instantly share code, notes, and snippets.

View theevangelista's full-sized avatar
👽
Conquering the world

Evangelista theevangelista

👽
Conquering the world
View GitHub Profile
@theevangelista
theevangelista / Adb-PullAppData.ps1
Created February 27, 2024 23:55 — forked from chriskyfung/Adb-PullAppData.ps1
A PowerShell script interactively guides you pull app data from (/sdcard/Android/data/) to your local machine via Android Debug Bridge (adb)
<#
.SYNOPSIS
Pull Android App data from the internal storage of
a device via Android Debug Bridge (adb).
.DESCRIPTION
The Adb-PullAppData.ps1 script uses interavtive prompts to guide you pull app data
from (/sdcard/Android/data/$APPNAME) to the local machine.
@theevangelista
theevangelista / OracleCharType.kt
Created April 11, 2023 16:39
Custom Type to allow Oracle Char to be used on JPA without the need to trim
import com.zaxxer.hikari.pool.HikariProxyPreparedStatement
import oracle.jdbc.OraclePreparedStatement
import org.hibernate.engine.spi.SharedSessionContractImplementor
import org.hibernate.usertype.UserType
import java.io.Serializable
import java.sql.PreparedStatement
import java.sql.ResultSet
import java.sql.Types
@theevangelista
theevangelista / private-build-plans.toml
Created August 18, 2021 01:40
Loveska build plan, an custom curly extended version of Iosevka
[buildPlans.loveska]
family = "Loveska"
spacing = "term"
serifs = "slab"
no-cv-ss = true
[buildPlans.loveska.variants.design]
capital-a = "curly-base-serifed"
capital-b = "more-asymmetric-bilateral-serifed"
capital-d = "more-rounded-bilateral-serifed"
@theevangelista
theevangelista / composing-software.md
Created April 7, 2021 21:23 — forked from Geoff-Ford/composing-software.md
Eric Elliott's Composing Software Series

Eric Elliott's "Composing Software" Series

A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.

Edit: I see that each post in the series now has index, previous and next links. However, they don't follow a linear flow through all the articles with some pointing back to previous posts effectively locking you in a loop.

import java.lang.IllegalArgumentException
class Video(private val data: Array<Byte>, private val encoding: VideoEncoding) {
fun compress(compressor: VideoCompressor): Sequence<Byte> {
if (compressor.supports(encoding)) {
compressor.compress(data)
}
throw IllegalArgumentException("compressor does not support encoding $encoding")
}
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
@theevangelista
theevangelista / EventMachines.md
Created January 14, 2020 14:38 — forked from eulerfx/EventMachines.md
The relationship between state machines and event sourcing

A state machine is defined as follows:

  • Input - a set of inputs
  • Output - a set of outputs
  • State - a set of states
  • S0 ∈ S - an initial state
  • T : Input * State -> Output * State - a transition function

If you model your services (aggregates, projections, process managers, sagas, whatever) as state machines, one issue to address is management of State. There must be a mechanism to provide State to the state machine, and to persist resulting State for subsequent retrieval. One way to address this is by storing State is a key-value store. Another way is to use a SQL database. Yet another way is event sourcing. The benefit of even sourcing is that you never need to store State itself. Instead, you rely on the Output of a service to reconstitute state. In order to do that, the state machine transition function needs to be factored into two functions as follows:

set nru
set incsearch
set clipboard=unnamedplus,unnamed
let mapleader = ","
" Mappings are made of action group prefix - action
" Find
nmap <Leader>f :action Find<CR> " default IDEA search
nmap <Leader>ff :action FindModal<CR>
@theevangelista
theevangelista / emoji_on_suse
Created August 19, 2019 03:07
steps to get emoji on suse
- download & extract from https://github.com/eosrei/twemoji-color-font/releases
- install bitstream with `sudo zypper in bitstream-vera-fonts`
- cd TwitterColorEmoji-SVGinOT-Linux-12.0.1
- chmod +x install.sh && ./install.sh