This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "mime/multipart" | |
| "net/http" | |
| ) | |
| func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo -n -e '\x08\xdb\xb8\x28\x40\x01\x00\x40\x00\xcd\x44\x00' > byteFileForNow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # creating the schema with the default character set | |
| CREATE SCHEMA IF NOT EXISTS my_schema; | |
| ALTER DATABASE my_schema COLLATE = 'utf8mb4_general_ci'; | |
| # get the character set for the schema | |
| USE my_schema; | |
| SELECT @@character_set_database, @@collation_database; | |
| # get the default character set for the schema | |
| SELECT default_character_set_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ALTER TABLE 'my_table_name' CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jq '.[] | .icao, .appVersion, .firmwareVersion' file.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| info: | |
| app: | |
| name: "@project.name@" | |
| description: "@project.description@" | |
| version: "@project.version@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # see spring binding docs here | |
| https://spring.io/projects/spring-cloud-stream#learn | |
| # properties are available in these clases | |
| org.springframework.cloud.stream.binder.rabbit.properties.RabbitConsumerProperties | |
| org.springframework.cloud.stream.binder.rabbit.properties.RabbitProducerProperties | |
| org.springframework.cloud.stream.binder.rabbit.properties.RabbitCommonProperties | |
| # config will look something like this in the application.yml | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://stackoverflow.com/a/26514030/4841710 | |
| mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // very NB | |
| package liquibase.ext; | |
| import io.lettuce.core.RedisClient; | |
| import io.lettuce.core.SetArgs; | |
| import io.lettuce.core.api.StatefulRedisConnection; | |
| import io.lettuce.core.api.sync.RedisCommands; | |
| import liquibase.database.Database; | |
| import liquibase.exception.DatabaseException; | |
| import liquibase.exception.LockException; |