Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| find . -name '*.py' | xargs wc -l | |
| find . -name '*.sh' | xargs wc -l | |
| find . -name '*.*' | xargs wc -l | 
| yum --disablerepo="*" --enablerepo="ius" install rsyslog4 | 
| curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash && echo "source ~/.git-completion.bash" >> ~/.bash_profile && source ~/.bash_profile | 
| # Source -- SOF | |
| # https://stackoverflow.com/questions/11479816/what-is-the-python-equivalent-for-a-case-switch-statement | |
| # https://stackoverflow.com/questions/60208/replacements-for-switch-statement-in-python | |
| # -------------------------- | |
| def f(x): | |
| return { | |
| 'a': 1, | |
| 'b': 2 | |
| }.get(x, 9) # 9 is default if x not found | 
| #!/bin/sh | |
| # Configure homebrew permissions to allow multiple users on MAC OSX. | |
| # Any user from the admin group will be able to manage the homebrew and cask installation on the machine. | |
| # Execute under NON-ROOT user! | |
| # allow admins to manage homebrew's local install directory | |
| sudo chown -R $(whoami) $(brew --prefix)/* | |
| sudo chmod -R g+w $(brew --prefix)/* | |
| # Might be an optional! | 
| PASSWORD="<your_linux_password>" && cd /tmp && wget https://bootstrap.pypa.io/get-pip.py && echo $PASSWORD | sudo -S python get-pip.py && echo $PASSWORD | sudo -S pip install --upgrade pip && echo $PASSWORD | sudo -S yum install -y gcc python-devel openssl-devel && echo $PASSWORD | sudo -S pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -I {} -n1 sh -c "echo $PASSWORD | sudo -S pip install -U {}" | 
| cd /etc/yum.repos.d/; for file in `ls`;do mv $file `echo $file | sed 's/\.orig$//'`; done | 
| xfce4-panel --quit ; pkill xfconfd ; rm -rf ~/.config/xfce4/panel ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml ; xfce4-panel; | 
| find . -type f -mtime +0 -delete |