Skip to content

Instantly share code, notes, and snippets.

@rendicott
rendicott / nix-cmd-cheats.md
Last active January 18, 2022 12:49
quick commands I use frequently in linux but always forget the syntax

Quick Reference Linux Commands

Find string in files in directory

find . | xargs grep 'string' -sl
sudo find / | xargs grep 'http://127.0.0.1:4567' -sl

Find case insensitive

find / -iname 'wOrDs'

@justinsoliz
justinsoliz / cloud-config.yml
Last active January 19, 2020 15:18
Terraform definition for Jenkins with ECS, EFS, CoreOS
#cloud-config
write-files:
- path: /etc/conf.d/nfs
permissions: '0644'
content: |
OPTS_RPC_MOUNTD=""
coreos:
units:
- name: update-engine.service
input {
stdin {
type => "stdin-type"
}
file {
type => "apache"
path => ["/var/log/apache2/access_log", "/var/log/apache2/error_log", "/var/log/apache2/ssl_request_log"]
}