Skip to content

Instantly share code, notes, and snippets.

View rscircus's full-sized avatar
💭
👋

Roland Siegbert rscircus

💭
👋
View GitHub Profile
@rscircus
rscircus / .zshrc
Created August 1, 2022 20:17
rework git
# Git
#
function git() {
if [[ "$@" == "" ]]; then
command git status && command git remote -v && command git show-branch --list
elif [[ "$@" == "zip" ]]; then
command git archive --format=zip HEAD -o $(basename $PWD).zip --verbose
elif [[ "$@" == "uncommit" ]]; then
command git reset --soft HEAD~1
elif [[ "$@" == "pushall" ]]; then
@rscircus
rscircus / nim_in_one_file.nim
Last active July 22, 2022 14:26
I'm falling in love with nim...
# Nim (1.6.6) - let's get started
# These are my notes from nim-by-example :)
# that's a comment :)
echo "Hello, World!"
# Compiling:
# ==========
#
# You can define build tasks in 'tasks.json'
@rscircus
rscircus / matlab_refresher.m
Created July 21, 2022 10:58
OCTAVE/MATLAB refresher while preparing for Interviews
format compact
%
% OOP
%
% INFO
% Must be created in own file with class name equal to filename -> shape
a1 = Shape(10,20);
disp(a1)

Master List of Logical Fallacies

original article here

Fallacies are fake or deceptive arguments, "junk cognition," that is, arguments that seem irrefutable but prove nothing. Fallacies often seem superficially sound and they far too often retain immense persuasive power even after being clearly exposed as false. Like epidemics, fallacies sometimes "burn through" entire populations, often with the most tragic results, before their power is diminished or lost. Fallacies are not always deliberate, but a good scholar’s purpose is always to identify and unmask fallacies in arguments. Note that many of these definitions overlap, but the goal here is to identify contemporary and classic fallacies as they are used in today's discourse. Effort has been made to avoid mere word-games (e.g., "The Fallacist's Fallacy," or the famous "Crocodile's Paradox" of classic times), or the so-called "fallacies" of purely formal and symbolic, business and financia

// Logiops (Linux driver) configuration for Logitech MX Master 3.
// Includes gestures, smartshift, DPI.
// Tested on logid v0.2.3 - GNOME 3.38.4 on Zorin OS 16 Pro
// What's working:
// 1. Window snapping using Gesture button (Thumb)
// 2. Forward Back Buttons
// 3. Top button (Ratchet-Free wheel)
// What's not working:
// 1. Thumb scroll (H-scroll)
// 2. Scroll button
@rscircus
rscircus / fixmouselag.sh
Last active August 25, 2023 06:55 — forked from productiveme/fixmouselag.sh
Fix bluetooth mouse lag on Ubuntu
#!/bin/bash
MouseIdentifierString="Mouse"
writeOpts() {
sudo cat <<'EOF' | sudo tee -a /var/lib/bluetooth/$1/$2/info
[ConnectionParameters]
MinInterval=6
MaxInterval=7
Latency=0
@rscircus
rscircus / tufte-style.css
Created March 15, 2021 18:17
Tufte Style CSS
@charset "UTF-8";
/* Import ET Book styles
adapted from https://github.com/edwardtufte/https://cdnjs.cloudflare.com/ajax/libs/tufte-css/1.7.2/et-book/blob/gh-pages/et-book.css */
@font-face { font-family: "et-book";
src: url("https://cdnjs.cloudflare.com/ajax/libs/tufte-css/1.7.2/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot");
src: url("https://cdnjs.cloudflare.com/ajax/libs/tufte-css/1.7.2/et-book/et-book-roman-line-figures/et-book-roman-line-figures.eot?#iefix") format("embedded-opentype"), url("https://cdnjs.cloudflare.com/ajax/libs/tufte-css/1.7.2/et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff") format("woff"), url("https://cdnjs.cloudflare.com/ajax/libs/tufte-css/1.7.2/et-book/et-book-roman-line-figures/et-book-roman-line-figures.ttf") format("truetype"), url("https://cdnjs.cloudflare.com/ajax/libs/tufte-css/1.7.2/et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg#etbookromanosf") format("svg");
font-weigh
@rscircus
rscircus / emacs-pop-os-install.org
Last active June 17, 2024 07:35
Install Emacs on Pop!_OS 20.04

Emacs 27 on Pop!_OS

Install Emacs using flatpak

  • Install via Pop!_shop

Add the following to `/usr/local/bin/emacs`:

#!/usr/bin/env bash
#!/bin/bash
dl_and_install_build_prereq() {
# Prerequisites: https://openwrt.org/docs/guide-developer/quickstart-build-images
# Download and install prerequisites for compiling firmware
sudo apt-get -y update && sudo apt-get -y upgrade
sudo apt -y install subversion g++ zlib1g-dev build-essential git python time
sudo apt -y install libncurses5-dev gawk gettext unzip file libssl-dev wget
sudo apt -y install libelf-dev ecj fastjar java-propose-classpath