Skip to content

Instantly share code, notes, and snippets.

@gphilipp
gphilipp / requirements.txt
Created February 8, 2024 10:23
Negative number for Avro's date logicalType
avro~=1.11.3
fastavro~=1.11.3

I've exported my environment variables to make it easier to run the commands:

export SCHEMA_REGISTRY_URL=xxxxx
export SCHEMA_REGISTRY_API_KEY=xxxxx
export SCHEMA_REGISTRY_API_SECRET=xxxxx
export BASIC_AUTH_USER_INFO=$SCHEMA_REGISTRY_API_KEY:$SCHEMA_REGISTRY_API_SECRET
export BOOTSTRAP_SERVERS=SASL_SSL://xxxxx.xxxxx.aws.confluent.cloud:9092
export KAFKA_API_KEY=xxxxx
export KAFKA_API_SECRET=xxxxx
  1. Run Confluent platform
git clone https://github.com/confluentinc/cp-docker-images
cd cp-docker-images/examples/cp-all-in-one
git checkout v5.2.1
docker-compose up -d

# wait a minute for services to be started
docker-compose ps
{:user {:dependencies [[spyscope "0.1.6"]
[org.clojure/tools.trace "0.7.9"]
[vvvvalvalval/scope-capture "0.1.4"] ]
:plugins [[lein-ancient "0.6.15"]]
:injections [(require 'spyscope.core)
(require 'sc.api)]}}
#!/bin/bash
#kafka helper functions riped off from cddr: https://gist.github.com/cddr/65b03448d34bb34636c3b2738ff14e3e
export BROKER_LIST=kafka-4:9092
export SCHEMA_REGISTRY_URL="https://schema-registry.fc-uat.us"
export ZOOKEEPER_ADDRESS="localhost:2181"
# just do that once
#sudo ifconfig en0 alias 192.168.4.1 broadcast 192.168.4.255
@gphilipp
gphilipp / kafka-cli.sh
Created January 29, 2018 10:00
Kafka CLI
#!/bin/bash
#kafka helper functions riped off from cddr: https://gist.github.com/cddr/65b03448d34bb34636c3b2738ff14e3e
export BROKER_LIST=kafka-4:9092
export KAFKA_DIR=$CONFLUENT_HOME
export SCHEMA_REGISTRY_URL="https://schema-registry.fc-uat.us"
export ZOOKEEPER_ADDRESS="localhost:2181"
sudo ifconfig en0 alias 192.168.4.1 broadcast 192.168.4.255

I prefer to set: fullresolution=0x0 (desktop native) output=overlay And for sound I increase the block size to around 2000. I've always found this gives better performance in fullscreen and will stop any weird sound skips and pauses with nice crisp pixels.

Many users are reporting issues with the sound in GOG's release of Wing Commander I. Specifically, they are hearing sounds like chime notes intead of lasers blasts during combat. The problem is that the game is configured to play sounds through a Roland MT-32 MIDI, which DOSBox does not naturally emulate. We expect GOG will provide an updated version of the game in the near future, but in the meantime this quick user fix will repair the issue: open the WINGCMDR.CFG file in a text editor and replace the letter "R" with "a552".

➜ koturo git:(simple_mode) ✗ node --trace-gc --max-old-space-size=8192 /Users/gilles/dev/koturo/mobileapp/koturo/node_modules/react-native/local-cli/cli.js bundle --entry-file index.ios.js --platform ios --dev false --reset-cache --bundle-output /Users/gilles/dev/koturo/mobileapp/koturo/ios/build/Build/Products/Release-iphonesimulator/Koturo.app/main.jsbundle --assets-dest /Users/gilles/dev/koturo/mobileapp/koturo/ios/build/Build/Products/Release-iphonesimulator/Koturo.app
[58064:0x102801600] 32 ms: Scavenge 3.1 (6.5) -> 2.8 (7.5) MB, 0.7 / 0.0 ms allocation failure
[58064:0x102801600] 49 ms: Scavenge 3.5 (8.0) -> 3.3 (8.5) MB, 0.9 / 0.0 ms allocation failure
[58064:0x102801600] 100 ms: Scavenge 7.3 (11.6) -> 6.8 (13.6) MB, 0.7 / 0.0 ms allocation failure
[58064:0x102801600] 131 ms: Scavenge 9.0 (14.1) -> 7.7 (14.6) MB, 1.0 / 0.0 ms allocation failure
[58064:0x102801600] 162 ms: Scavenge 9.8 (15.1) -> 8.5 (15.6) MB, 0.9 / 0.0 ms allocation failure
[58064:0x102801600] 181
This file has been truncated, but you can view the full file.
➜ koturo git:(simple_mode) ✗ ./release-on-device.sh
Compiling ClojureScript...
Compiling "index.ios.js" from ["src" "env/prod"]...
juil. 07, 2017 4:51:57 PM com.google.javascript.jscomp.LoggerErrorManager println
AVERTISSEMENT: /Users/gilles/dev/koturo/mobileapp/koturo/target/ios/koturo/shared/rn.js:32: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
koturo.shared.rn.entypoicon = reagent.core.adapt_react_class(require("react-native-vector-icons/Entypo").default);
^
juil. 07, 2017 4:51:57 PM com.google.javascript.jscomp.LoggerErrorManager println
AVERTISSEMENT: /Users/gilles/dev/koturo/mobileapp/koturo/target/ios/koturo/shared/rn.js:33: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If yo