Skip to content

Instantly share code, notes, and snippets.

View MichaelAquilina's full-sized avatar
😄
working with python + zsh + rust

Michael Aquilina MichaelAquilina

😄
working with python + zsh + rust
  • London, United Kingdom
View GitHub Profile
[tool.poetry]
name = "poetry-export-test2"
version = "0.1.0"
description = ""
authors = ["Michael Aquilina <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.8"
ipdb = "^0.13.3"
ipython = "^7.16.1"
Compiling npmviewer-rust v0.1.0 (/home/michael/Development/npmviewer-rust)
thread 'rustc' panicked at 'failed to lookup `SourceFile` in new context', src/librustc_middle/ty/query/on_disk_cache.rs:456:17
stack backtrace:
0: backtrace::backtrace::libunwind::trace
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86
1: backtrace::backtrace::trace_unsynchronized
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66
2: std::sys_common::backtrace::_print_fmt
at src/libstd/sys_common/backtrace.rs:78
3: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
[ERROR]: gitstatus failed to initialize.
Your Git prompt may disappear or become slow.
The content of /tmp/gitstatus.POWERLEVEL9K.1000.11637.1588606673.3.xtrace.log (gitstatus_start xtrace):
+(anon):7> setopt monitor
+(anon):9> (( ! _GITSTATUS_STATE_POWERLEVEL9K ))
+(anon):10> [[ -r /proc/version && 'Linux version 5.6.6-1-default (geeko@buildhost) (gcc version 9.3.1 20200406 [revision 6db837a5288ee3ca5ec504fbd5a765817e556ac2] (SUSE Linux)) #1 SMP Wed Apr 22 04:15:55 UTC 2020 (c11f000)' == *Microsoft* ]]
+(anon):13> print -rn
-rw-r--r-- 1 root root 361K Feb 27 21:36 /var/log/alternatives.log
-rw-r--r-- 1 root root 615K Mar 2 07:58 /var/log/boot.log
-rw-rw---- 1 root utmp 13K Mar 3 09:52 /var/log/btmp
-rw-r----- 1 root root 2.9K Aug 29 2018 /var/log/firewalld
-rw-rw-r-- 1 root utmp 287K Mar 3 09:56 /var/log/lastlog
lrwxrwxrwx 1 root root 18 Jun 15 2017 /var/log/log -> /run/initramfs/log
-rw-r--r-- 1 root root 0 Jun 15 2017 /var/log/ntp
-rw------- 1 root root 514K Feb 27 17:06 /var/log/pbl.log
-rw-r----- 1 root root 4.6M Mar 3 09:57 /var/log/pk_backend_zypp
-rw-r----- 1 root root 13M Mar 3 09:54 /var/log/pk_backend_zypp-1
03/03/2019 09:55:49 AM - i3 4.16 (2018-11-04) starting
03/03/2019 09:55:49 AM - dpi.c:init_dpi:41 - Resource Xft.dpi not specified, skipping.
03/03/2019 09:55:49 AM - dpi.c:init_dpi:64 - Using fallback for calculating DPI.
03/03/2019 09:55:49 AM - dpi.c:init_dpi:66 - Using dpi = 96
03/03/2019 09:55:49 AM - main.c:main:561 - root_depth = 32, visual_id = 0x000000e8.
03/03/2019 09:55:49 AM - main.c:main:563 - root_screen->height_in_pixels = 1800, root_screen->height_in_millimeters = 476
03/03/2019 09:55:49 AM - main.c:main:564 - One logical pixel corresponds to 1 physical pixels on this display.
03/03/2019 09:55:49 AM - Parsing configfile /home/michael/.config/i3/config
03/03/2019 09:55:49 AM - config_parser.c:upsert_variable:834 - Defined new variable: $up = l
03/03/2019 09:55:49 AM - config_parser.c:upsert_variable:834 - Defined new variable: $down = k
from graphene_django.views import GraphQLView
from graphql.error import GraphQLError, format_error as format_graphql_error
class CustomGraphQLView(GraphQLView):
"""
Custom view that disables inserting detailed errors
"""
@staticmethod
Neomake [ ]: Toggling buffers: 1
Neomake [ ]: Executing: autocmd neomake_autolint TextChangedI <buffer=1> call s:neomake_onchange(1, 500)
Neomake [ ]: Executing: autocmd neomake_autolint BufWinEnter <buffer=1> call s:neomake_onchange(1, 0)
Neomake [ ]: Executing: autocmd neomake_autolint TextChanged <buffer=1> call s:neomake_onchange(1, 500)
Neomake [ ]: Skipping User autocmd NeomakeAutolintSetup: no hooks.
Neomake [+0.01]: Skipping User autocmd NeomakeAutolint: no hooks.
@MichaelAquilina
MichaelAquilina / Zim TODO
Created July 9, 2017 22:02
Creates a ZIM note with a target date
#! /bin/sh
if [ -n "$1" ]; then
echo $1
DATE="$1"
else
DATE="today"
fi
target=$(date +%Y:%m:%d -d $DATE)
@MichaelAquilina
MichaelAquilina / synapse.spec
Last active June 18, 2017 09:18
Synapse spec for Open Build Service
#
# spec file for package synapse
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
#
# spec file for package ripgrep
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which