This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find "$sysRoot" -noleaf \( -type d -o -type f \) -perm -0002 \ | |
-not -fstype proc \ | |
-not -wholename '/var/tmp' -not -wholename '/var/tmp/*' \ | |
-not -wholename '/proc' -not -wholename '/proc/*' \ | |
-not -wholename '/tmp' -not -wholename '/tmp/*' \ | |
-not -wholename '/dev' -not -wholename '/dev/*' \ | |
# Write all findings to a log; 1-per-line | |
>> "$tmpDataFile" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip-python freeze | cut -d = -f 1 | xargs -n 1 pip-python search | grep -B2 'LATEST:' | |
Traceback (most recent call last): | |
File "/bin/pip-python", line 5, in <module> | |
from pkg_resources import load_entry_point | |
ImportError: No module named pkg_resources | |
Traceback (most recent call last): | |
File "/bin/pip-python", line 5, in <module> | |
from pkg_resources import load_entry_point | |
ImportError: No module named pkg_resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find and World-Writable files criteria: | |
# 1) files but not hard/soft links | |
# 2) in any directory except: /proc, /dev, libs, or /sys | |
# 3) with +o=w permissions | |
# 4) print it all to a file | |
find / \( -type f -o ! -type l \) \ | |
-name "proc" -prune -o -name "dev" -prune -o -name "sys" -prune \ | |
-o -name "lib" -prune -o -name "lib64" -prune \ | |
-o -perm 0002 -o ! -perm 777 -o ! -perm 775 \ | |
\( -printf '%#m %u %g %p\n' \) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"iso_os": "{{env `isoLinux`}}", | |
"pkr_http": "{{env `packerHTTP`}}" | |
}, | |
"builders": [{ | |
"boot_command": [ | |
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/centos7.ks<enter><wait>" | |
], | |
"type": "qemu", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install | |
cdrom | |
lang en_US.UTF-8 | |
keyboard us | |
network --bootproto=dhcp | |
rootpw vagrant | |
firewall --disabled | |
selinux --permissive | |
timezone UTC | |
unsupported_hardware |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /etc/samba/smb.conf | |
### Added by IPA Installer ### | |
[global] | |
debug pid = yes | |
config backend = registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###----------------------------------------------------------------------------- | |
### VARIABLES | |
###----------------------------------------------------------------------------- | |
# ENV Stuff | |
# Reset all variables that might be set | |
file= | |
# Variables evaluated as shell arithmetic should be initialized to a default or | |
# validated beforehand: | |
verbose=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /etc/bashrc | |
# /etc/bashrc | |
# System wide functions and aliases | |
# Environment stuff goes in /etc/profile | |
# It's NOT a good idea to change this file unless you know what you | |
# are doing. It's much better to create a custom.sh shell script in | |
# /etc/profile.d/ to make custom changes to your environment, as this | |
# will prevent the need for merging in future updates. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installed on a Mac OS X Yosemite | |
# Installed python and pip with homebrew; everything is in /usr/local so sudo is not required. | |
brew info python | |
python: stable 2.7.11 (bottled), devel 2.7.12rc1, HEAD | |
Interpreted, interactive, object-oriented programming language | |
https://www.python.org | |
/usr/local/Cellar/python/2.7.10_2 (5,046 files, 67.6M) | |
Poured from bottle on 2015-07-13 at 14:07:01 | |
/usr/local/Cellar/python/2.7.11 (5,009 files, 67.5M) * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat sources/keys/newUser.pub | |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDRxc4tyOZ8dPM6O3NPWcZjk9KZRdNEbOfHwvSptBk7wCs8WqzRaNoAY4Al3ZERSwjSr7yhz4NkJSw6xaX+MzkKkQboLglsDoZTCVh44uOPOGU2K8zKwuu5YxdkbpFVF5M6tzD625dMvpZf91qj+l9ViizoRqI+WzdYRqxYnqtfL+jUygvIZ4wakucxKsM1T+aKe4K+JzoAGPfSssIZO0l0nTVmmpOx83CKeXWZRv2GK5KvsrzQFGdTBlewvI9LLurUxQ4y5Iu9rWAB2KA97QPgLQlVqogUeTTmdRYf1tUzXMB/C4oWl1oeiEKFpndybXotgP3gnoyjUshOYaxjEibj newUser@host | |
-------------------------------------------------------------------------------- | |
- hosts: host_group | |
become: yes | |
become_method: sudo | |
tasks: | |
- name: add development user to the system | |
user: name=newUser comment="GECOS" uid=1013 groups=wheel |
OlderNewer