Skip to content

Instantly share code, notes, and snippets.

View mattbroekhuis's full-sized avatar

Matt Broekhuis mattbroekhuis

View GitHub Profile
@mattbroekhuis
mattbroekhuis / VBoxStartup.log
Last active August 29, 2015 14:25
failure to start vm
````
1874.698: Log file opened: 4.3.30r101610 g_hStartupLog=0000000000000024 g_uNtVerCombined=0x611db110
1874.698: \SystemRoot\System32\ntdll.dll:
1874.698: CreationTime: 2015-05-12T00:00:58.609339800Z
1874.698: LastWriteTime: 2015-03-17T05:15:22.298856000Z
1874.698: ChangeTime: 2015-05-12T09:05:13.914000000Z
1874.698: FileAttributes: 0x20
1874.698: Size: 0x1a5ba0
1874.698: NT Headers: 0xe0
1874.698: Timestamp: 0x5507b728
@mattbroekhuis
mattbroekhuis / HibernateDDLFlywayMigration.java
Last active September 9, 2019 12:56
Export hibernate ddl changes to flyway db migrations in spring mvc or spring boot
@Slf4j
@Component
@Profile("exportDDL")
@org.springframework.context.annotation.Configuration
class HibernateDDLFlywayMigration {
@Bean ExportDDLExecutor exportDDLExecutor(Environment environment, Flyway flyway, EntityManagerFactory factory){
return new ExportDDLExecutor(environment, flyway, factory)
}
@mattbroekhuis
mattbroekhuis / gist:c014cd2e292000089d7ee58eb1fc9e1b
Created January 16, 2026 23:11
build a python file in terraform
resource "null_resource" "build_lambda" {
triggers = {
src_hash = sha1(join("", [for f in fileset("${path.module}/../src", "**") : filesha1("${path.module}/../src/${f}")]))
pyproject_hash = filesha1("${path.module}/../pyproject.toml")
poetry_lock_hash = filesha1("${path.module}/../poetry.lock")
}
provisioner "local-exec" {
command = "cd .. && make build"
}