Skip to content

Instantly share code, notes, and snippets.

@Mic92
Mic92 / example.rs
Last active February 27, 2021 10:41
Attach gdb on demand in rust
mod gdb_break;
pub fn main() {
// this will create a new tmux session with gdb
// To let the program continue run `detach` in gdb and close it
gdb_break();
}
{ config, pkgs, ... }:
let
ayu-vim = pkgs.vimUtils.buildVimPluginFrom2Nix {
pname = "ayu-vim";
version = "2017-12-09";
src = pkgs.fetchFromGitHub {
owner = "ayu-theme";
repo = "ayu-vim";
rev = "4c418ff99fe898121643bf60cc0d9752c31c2937";
src/Text/Pandoc/Class/PandocIO.hs:58:114-132: error:
• Couldn't match expected type ‘Data.Text.Internal.Text’
with actual type ‘[Char]’
• In the first argument of ‘lookupEnv’, namely
‘"SOURCE_DATE_EPOCH"’
In the second argument of ‘(=<<)’, namely
‘(lookupEnv "SOURCE_DATE_EPOCH")’
In the expression:
maybe
IO.getCurrentTime
src/Text/Pandoc/Class/PandocIO.hs:59:20-91: error:
• Couldn't match type ‘time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime’
with ‘Maybe Data.Text.Internal.Text
-> PandocIO time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime’
Expected type: (String
-> m0 time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime)
-> Maybe Data.Text.Internal.Text
-> PandocIO time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime
Actual type: (String
-> m0 time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime)
src/Text/Pandoc/Class/PandocIO.hs:59:20-123: error:
• Couldn't match type ‘time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime’
with ‘m0 (Maybe Data.Text.Internal.Text)
-> PandocIO time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime’
Expected type: (String
-> m1 time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime)
-> m0 (Maybe Data.Text.Internal.Text)
-> PandocIO time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime
Actual type: (String
-> m1 time-1.9.3:Data.Time.Clock.Internal.UTCTime.UTCTime)
with import <nixpkgs> {};
mkShell {
nativeBuildInputs = [
bashInteractive
wrapGAppsHook
];
buildInputs = [
glib
];
}
-- Journal begins at Thu 2020-12-10 17:10:09 CET. --
Jan 27 12:08:38 turingmachine joerg[17556]: [DEBUG:2021-01-27 12:08:38,821] rhasspyspeakers_cli_hermes: Connecting to localhost:12183
Jan 27 12:08:38 turingmachine joerg[17556]: 1611745718: New connection from ::1 on port 12183.
Jan 27 12:08:38 turingmachine joerg[17556]: 1611745718: New client connected from ::1 as auto-0B71D296-CC5B-1AB1-F8E1-F4761F87FE18 (p2, c1, k60).
Jan 27 12:08:38 turingmachine joerg[17556]: [DEBUG:2021-01-27 12:08:38,847] asyncio: Using selector: EpollSelector
Jan 27 12:08:38 turingmachine joerg[17556]: [DEBUG:2021-01-27 12:08:38,852] rhasspyspeakers_cli_hermes: Connected to MQTT broker
Jan 27 12:08:38 turingmachine joerg[17556]: [DEBUG:2021-01-27 12:08:38,854] rhasspyspeakers_cli_hermes: Subscribed to hermes/audioServer/toggleOn
Jan 27 12:08:38 turingmachine joerg[17556]: [DEBUG:2021-01-27 12:08:38,857] rhasspyspeakers_cli_hermes: Subscribed to rhasspy/audioServer/setVolume
Jan 27 12:08:38 turingmachine joerg[17556]: [DEBUG:2021-01
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing wheel setup hook
Using wheelUnpackPhase
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
buildInputs = [
];
}
{
"apiVersion": "v1",
"clusters": [
{
"cluster": {
"certificate-authority": "/var/lib/kubernetes/secrets/ca.pem",
"server": "https://eve.r:8443"
},
"name": "local"
}