Skip to content

Instantly share code, notes, and snippets.

View rickyhewitt's full-sized avatar

Ricky Hewitt rickyhewitt

View GitHub Profile
@cmavr8
cmavr8 / secure-ssh.yml
Last active January 4, 2024 19:52
Secure SSH configuration ansible playbook. Last updated years ago, NOT recommended for use. There are better ways to do this today.
---
# SSH server settings, in line with https://stribika.github.io/2015/01/04/secure-secure-shell.html
# Before using, change myhosts to your hosts' nickname and myuser to your username (two instances! make sure you replace both or you'll be locked out of ssh!)
- hosts: myhosts
become: true
remote_user: myuser
tasks:
# Key exchange, ciphers and MACs
- lineinfile: dest=/etc/ssh/sshd_config regexp='^KexAlgorithms' line='KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256'
@vancluever
vancluever / gnome-tracker-disable.md
Last active November 13, 2024 18:26
GNOME Tracker Disable

Disabling GNOME Tracker and Other Info

GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here: http://lduros.net/posts/tracker-sucks-thanks-tracker/

After discovering it chowing 2 cores, I decided to go about disabling it.

Directories

@gregarmer
gregarmer / openvpn-status.py
Created August 16, 2014 22:36
Simple OpenVPN Status
#!/usr/bin/env python
# -*- coding: utf-8 -*-
STATUS = "/etc/openvpn/openvpn.status"
status_file = open(STATUS, 'r')
stats = status_file.readlines()
status_file.close()
hosts = []