Post your ASCII/UTF-8 in whatever style you prefer. :-)
Please no porn.
#!/bin/sh | |
set -u | |
PROFILEDIR="$(mktemp -p /tmp -d tmp-fx-profile.XXXXXX.d)" | |
[ -d "${PROFILEDIR}" ] || exit "mktemp failed" | |
firefox -profile "${PROFILEDIR}" -no-remote -new-instance $* | |
rm -rf "${PROFILEDIR}" |
Almost everytime I'm uploading a bigger file (65MB in this case) via. my browser (Firefox, build provided by mozilla.org as .tar.gz
), my system crashes.
Issue especially happens when I'm doing different things at the same time. (Watching a video, reading email + uploading a file). System is using an SSD, bug also appears if the file is served from /tmp
, though.
-,- | -,- |
---|---|
OS | Debian Testing (Release Buster / 10) |
Kernel | Linux 4.14.0-3-amd64 #1 SMP Debian 4.14.17-1 (2018-02-14) x86_64 GNU/Linux , Linux 4.18.5-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 24 12:48:58 UTC 2018 x86_64 GNU/Linux |
#!/bin/sh -eu | |
param="${1:-help}" | |
# this 'implements' a echo "${param}" | head -1 | |
# in order to avoid passing a multiline string to: | |
# - command -V -- "${param}" | |
# - eval "${param}" | |
# leading in possible executing of ${param} | |
param="${param%% | |
*}" | |
current="$(xclip -o -sel clip)" |
#!/bin/sh | |
set -ue | |
error() { | |
echo "${*:-Something failed}" | |
exit 1 | |
} | |
check() { | |
arguments="${*}" |
# add this to your i3 config to float the feh image on your screen | |
# float any window with the title float | |
for_window [title="^float$"] floating enable, border normal |
ZFS on Linux with LUKS encrypted disks
$ lsblk -io KNAME,TYPE,SIZE,MODEL
symbol:~# lsblk -io KNAME,TYPE,SIZE,MODEL
KNAME TYPE SIZE MODEL
sda disk 3.7T ST...
sdb disk 3.7T WDC WD40...
dm-1 crypt 3.7T
dm-2 lvm 3.7T
# Put this into your ~/.zshrc | |
# Enables chpwd, which runs a command if you cd/pushd/popd... | |
# wrapper around ls, which ommits output if more than 1/3 of screen would be used | |
# Demo https://asciinema.org/a/123167 | |
ls_reduced() { | |
files="$(ls -tr --color=always -- "$(pwd)")" | |
lines="$(printf -- "%b" "${files}" | wc -l)" | |
term_height="$(tput lines)" | |
term_target_height="$((term_height/3))" |
#!/bin/sh | |
# Findmount of OR (Mount and Unmount) a given block device | |
# ask for user input and | |
# rsync it's entire content to a specified path | |
# and do it without root privileges | |
# Requires: rsync, gvfs-mount, grep with '-c' (count option), awk, ✨Unicode | |
# Useful for quickly copying photos from a camera to a specified directory | |
# and unmounting (but not deleting content) properly. | |
set -ue |
#!/bin/sh | |
# 2017 © MIT https://gist.github.com/norpol/ | |
# Usage: pidiotop.sh <PID> | |
# Example: pidiotop.sh $(pgrep -n dd) | |
# Requires: bc | |
set -ue | |
pid="${1}" | |
interval=10 | |
bbytes= | |
bytes= |