Skip to content

Instantly share code, notes, and snippets.

View gavlooth's full-sized avatar

christos chatzifountas gavlooth

  • Greece
View GitHub Profile
@gavlooth
gavlooth / init.vim
Created July 3, 2018 14:59
My neovim configuration
let g:python3_host_prog = '/usr/bin/python3.6'
call plug#begin('~/.vim/plugged')
Plug 'JamshedVesuna/vim-markdown-preview'
Plug 'vim-scripts/SpellChecker'
Plug 'ntpeters/vim-better-whitespace'
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-fugitive'
Plug 'bling/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Traceback (most recent call last):
File "manage.py", line 180, in <module>
cli()
File "/home/liveservice/.local/lib/python3.6/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/liveservice/.local/lib/python3.6/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/liveservice/.local/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/liveservice/.local/lib/python3.6/site-packages/click/core.py", line 956, in invoke
#lang racket
#lang racket/base
(require xml)
(require sxml/sxpath)
(require simple-http)
(require racket/gui/base)
(define (weave xs ys)
(match (list xs ys)
%module gbwtgraph
%feature("flatnested", "1");
%feature("notabstract") GBWTGraph;
%include <std_pair.i>
%include <std_vector.i>
%include <std_string.i>
%include <stdint.i>
%inline {
@gavlooth
gavlooth / Dockerfile
Last active June 6, 2022 19:42
Swig gbwtgraph docker build
FROM debian:bookworm-slim AS binary
LABEL authors="Erik Garrison, Christos Chatzifountas"
LABEL description="Preliminary docker image containing all requirements for bgwt"
LABEL base_image="debian:bullseye-slim"
LABEL about.home="https://github.com/pangenome/privacy-pangenomics"
LABEL about.license="SPDX:MIT"
SHELL ["/bin/bash", "-c"]
@gavlooth
gavlooth / Dockerfile
Last active June 8, 2022 11:53
DockerFile for gbwt build
FROM debian:bookworm-slim AS binary
LABEL authors="Erik Garrison, Christos Chatzifountas"
LABEL description="Preliminary docker image containing all requirements for bgwt"
LABEL base_image="debian:bullseye-slim"
LABEL about.home="https://github.com/pangenome/privacy-pangenomics"
LABEL about.license="SPDX:MIT"
SHELL ["/bin/bash", "-c"]
@gavlooth
gavlooth / diff-privacy.rkt
Last active June 8, 2022 11:51
gbwtgraph racket interop
#lang racket
(require math/base)
(require racket/format)
(require pmap)
(require racket/random)
(require "gbwtgraph")
(require describe)
(require racket/system)
(require date)
@gavlooth
gavlooth / gist:2f962e7410ef5036e6c5f6c5fb87831c
Created November 19, 2023 10:29
Get the name of current audio device
#!/bin/env zsh
pactl --format=json list cards |jq -c '.[] | select (.name | contains('\"$(pactl --format=json info | jq . |jq ".default_sink_name" | cut -d"." -f2)\"'))?' | jq '.properties."device.description"' | xargs -n 1 echo "Audio Device: "