Skip to content

Instantly share code, notes, and snippets.

View ubuntudroid's full-sized avatar

Sven Bendel ubuntudroid

View GitHub Profile
@ubuntudroid
ubuntudroid / gptPrompt.txt
Last active February 12, 2023 12:34
Fantasy characters JSON GPT-3 prompt
Create a character for a fantasy roleplaying adventure, with background story, physical attributes, mental attributes and appearance. Return them in JSON like this:
{
"name": …,
"background" …,
"physical_attributes": …,
"mental_attributes": …,
"appearance": …
}
All character values should be Strings.
@ubuntudroid
ubuntudroid / gist:068fab070a3e436f4cbac7860ad3e980
Created December 17, 2022 18:14
Output of `git log --tags --since=1.year.ago --oneline`
e4a730401 (tag: 6.0.4, origin/release/6.0.4, release/6.0.4) Fix tracking of paymentflow_launched
c4b1b33d9 (tag: 6.0.3, origin/release/6.0.3, release/6.0.3) CD-1048 Track new events paymentflow_launched and onboarding_complete
5035d8c6b Bump version for release 6.0.3
fc391fb81 (tag: 6.0.2) Bump version for 6.0.2 release
bb378fcd5 Merge pull request #1707 from ubuntudroid/dependabot/gradle/com.appsamurai.storyly-storyly-1.27.3
166d44b15 Bump storyly from 1.27.1 to 1.27.3
a53d87f15 (tag: 6.0.1) Bump version for 6.0.1 release
85a705075 Fix lock handling in Storyly label fetching
...
__pthread_kill 0x00000001ba63a9e8
pthread_kill 0x00000001dab8d824
abort 0x000000018b0cb0b4
konan::abort() 0x00000001012ce774
kotlin::internal::RuntimeAssertFailedPanic(bool, char const*, char const*, …) 0x00000001012ce458
__Kotlin_ObjCExport_initialize_block_invoke 0x00000001012d2cb8
_dispatch_client_callout 0x000000018091e198
_dispatch_once_callout 0x00000001808ee7b8
Kotlin_ObjCExport_initialize 0x00000001012d08b8
+[KotlinBase initialize] 0x00000001010fe2fc
name: Label auto-merge PRs
on:
pull_request_target:
types: [ auto_merge_enabled, auto_merge_disabled ]
jobs:
add_remove_labels:
runs-on: ubuntu-latest
steps:
- uses: ubuntudroid/automerge-labeler@v1
// changing the color name
colorDao.upsert(oldColorDefinition.copy(name="better color name"))
// changing the color code
colorDao.upsert(oldColorDefinition.copy(hex="#ca9555"))
// changing color code and name
colorDao.upsert(oldColorDefinition.copy(name="better color name", hex="#ca9555"))
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun upsert(color: Color): Completable // or whatever return type you need
@Entity(
foreignKeys = [
ForeignKey(
entity = Color::class,
parentColumns = ["id"],
childColumns = ["color_id"],
onDelete = ForeignKey.CASCADE, // or any other strategy
onUpdate = ForeignKey.CASCADE, // or any other strategy
// deferred = true
)
@ubuntudroid
ubuntudroid / config.json
Created July 15, 2019 15:28
tridactyl config
{
"configversion": "1.7",
"subconfigs": {
"app.bitrise.io": {
"noiframe": "false"
},
"www.google.com": {
"followpagepatterns": {
"next": "Next",
"prev": "Previous"
ext.apiToken = System.getenv('API_TOKEN') // replace the ext. prefix with def if you don’t want to provide the API token to the default properties which you can then access from all your build scripts
Properties properties = new Properties()
def propertiesFile = project.rootProject.file('local.properties')
if (propertiesFile.exists()) {
 properties.load(propertiesFile.newDataInputStream())
}
ext.apiToken = properties.getProperty('api.token')