Skip to content

Instantly share code, notes, and snippets.

@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'

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@namuol
namuol / INSTALL.md
Last active July 24, 2023 11:53
rage-quit support for bash

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@joelpittet
joelpittet / d8-reinstall.sh
Last active December 23, 2015 02:39
Fresh Reinstall Drupal 8
# From your Drupal 8 Root
cd sites/default
# Remove the files and re-create the directory with full permissions
sudo rm -fr files && sudo mkdir files && sudo chmod 777 files
# Remove settings and re-create it with full permissions.
sudo rm settings.php && sudo cp default.settings.php settings.php && sudo chmod 777 settings.php
# Install drupal with standard profile
drush si --db-url=mysql://root:root@localhost/d8 --account-name=admin --account-pass=password standard