Skip to content

Instantly share code, notes, and snippets.

@EntropyWorks
EntropyWorks / add-ssh-keys.yml
Last active July 14, 2025 13:57
Add all the hosts from your ansible inventory to your .ssh/known_hosts and also use ssh-copy-id to add keys to the hosts
---
# Original idea found at http://stackoverflow.com/a/39083724
#
# ansible -i inventory.ini add-ssh-keys.yml
#
- name: Store known hosts of 'all' the hosts in the inventory file
hosts: localhost
connection: local
vars:
ssh_known_hosts_command: "ssh-keyscan -T 10"

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Yazz Atlas modified the Licensed Material and retain an indication of any previous modifications; Licensed Material is licensed under this Public License,(CC-BY-SA-4.) open-source license.

Sponsor

@EntropyWorks
EntropyWorks / Dockerfile
Created December 23, 2024 05:57 — forked from arifwn/Dockerfile
(Relatively) Simple Dockerfile that bundles Django, Nginx, Gunicorn, Supervisord, Celery, Redis, Memcached, wkhtmltopdf, nodejs and React frontend build in a single container
FROM python:3.8
ENV PYTHONUNBUFFERED 1
# Install node prereqs, nodejs and yarn
# Ref: https://deb.nodesource.com/setup_10.x
# Ref: https://yarnpkg.com/en/docs/install
RUN \
apt-get update && \
apt-get install -yqq apt-transport-https xfonts-base xfonts-75dpi libsasl2-dev
RUN \
@EntropyWorks
EntropyWorks / Dockerfile
Created January 15, 2024 03:47 — forked from adtac/Dockerfile
#!/usr/bin/env docker run
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')"
# syntax = docker/dockerfile:1.4.0
FROM node:20
WORKDIR /root
RUN npm install sqlite3
@EntropyWorks
EntropyWorks / README.md
Created October 19, 2023 20:23 — forked from joelthompson/README.md
Vault Auth
@EntropyWorks
EntropyWorks / aptly-mirror.sh
Last active September 17, 2021 17:46
This is my script for mirroring a bunch of apt repos. This only touches the very basics of what (aptly)[http://www.aptly.info/] can do.
#!/bin/bash
#
# Copyright 2014 Hewlett-Packard Development Company, L.P.
# All Rights Reserved.
# Authored by Yazz D. Atlas <yazz.atlas@hp.com>
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
@EntropyWorks
EntropyWorks / Makefile
Last active June 17, 2020 01:36
for Ingy
# Eample of adding a hash for your own safety before running downloaded stuff.
#
# make+_hash: a73c1a409cd3b709ff7d10b9f40a0b817de2bba0 -
#
# This makes two calls outside but you could make just one. Also depends on having a compatable grep and shasum installed.
include $(shell grep -m 1 "make+_hash" Makefile | cut -f2 -d: > .make+_hash && curl -s https://makeplus.net/make+ | shasum -qc .make+_hash && curl -s https://makeplus.net/make+ | bash)
50-50 = return $((RANDOM % 2))
@EntropyWorks
EntropyWorks / attributes.rb
Created April 20, 2019 04:43 — forked from lizthegrey/attributes.rb
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'
@EntropyWorks
EntropyWorks / ansible-macos-homebrew-packages.yml
Created March 22, 2019 00:41 — forked from mrlesmithjr/ansible-macos-homebrew-packages.yml
Install MacOS Homebrew Packages With Ansible
---
- name: Install MacOS Packages
hosts: localhost
become: false
vars:
brew_cask_packages:
- 'atom'
- 'docker'
- 'dropbox'
- 'firefox'
#!/usr/bin/env ANSIBLE_HOSTS="" ANSIBLE_CONNECTION=local ansible-playbook
# vim:ft=yaml
---
- name: Homebrew Restore from Thu Mar 21 12:37:16 PDT 2019
hosts: 127.0.0.1
connection: local
tasks:
- name: check for xcode