Skip to content

Instantly share code, notes, and snippets.

View MindFlavor's full-sized avatar

Francesco Cogno MindFlavor

View GitHub Profile
" config based on awesome https://sharksforarms.dev/posts/neovim-rust/
syntax on
syntax enable
filetype plugin indent on
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.local/share/nvim/plugged')
! Sensible defaults
XTerm.vt100.locale: false
XTerm.vt100.utf8: true
XTerm.vt100.scrollTtyOutput: false
XTerm.vt100.scrollKey: true
XTerm.vt100.bellIsUrgent: true
XTerm.vt100.metaSendsEscape: true
! Styling
XTerm.vt100.faceName: Iosevka Medium
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
set-window-option -g mode-keys vi
set-option -g default-shell "/usr/bin/bash"
set -g default-terminal "screen-256color" # Setting the correct term
# clone from https://github.com/jimeh/tmux-themepack
source-file "${HOME}/src/various/tmux-themepack/powerline/double/yellow.tmuxtheme"
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@MindFlavor
MindFlavor / .bashrc
Last active February 23, 2021 08:50
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Make sure to install Z with pikaur -S z
[[ -r "/usr/share/z/z.sh" ]] && source /usr/share/z/z.sh
@MindFlavor
MindFlavor / .profile
Last active May 10, 2019 07:37
my current .profile
export PATH="$HOME/.cargo/bin:$PATH"
export LD_LIBRARY_PATH=~/bin:$(rustc --print sysroot)/lib:$LD_LIBRARY_PATH
export TESSDATA_PREFIX=~/
export RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/src
export MSBuildSDKsPath=/opt/dotnet/sdk/2.1.500/Sdks
export GPG_TTY=$(tty)
@MindFlavor
MindFlavor / .vimrc
Last active February 27, 2021 18:54
my current vimrc
syntax on
syntax enable
filetype plugin indent on
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.local/share/nvim/plugged')
Plug 'tpope/vim-sensible'
Plug 'scrooloose/nerdtree'
fn code() -> impl Future<Item = (), Error = ErrorB> {
io_a()
.from_err()
.and_then(|_| done(met_a()))
.from_err()
.and_then(|_| done(met_b()).and_then(|_| io_b()))
}
#![feature(conservative_impl_trait)]
extern crate futures;
use futures::future::*;
#[derive(Debug)]
struct ErrorA;
#[derive(Debug)]
struct ErrorB;