Skip to content

Instantly share code, notes, and snippets.

@Mic92
Mic92 / example.rs
Last active Feb 27, 2021
Attach gdb on demand in rust
View example.rs
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();
}
View gist:4ed46845fef394f6dd853961ba9696a9
{ 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";
View gist:48b8708912d3ff45078d5cfb6f458737
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
View gist:c488b01ec81ae9f755e6f616d4c2d752
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)
View gist:42275462474c679dbe3a28d6e67065d6
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)
View gist:723bead58c9992a27fe0f2d440836068
with import <nixpkgs> {};
mkShell {
nativeBuildInputs = [
bashInteractive
wrapGAppsHook
];
buildInputs = [
glib
];
}
View rhasspy.log
-- 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
View tensorflow.log
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
View gist:96d6837a300d3117053111711b8a2b77
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
mkShell {
buildInputs = [
];
}
View gist:c4b8c3c780ec1d78d4452ef7541b5518
{
"apiVersion": "v1",
"clusters": [
{
"cluster": {
"certificate-authority": "/var/lib/kubernetes/secrets/ca.pem",
"server": "https://eve.r:8443"
},
"name": "local"
}