dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress && sync
loadkeys <your-keymap>
server: | |
port: 3000 | |
spring: | |
main.banner-mode: OFF | |
datasource: | |
type: com.zaxxer.hikari.HikariDataSource | |
url: jdbc:postgresql://${DB_HOST}:${DB_PORT}/${DB_NAME} | |
username: ${DB_USER} | |
password: ${DB_PASS} |
import { FactoryProvider, Logger } from '@nestjs/common'; | |
import Keycloak from 'keycloak-connect'; | |
export const KEYCLOAK_INSTANCE = 'KEYCLOAK_INSTANCE'; | |
export const keycloakProvider: FactoryProvider = { | |
provide: KEYCLOAK_INSTANCE, | |
useFactory: () => { | |
const keycloakConfig: any = { | |
realm: '', |
import io.r2dbc.spi.* | |
import kotlinx.coroutines.flow.Flow | |
import kotlinx.coroutines.reactive.asFlow | |
import kotlinx.coroutines.reactive.awaitFirst | |
import kotlinx.coroutines.reactive.awaitFirstOrNull | |
import kotlin.reflect.KClass | |
/** | |
* An R2DBC client that uses Kotlin coroutines. | |
*/ |
BRIBE-A-CHOCOLATE LICENSE | |
Copyright (c) $today.year Author | |
This software is conditionally proprietary. As long as this notice | |
is attached, you will not in any verbatim modify, or release the | |
software without permission from the author. | |
If you think the software is worth it, you may send an entire bag two | |
kilograms minimum of chocolates (in mass) to each personnel that |
Disclaimer: Please follow this guide being aware of the fact that I'm not an expert regarding the things outlined below, however I made my best attempt. A few people in IRC confirmed it worked for them and the results looked acceptable.
Attention: After following all the steps run gdk-pixbuf-query-loaders --update-cache
as root, this prevents various gdk-related bugs that have been reported in the last few hours. Symptoms are varied, and for Cinnamon the DE fails to start entirely while for XFCE the icon theme seemingly can't be changed anymore etc.
Check the gist's comments for any further tips and instructions, especially if you are running into problems!
Results after following the guide as of 11.01.2017 13:08:
import androidx.work.Worker | |
object AndroidWorkerInjection { | |
fun inject(worker: Worker) { | |
checkNotNull(worker, { "worker" }) | |
val application = worker.applicationContext | |
if (application !is HasWorkerInjector) { | |
throw RuntimeException("${application.javaClass.canonicalName} does not implement ${HasWorkerInjector::class.java.canonicalName}") | |
} |
class MyFragment : Fragment() { | |
private fun randomMaterialColor(typeColor: String): Int { | |
var returnColor = Color.GRAY | |
val arrayId = resources.getIdentifier("mdcolor_$typeColor", "array", activity!!.packageName) | |
if (arrayId != 0) { | |
val colors = resources.obtainTypedArray(arrayId) | |
val index = (Math.random() * colors.length()).toInt() | |
returnColor = colors.getColor(index, Color.GRAY) | |
colors.recycle() |