Skip to content

Instantly share code, notes, and snippets.

Nick Anderson nickanderson

Block or report user

Report or block nickanderson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View CAPTURE-refile.org

How can I upgrade each package that has an update available witout manually specifying each one

Created From: Notes

View CAPTURE-refile.org

How can I upgrade each package that has an update available witout manually specifying each one

Created From: Notes

@nickanderson
nickanderson / id_rsa.pub
Created Jan 14, 2020
Nick's public id_rsa key for ssh
View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAy6vrcU1d/80WMFqzumFHG/dllkhakswezvKfX7KupQwpc55JyyUNpnjxLy76leuJnlTTZTaxq1CcW3lIH9CjG/rJVQLN/PLjQPLZgfvzHqS8HuVCtKynwp0Sgw9tRmrN1KcXRiQMWs3plVDJwB4HFQpb7NsC0f5fskpgxr2KRNPn058oe6VYx183Err/0Uawy64aFSiowRgvHgXgelhSDWUVkOoviKR1zB11EZ8Xr5d4s/yXDE9ehlgv2EBFdhZrqsMmhs7KdPPNDD6/El2dID7V7LKHblbtVO009VS/dlq1XUGE0IUl153ZaVm/dt4+2+NriGpI7COAU4cLxhpj9w== cmdln@tp
@nickanderson
nickanderson / refile.org
Created Jan 10, 2020
Automaticly clean up unexpected things
View refile.org
mkdir -p /tmp/automatic-cleanup/ 
touch /tmp/automatic-cleanup/want-1
touch /tmp/automatic-cleanup/need-2
touch /tmp/automatic-cleanup/expect-3
touch /tmp/automatic-cleanup/extra-1
touch /tmp/automatic-cleanup/delete-me-2
View refile.org

Example using parsejson() and reporting array from dict

bundle agent main
{
  vars:
      # "users_string" string => execresult("/usr/bin/rest_getUsers.py", "noshell");
View CAPTURE-refile.org

Count controls in CIS Benchmark Red Hat Enterprise Linux 7 v2.2.0

1.1.x22
1.2.x5
1.3.x2
1.4.x3
View CAPTURE-3-refile.org
View CAPTURE-3-refile.org
View CAPTURE-refile.org

Example for skillz in #cfengine on irc.freenode.net

Created From: Customer Success Metrics
bundle agent main
{
View CAPTURE-refile.org
You can’t perform that action at this time.