Skip to content

Instantly share code, notes, and snippets.

View make-github-pseudonymous-again's full-sized avatar

Notas Hellout make-github-pseudonymous-again

  • Joined on Sep 24, 2012
View GitHub Profile
@make-github-pseudonymous-again
make-github-pseudonymous-again / useDeferredValue.js
Created February 7, 2023 20:58
Can `useDeferredValue` be built on top of `useTransition`?
import {useEffect, useState, useTransition} from 'react';
export const useDeferredValue = (value) => {
const [, startTransition] = useTransition();
const [deferredValue, setDeferredValue] = useState(value);
useEffect(() => {
startTransition(() => {
setDeferredValue(value);
});
@make-github-pseudonymous-again
make-github-pseudonymous-again / README.md
Created January 1, 2021 16:18 — forked from taxilian/README.md
Mongodb scripts for incremental backup

Introduction

I can't take credit for much of the work here -- I adapted it from this blog post: https://tech.willhaben.at/mongodb-incremental-backups-dff4c8f54d58

My main contribution was to make it a little easier to use with docker as well as numerous little cleanup tasks. I also made it gzip the oplog backups and added support for SSL connections

Note that I havne't yet tested the point in time restore script; it likely needs work, particularly to make things work with the gzipped oplog files

@make-github-pseudonymous-again
make-github-pseudonymous-again / userChrome.css
Last active December 20, 2020 19:12
Circumvent Firefox white flash on new tab (tested with tridactyl).
@-moz-document url(chrome://browser/content/browser.xhtml)
{
#main-window,
browser[type="content-primary"],
browser[type="content"],
tabbrowser#content,
#content,
browser[type="content"] > html,
#tabbrowser-tabpanels,
@make-github-pseudonymous-again
make-github-pseudonymous-again / scanimage.log
Created August 29, 2020 09:20
Scanner MF8000C Series is not supported, model is unknown!
16:05:58 [N] ➜ scanimage -L
[16:05:58.923035] [bjnp] add_scanner: Scanner MF8000C Series is not supported, model is unknown! Please report upstream
= Arch Linux step-by-step installation =
= http://blog.fabio.mancinelli.me/2012/12/28/Arch_Linux_on_BTRFS.html =
== Boot the installation CD ==
== Create partition ==
cfdisk /dev/sda
* Create a partition with code 8300 (Linux)
# Xorg
xorg-server
xorg-xinit
# Window Manager
i3-wm
i3lock
i3status
# Xorg Tools
# Drawing
ipe
geogebra
gimp
inkscape
# Minimal LaTeX install for CS
texlive-bin # TeX Live binaries
texlive-core # TeX Live core distribution
texlive-science # TeX Live - Typesetting for mathematics, natural and computer sciences
texlive-pictures # TeX Live - Packages for drawings graphics
texlive-pstricks # TeX Live - Additional PSTricks packages
texlive-latexextra # TeX Live - Large collection of add-on packages for LaTeX (contains authblk.sty)
texlive-bibtexextra # TeX Live - Additional BibTeX styles and bibliography databases (contains plainurl.bst)
@make-github-pseudonymous-again
make-github-pseudonymous-again / ublock-youtube-1.txt
Last active April 22, 2021 18:56
Distraction-free youtube with ublock origin
!block all content on homepage
www.youtube.com##ytd-browse[page-subtype="home"].ytd-page-manager.style-scope
!remove right side column suggestions
www.youtube.com###secondary
!Remove suggestion tiles at the end of a video
www.youtube.com##.ytp-suggestion-set.ytp-videowall-still
www.youtube.com##.ytp-endscreen-next.ytp-button
www.youtube.com##.ytp-endscreen-previous.ytp-button