Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flying-sheep
flying-sheep / PKGBUILD.sh
Created November 8, 2018 10:31
PKGBUILD for Rambox 0.6 (faulty)
# Maintainer: Philipp A. <flying-sheep@web.de>
pkgname=rambox
pkgver=0.6.2
pkgrel=1
pkgdesc='Free and Open Source messaging and emailing app that combines common web applications into one.'
arch=(i686 x86_64)
depends=(electron)
makedepends=(desktop-file-utils asar ruby npm sencha-cmd-6)
url='http://rambox.pro/'
@flying-sheep
flying-sheep / plot.py
Last active November 6, 2018 13:38
Plotly python offline click events in notebook
title = 'blah'
iplot(dict(
data=[dict(
type='scatter',
mode='markers',
x=sorted_info.Submission,
y=sorted_info.NSamples,
text=sorted_info.Series.map(lambda s: s.accession),
transforms=[dict(
@flying-sheep
flying-sheep / userChrome.css
Last active November 8, 2018 08:35
A fix for firefox title bar buttons when you want them to be on the left hand side.
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/* button box to the left */
#TabsToolbar { direction: rtl }
/* tabs ltr again */
#titlebar-content { direction: rtl }
/* buttons inverted */
#tabbrowser-tabs { direction: ltr }
/* keep these ltr */
#titlebar-max,
@flying-sheep
flying-sheep / setup-hetzner.sh
Last active September 24, 2018 20:35
Hetzner Arch setup script
mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt
pacstrap /mnt base grub openssh qemu-guest-agent
genfstab -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt
# Basic setup
ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc
echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
#!/usr/bin/env python
import sys
import csv
from argparse import ArgumentParser
from pathlib import Path
from openpyxl import Workbook
exts = {
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flying-sheep
flying-sheep / file_track.py
Created June 7, 2018 16:18
Open file tracker
import io
import sys
import builtins
import traceback
from functools import wraps
def opener(old_open):
@wraps(old_open)
def tracking_open(*args, **kw):