Skip to content

Instantly share code, notes, and snippets.

View pimeys's full-sized avatar

Julius de Bruijn pimeys

View GitHub Profile

Pasta recipe

Wet ingredients

  • 2 large eggs
  • 3 large yolks
  • Enough water to get 185 grams total

Dry ingredients

@pimeys
pimeys / hue.yaml
Last active November 2, 2022 11:43
blueprint:
name: ZHA - Philips Hue Dimmer Switch
description: 'Control lights with a Philips Hue Dimmer Switch.
The top "on" button will turn the lights on to the last set brightness
(unless the force brightness is toggled on in the blueprint).
Oct 10 19:34:48 naunau kernel: amdgpu: Move buffer fallback to memcpy unavailable
Oct 10 19:34:48 naunau kernel: amdgpu 0000:0c:00.0: amdgpu: 00000000839d5649 pin failed
Oct 10 19:34:48 naunau kernel: amdgpu 0000:0c:00.0: amdgpu: (-19) kernel bo pin failed
Oct 10 19:34:48 naunau kernel: amdgpu 0000:0c:00.0: amdgpu: HDCP: Failed to initialize HDCP
Oct 10 19:34:48 naunau kernel: amdgpu: Move buffer fallback to memcpy unavailable
Oct 10 19:34:48 naunau kernel: amdgpu 0000:0c:00.0: amdgpu: 00000000839d5649 pin failed
Oct 10 19:34:48 naunau kernel: amdgpu 0000:0c:00.0: amdgpu: (-19) kernel bo pin failed
Oct 10 19:34:48 naunau kernel: amdgpu 0000:0c:00.0: amdgpu: DTM: Failed to initialize DTM
Oct 10 19:34:48 naunau kernel: amdgpu: Move buffer fallback to memcpy unavailable
Oct 10 19:34:48 naunau kernel: amdgpu 0000:0c:00.0: amdgpu: 00000000839d5649 pin failed
-- two schemas
create schema [janEatsHisHat];
create schema [juliusQuitsHisJob];
-- this one in the first schema, it's the "parent" table
create table [janEatsHisHat].[delicious] (id int primary key);
-- this one in the second, the "child" table
create table [juliusQuitsHisJob].[arbeitsamt] (
id int primary key,
-- two schemas
create schema "janEatsHisHat";
create schema "juliusQuitsHisJob";
-- this one in the first schema, it's the "parent" table
create table "janEatsHisHat"."delicious" (id int primary key);
-- this one in the second, the "child" table
create table "juliusQuitsHisJob"."arbeitsamt" (
id int primary key,
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/n3ljilpgk55p7lxmcjv9hd8y4ia5zxk7-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
patching script interpreter paths in po/check-translations.sh tests/unittest_inspector.py
po/check-translations.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/iqprjr5k5385bhf1dzj07zwd5p43py1n-bash-5.1-p12/bin/bash"
tests/unittest_inspector.py: interpreter directive changed from "#! /usr/bin/env python3" to "/nix/store/rppr9s436950i1dlzknbmz40m2xqqnxc-python3-3.9.9/bin/python3"
@nix { "action": "setPhase", "phase": "configurePhase" }
#!/usr/bin/env python
import i3ipc
ipc = i3ipc.Connection()
prev_focused = None
for window in ipc.get_tree():
if window.focused:
prev_focused = window
org.gradle.internal.exceptions.LocationAwareException: A problem occurred configuring project ':app'.
at org.gradle.initialization.exception.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:99)
at org.gradle.initialization.exception.DefaultExceptionAnalyser.collectFailures(DefaultExceptionAnalyser.java:62)
at org.gradle.initialization.exception.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:48)
at org.gradle.initialization.exception.StackTraceSanitizingExceptionAnalyser.transform(StackTraceSanitizingExceptionAnalyser.java:30)
at org.gradle.initialization.DefaultGradleLauncher.finishBuild(DefaultGradleLauncher.java:162)
at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:129)
at org.gradle.initialization.DefaultGradleLauncher.getConfiguredBuild(DefaultGradleLauncher.java:100)
at org.gradle.internal.invocation.GradleBuildController$2.execute(GradleBuildController.java:70)
at org.gradle.internal.invocat
diff --git a/src/postgres.rs b/src/postgres.rs
index c36c165..7d14b27 100644
--- a/src/postgres.rs
+++ b/src/postgres.rs
@@ -1,4 +1,4 @@
-use byteorder::{BigEndian, ReadBytesExt};
+use byteorder::{BigEndian, ReadBytesExt, WriteBytesExt};
use bytes::{BytesMut, BufMut};
use num::Zero;
use crate::Decimal;
error: ambiguous `+` in a type
--> src/connector/postgres/conversion.rs:19:14
|
19 | ) -> Vec<&'a dyn tokio_postgres::types::ToSql + Sync> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use parentheses to disambiguate: `(dyn tokio_postgres::types::ToSql + Sync)`
error[E0277]: `dyn core::future::future::Future<Output = std::result::Result<postgres_types::Type, tokio_postgres::error::Error>> + std::marker::Send` cannot be shared between threads safely
--> src/connector/postgres.rs:247:9
|
247 | metrics::query("postgres.execute", &sql, &params, || {