Skip to content

Instantly share code, notes, and snippets.

@MaFeLP
MaFeLP / ArchLinux-Installation-Speedrun.md
Last active February 2, 2024 11:46
A Guide to install ArchLinux very fast (speedrun) with or without a desktop environment (KDE Plasma).

Arch Linux Installation commands

Principles

You install archlinux from their latest ISO-Image with or without a graphical user interface. If you choose to install it with a GUI, you should go on a browser of your choise and open the archlinux.org website and run a neofetch. If you chose to go with a non-gui installation I'm fine with a login prompt on the actual machine.

This gist is a help to go through this speedrun, pretty fast.


Table of contents

  1. Install without GUI
##
# Dockerfile that downloads Heideltime and a TreeTagger dependendency
#
# - https://github.com/HeidelTime/heideltime
# - https://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger
#
# on a Ubuntu 18.04, and builds/configures them together.
#
# Before using this, be sure to review the TreeTagger and Heideltime Licenses,
# as they are not the most permissive ones.
@mohakshah
mohakshah / Instructions.md
Last active July 15, 2023 04:58
Building ZFS on Raspberry Pi 3 running Rasbpian

Introduction

This is a tutorial for building and installing the latest release version (0.7.3 as of writing) of "ZFS on Linux" on a Raspberry Pi 3 running Raspbian Stretch. Specifically, we'll be building the dkms version of ZoL, which saves you the hassle of re-compiling the kernel modules after every kernel update. Even though ZoL added support for building dkms packages for debian in version 0.7.3, the build process on a Raspberry Pi 3 is not quite straight-forward. Hopefully, these instructions will make it easier.

Steps

  1. Install the build dependencies.
$ sudo apt-get update
$ sudo apt-get install build-essential autoconf libtool gawk alien fakeroot
$ sudo apt-get install dkms zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev libssl-dev parted lsscsi wget ksh
@bgromov
bgromov / git-reset-author.sh
Created June 23, 2016 17:50
Git: reset author for ALL commits
#!/bin/sh
# Credits: http://stackoverflow.com/a/750191
git filter-branch -f --env-filter "
GIT_AUTHOR_NAME='Newname'
GIT_AUTHOR_EMAIL='new@email'
GIT_COMMITTER_NAME='Newname'
GIT_COMMITTER_EMAIL='new@email'
" HEAD
@aaira-a
aaira-a / README.md
Created March 5, 2015 06:04
Sublime Text 2/3 script to show character position

Copied from here

Save as .py , put in (Preferences > Browse Packages > User) and restart Sublime

@jhass
jhass / diaspora_spam.rb
Last active February 14, 2022 09:43
Deletes spam comments, posts and local spam accounts. Place into Diasporas root, edit and run. Don't forget to set necessary environment variables.
#!/usr/bin/env ruby
# List of spam accounts
spam_accounts = %w(spamacc@podA spamacc@podB spamacc@mypod)
# Delete comments even if spammer isn't a local user or spam isn't on a
# local users account.
# And delete posts of users in spam_accounts that aren't local.
always_delete = true
@erikw
erikw / snp
Last active December 24, 2023 06:11
snp: Wrap shell command in BTRFS snapper pre-post snapshots and log outputs.
#!/usr/bin/env bash
# Runs a command wrapped in btrfs snapper pre-post snapshots.
# Usage: $ snp <commands>
# e.g.: $ snp pacman -Syyu
# Requirements: snapper (https://wiki.archlinux.org/title/snapper)
# The latest version of this script is hosted at https://gist.github.com/erikw/5229436
log_path="/var/local/log/snp"
date=$(date "+%Y-%m-%d-%H%M%S")
log_file="${log_path}/snp_${date}.log"
anonymous
anonymous / eLOC.pl
Created December 13, 2008 22:21
Effective Lines of Code Counter. Type: perl eLOC.pl --help
#!/usr/bin/perl -w
# eLOC - Effective Lines of Code Counter
# JFS (2005)
#
use strict;
use warnings;
use sigtrap;
use diagnostics;
use warnings::register;