Skip to content

Instantly share code, notes, and snippets.

View gregfelice's full-sized avatar

Greg Felice gregfelice

View GitHub Profile
@gregfelice
gregfelice / securing_public_facing_SSH_servers.md
Last active October 12, 2025 12:44
Securing your public-facing SSH server
pihole deny youtube.com
# here we are
@gregfelice
gregfelice / # postgresql@14 - 2024-10-07_22-23-56.txt
Created October 8, 2024 02:30
postgresql@14 on macOS 15.0 - Homebrew build logs
Homebrew build logs for postgresql@14 on macOS 15.0
Build date: 2024-10-07 22:23:56
@gregfelice
gregfelice / gist:0c9796293adc7cfb6ed9fb74e121c38b
Created February 20, 2017 23:11
Allowed and disallowed ports example
allowed_extra_ports: [ 3000, 8083, 8086 ]
disallowed_extra_ports: [ 5432, 2003, 8090, 8080, 8181 ]
@gregfelice
gregfelice / gist:d8737e6ab35bc5727943d5d85db87567
Created February 20, 2017 23:08
Optional List Handing Example Output
TASK: [hardened | ensure host-specific ports are opened] **********************
skipping: [minerva.random.com]
skipping: [achilles.random.com]
ok: [juno.random.com] => (item=8080)
ok: [ajax.random.com] => (item=3000)
ok: [ajax.random.com] => (item=8083)
ok: [ajax.random.com] => (item=8086)
TASK: [hardened | reload changes to firewalld if any] *************************
skipping: [achilles.random.com]
@gregfelice
gregfelice / optional_list_handling_in_ansible_loops.yaml
Last active November 4, 2015 16:40
Optional List Handing in Ansible Loops
- name: ensure host-specific ports are opened
firewalld: port="{{ item }}/tcp" permanent=true state=enabled
with_items: "{{ hostvars[inventory_hostname]['allowed_extra_ports'] | default([]) }}"
register: allowed_extra_ports
- name: reload changes to firewalld if any
service: name=firewalld state=restarted
when: allowed_extra_ports.changed
require 'release_calendar_rest_client'
class HomeController < ApplicationController
def index
@activities = Activity.order('created_at DESC').limit(20)
end
def release_calendar
@releases = ReleaseCalendarRestClient.get_releases