Skip to content

Instantly share code, notes, and snippets.

View e30chris's full-sized avatar
💭
ensuring infrastructure state from git

chrisL e30chris

💭
ensuring infrastructure state from git
View GitHub Profile
@e30chris
e30chris / twitter.html
Last active December 29, 2015 12:19
Twitter timeline in OctoPress
{% if site.twitter_user and site.twitter_widget_id %}
<section>
<p><a class="twitter-timeline" href="https://twitter.com/{{site.twitter_user}}" data-widget-id="{{site.twitter_widget_id}}">Tweets by @{{ site.twitter_user }}</a></p>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</section>
{% endif %}
@e30chris
e30chris / .vimrc
Created December 7, 2013 00:25
vim rc
execute pathogen#infect()
syntax on
filetype plugin indent on
set bs=2 " allow backspacing over everything in insert mode
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set autoread " auto read when file is changed from outside
filetype on " Enable filetype detection
@e30chris
e30chris / ps.1
Created January 30, 2014 22:38
PS1 for the macbook
PS1=\[\e[00;32m\]\h>\W\[\e[0m\]\[\e[00;37m\] \[\e[0m\]\[\e[01;31m\]$\[\e[0m\]
@e30chris
e30chris / keybase.md
Created February 21, 2014 21:27
Keybase proof

Keybase proof

I hereby claim:

  • I am e30chris on github.
  • I am e30chris (https://keybase.io/e30chris) on keybase.
  • I have the public key with fingerprint 1A98 F7CB DB3D FE48 6C3A  E5FC 4600 3AEE 0AB0 3A82

To claim this, I am signing this object:

@e30chris
e30chris / goaccess-playbook.yml
Created April 2, 2014 07:14
Install GoAccess with Ansible
---
- hosts: all
gather_facts: false
sudo: yes
tasks:
#Update apt cache and install goacces
- name: Update apt cache
apt: update_cache=yes cache_valid_time=3600
@e30chris
e30chris / answerfilediff
Last active August 29, 2015 14:03
Diff of template and actual file created
# Template file for Puppet Master answer file
q_all_in_one_install=n
q_backup_and_purge_old_configuration=n
q_database_install=n
q_install=y
q_puppet_cloud_install=n
q_puppet_enterpriseconsole_install=n
q_puppet_symlinks_install=y
q_puppetagent_certname={{ pupmaster_hostname }}
q_puppetagent_install=y
Verifying myself: My Bitcoin username is +chrisl. https://onename.io/chrisl
@e30chris
e30chris / play.run
Last active August 29, 2015 14:03
ansible root pass align run
pineApplez>Ansible-AlignPassword $ansible-playbook -i hosts site.yml -vvvv
_____________
< PLAY [None] >
-------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
@e30chris
e30chris / playbook.yml
Last active August 29, 2015 14:03
playbook to align root passwords
---
# find the root password, login then update password to align
- name: test possible passwords
local_action: shell sshpass -p {{ item }} ssh {{ user }}@{{ inventory_hostname }} date
register: pastpass
ignore_errors: true
with_items:
- "{{ past_password_01 }}"
- "{{ past_password_02 }}"
@e30chris
e30chris / items.yml
Created November 7, 2014 05:06
withItems
---
# find the root password, login then update password to align
- name: test possible passwords
local_action: shell sshpass -p {{ item }} ssh {{ user }}@{{ inventory_hostname }} date
register: pastpass
ignore_errors: true
with_items:
- "{{ past_password_01 }}"
- "{{ past_password_02 }}"