Skip to content

Instantly share code, notes, and snippets.

View ogomaemmanuel's full-sized avatar
🏠
Working from home

Emmanuel Ogoma ogomaemmanuel

🏠
Working from home
View GitHub Profile
@ogomaemmanuel
ogomaemmanuel / IonicNativeTesting.txt
Created March 20, 2018 16:25
Testing ionic App On Browser
paste the following on chrome bar
chrome://inspect/#devices
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Remote file for Bootstrap Modal</title>
</head>
<body>
location /web-chat/ {
proxy_pass http://localhost:5000/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
@ogomaemmanuel
ogomaemmanuel / OrdersWatch.java
Last active February 23, 2020 21:26
CDC Mysql Example
package pl.dk.debeziumdemo.watch;
import io.debezium.config.Configuration;
import io.debezium.data.Envelope.Operation;
import io.debezium.embedded.EmbeddedEngine;
import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.connect.data.Struct;
import org.apache.kafka.connect.source.SourceRecord;
import javax.annotation.PostConstruct;
@ogomaemmanuel
ogomaemmanuel / local
Created May 8, 2021 10:31 — forked from archf/local
ansible variables group_names and group_names from hostvars have different content when printed
[foo]
localhost ansible_host=localhost ansible_connection=local
@ogomaemmanuel
ogomaemmanuel / aes_encryption.py
Created October 16, 2024 11:42 — forked from tmarthal/aes_encryption.py
PyCrypto AES256 Encoding with Initialization Vectors Matching Spring Security
class AesCrypt256:
#Based on https://gist.github.com/pfote/5099161
BLOCK_SIZE = 16
# To use the null/x00 byte array for the IV
default_initialization_vector = False
def __init__(self, default_initialization_vector=False):
self.default_initialization_vector = default_initialization_vector
@ogomaemmanuel
ogomaemmanuel / compose-file
Created January 2, 2025 13:16
temporal-docker-compose-with-key-cloak
# version: "3.5"
services:
opensearch:
container_name: temporal-opensearch
restart: always
environment:
- discovery.type=single-node
- OPENSEARCH_JAVA_OPTS=-Xms256m -Xmx256m
- cluster.routing.allocation.disk.threshold_enabled=true
- cluster.routing.allocation.disk.watermark.low=512mb