Skip to content

Instantly share code, notes, and snippets.

View anthonyclarka2's full-sized avatar

Anthony Clark anthonyclarka2

  • Nexient
  • Ann Arbor, MI
View GitHub Profile
@alanorth
alanorth / clean-snap-sync-external.sh
Last active January 3, 2023 14:24
Clean snapshots created by snap-sync
#!/usr/bin/env bash
#
# clean-snap-sync-external.sh v1.0.1 (2021-07-09)
#
# Changes
# -------
# 2021-07-09:
# - adjust logic to keep latest x, instead of delete oldest x
# - make output cleaner (hide btrfs subvolume delete output)
#
@hursto75
hursto75 / keybase.md
Created September 17, 2019 16:44
keybase

Keybase proof

I hereby claim:

  • I am hursto75 on github.
  • I am hursto75 (https://keybase.io/hursto75) on keybase.
  • I have a public key ASB9Mdm5mjBVZP3oJ21STyzlVqx9GGgRTIZimPAUvHi5nwo

To claim this, I am signing this object:

@goiko74
goiko74 / swap_check.sh
Last active September 5, 2019 17:51
display swap usage per PID (no sudo)
#!/bin/bash
# Get current swap usage for all running processes
# Erik Ljungstrom 27/05/2011
# Modified by Mikko Rantalainen 2012-08-09
# Pipe the output to "sort -nk3" to get sorted output
# Modified by Marc Methot 2014-09-18
# removed the need for sudo
SUM=0
OVERALL=0
@lizthegrey
lizthegrey / attributes.rb
Last active February 24, 2024 14:11
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
# Thanks to this post:
# http://blog.ikato.com/post/15675823000/how-to-install-consolas-font-on-mac-os-x
$ brew install cabextract
$ cd ~/Downloads
$ mkdir consolas
$ cd consolas
$ curl -O http://download.microsoft.com/download/f/5/a/f5a3df76-d856-4a61-a6bd-722f52a5be26/PowerPointViewer.exe
$ cabextract PowerPointViewer.exe
$ cabextract ppviewer.cab