Skip to content

Instantly share code, notes, and snippets.

View raptium's full-sized avatar
😜

Hao Guan raptium

😜
View GitHub Profile
substitutions:
name: korvo-1
friendly_name: "Korvo 1"
ip_address: 192.168.1.101
wifi_ssid: iot
power_save: high
esphome:
name: ${name}
platformio_options:
@jasmas
jasmas / acdisable
Created January 26, 2022 17:29
Enable/Disable Cisco AnyConnect Socket Filter Extension on MacOS
#!/bin/sh
echo Disabling vpnagentd...
sudo launchctl disable system/com.cisco.anyconnect.vpnagentd
echo Tearing down vpnagentd...
sudo launchctl bootout system /Library/LaunchDaemons/com.cisco.anyconnect.vpnagentd.plist
echo Deactivating Cisco AnyConnect Socket Filter Extension...
/Applications/Cisco/Cisco\ AnyConnect\ Socket\ Filter.app/Contents/MacOS/Cisco\ AnyConnect\ Socket\ Filter -deactivateExt
@lennyburdette
lennyburdette / README.md
Last active January 14, 2022 13:20
graphql-kotlin + java-dataloader with suspended functions

This gist provides wrappers around java-dataloader's classes to make them compatible with coroutines, as well as a "dispatcher" that provides a mechanism for dispatching dataloaders enqueued during a GraphQL operation execution.

Rationale

For context on why this is necessary, see [this issue on graphql-java][issue] and specifically [this comment][comment] with a solution that Apollo uses for their own GraphQL services.

The crux of the issue is that graphql-java's dataloader dispatching mechanism assumes one

@dsyer
dsyer / startup.md
Last active October 30, 2023 07:41
Notes on Spring Boot startup performance

Anatomy of Spring Boot Start Up Timing

When a Spring Boot app starts up with default (INFO) logging, there are some noticeable gaps (pauses). It's worth focusing on the gaps when looking for efficiency savings because of the amount of time they take, and because no-one bothered to log anything, so the chances are the app is doing something repetitive. We can tweak the logging levels to try and fill in the gaps and find out what is going on in there.

Basic empty web app with actuators has three such gaps:

0                                                                        1410ms
|------|---------------------------|-----|------|---------|--------|--------|
       |           578             |     |144(5)|         | 133(6) |
@stephank
stephank / README.md
Created January 18, 2012 15:49
PulseAudio homebrew formula