Skip to content

Instantly share code, notes, and snippets.

@danhper
danhper / add-use-strict.sh
Created August 26, 2015 09:34
Add 'use strict' to all js files
find $DIR -iname '*.js' -exec sed -i "1 i\'use strict';\n" {} \;
@jgornick
jgornick / gist:0586deadad6bb2693f03
Last active August 13, 2017 14:31
Ansible: with_items and selectattr equalto
---
- name: with_items and selectattr equalto
hosts: 127.0.0.1
connection: local
sudo: no
vars:
users:
- username: user1
state: present