Copied from here
Save as .py , put in (Preferences > Browse Packages > User) and restart Sublime
#!/usr/bin/perl -w | |
# eLOC - Effective Lines of Code Counter | |
# JFS (2005) | |
# | |
use strict; | |
use warnings; | |
use sigtrap; | |
use diagnostics; | |
use warnings::register; |
#!/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" |
#!/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 |
Copied from here
Save as .py , put in (Preferences > Browse Packages > User) and restart Sublime
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.
$ 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
## | |
# 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. |
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.