Skip to content

Instantly share code, notes, and snippets.

View andreaskweber's full-sized avatar

Andreas K. Weber andreaskweber

View GitHub Profile
@andreaskweber
andreaskweber / analysis.md
Created December 8, 2025 12:25
Social Media Domain Model Analysis

Social Media Domain Model Analysis


🚨 Missing Relationships (Immediate Issues)

Object Issue Fix
rm-post-details No respondsToQueryIds Needs a GetPostDetails query
cmd-flag-content No emitsEventIds Should emit ContentFlagged
SELECT
vo.status,
DATE_FORMAT(vo.status_updated_at, '%Y-%m-%d') AS status_updated_at,
DATE_FORMAT(vo.created_at, '%Y-%m-%d') AS created_at,
CONCAT(vo.customer_data_contact_ndc, vo.customer_data_contact_serial) AS customer_data_contact_phone_number,
vo.type,
vo.channel,
u.reference_id AS user_reference_id,
vbp.segment AS product_segment,
vbp.external_id AS product_external_id,
{
"brand": {
"name": "Nexus AI",
"tagline": "The Operating System for AI Companies",
"slogan": "Build. Scale. Innovate.",
"missionStatement": "To democratize AI infrastructure by providing the most intuitive, scalable, and intelligent operating system for AI companies worldwide.",
"visionStatement": "A world where every AI company can focus on innovation, not infrastructure."
},
"colors": {
"primary": [
[2021-12-09T22:25:30.587725+01:00] om-ws.INFO: Handling lead from SBSCOM portal {"gan":"599"} []
[2021-12-09T22:25:30.589109+01:00] om-ws.INFO: Redirecting lead to destination url {"gan":"599","destination_url":"https://mitarbeiterportal.vorteilsangebote.de?code=vorteilsangebote-sbs-y2494rt&gan=599"} []
[2021-12-09T22:25:33.392218+01:00] om-ws.INFO: Handling lead from SBSCOM portal {"gan":"123"} []
[2021-12-09T22:25:33.393387+01:00] om-ws.INFO: Redirecting lead to destination url {"gan":"123","destination_url":"https://mitarbeiterportal.vorteilsangebote.de?code=vorteilsangebote-sbs-y2494rt&gan=123"} []
[2021-12-09T22:26:14.932266+01:00] om-ws.INFO: Handling lead from SBSCOM portal {"gan":"591"} []
[2021-12-09T22:26:14.933544+01:00] om-ws.INFO: Redirecting lead to destination url {"gan":"591","destination_url":"https://mitarbeiterportal.vorteilsangebote.de?code=vorteilsangebote-sbs-y2494rt&gan=591"} []
[2021-12-09T22:27:29.723703+01:00] om-ws.INFO: Handling lead from SBSCOM portal {"gan":"123"} []
[2021-12-09T
{
"request": {
"action": "get",
"format": "json",
"language": "de_DE",
"api_environment": "development",
"provider": "vodafone",
"segment": "mobilfunk",
"id": "bookableproducts"
},
# Disable Light 1
curl -X "POST" "https://prd.api.velocate-iot-service.dev.wowing.io/things/8988228066601917552/light1/disable"
# Enable Light 1
curl -X "POST" "https://prd.api.velocate-iot-service.dev.wowing.io/things/8988228066601917552/light1/enable"
# Disable Light 2
curl -X "POST" "https://prd.api.velocate-iot-service.dev.wowing.io/things/8988228066601917552/light2/disable"
# Enable Light 2

Publish to $aws/things/8988228066601923639/shadow/name/messe2021/update

{
  "state": {
    "reported": {
      "is_online": true,
      "online_counter": 123456790
    }
 }
@andreaskweber
andreaskweber / psql-with-gzip-cheatsheet.sh
Created July 25, 2017 21:08 — forked from brock/psql-with-gzip-cheatsheet.sh
Exporting and Importing Postgres Databases using gzip
# This is just a cheat sheet:
# On production
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz
# On local
scp -C production:~/database.sql.gz
dropdb database && createdb database
gunzip < database.sql.gz | psql database
@andreaskweber
andreaskweber / phpstorm9.md
Created November 10, 2015 09:05
Increase Memory of PhpStorm 9 on OSX Yosemite

Go into Applications, Right click PHPStorm, Show Package Contents, then navigate to Contents/Bin and edit 'phpstorm.vmoptions'. Change your values to raise RAM limits:

-Xms512m
-Xmx1024m
-XX:MaxPermSize=450m
-XX:ReservedCodeCacheSize=325m
-XX:+UseCompressedOops
@andreaskweber
andreaskweber / supervisord.service
Last active April 25, 2016 15:39
Running supervisord with systemd on Debian Jessie
#
# /etc/systemd/system/supervisord.service
#
[Unit]
Description=supervisord - Supervisor process control system for UNIX
Documentation=http://supervisord.org
After=network.target
[Service]