Skip to content

Instantly share code, notes, and snippets.

@fia5000
fia5000 / ENTERPRISE INVENTORY
Last active May 29, 2018 20:45
v2 Inventory
[DEV_CPE_SERVERS]
DEV_CPE_NODE_1 ansible_host=x.x.x.x
[TEST_CPE_SERVERS]
TEST_CPE_NODE_1 ansible_host=x.x.x.x
[RUN_CPE_SERVERS]
RUN_CPE_NODE_1 ansible_host=x.x.x.x
RUN_CPE_NODE_2 ansible_host=x.x.x.x
04aaa9180b9559d09108424653effc074a8c7c7d0bc4d847133d8710e901d7faf5b20f6fbebbb378f8fee718cc29a8162a71638d972831396e08ad281ade133840
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@fia5000
fia5000 / gist:73dbf8c278d86c198b67a9c26ec2e2f8
Created January 11, 2018 16:37
SDS Keystash File Update
# ╔═════════════════════════════════════════════════════╗
# ║ Create Updated Stash File On Secondary SDS Server ║
# ╚═════════════════════════════════════════════════════╝
# - name: Check To See if Secondary Stash File Has Already Been Created
# stat:
# path: "{{ SDS_INSTANCE_DIR}}/etc/stash.lock"
# register: STASHLOCK
#
@fia5000
fia5000 / WinRM-HTTPS.ps1
Created November 28, 2017 04:49 — forked from TechIsCool/WinRM-HTTPS.ps1
A simple Powershell WinRM-HTTPs setup
Write-Output "Disabling WinRM over HTTP..."
Disable-NetFirewallRule -Name "WINRM-HTTP-In-TCP"
Disable-NetFirewallRule -Name "WINRM-HTTP-In-TCP-PUBLIC"
Get-ChildItem WSMan:\Localhost\listener | Remove-Item -Recurse
Write-Output "Configuring WinRM for HTTPS..."
Set-Item -Path WSMan:\LocalHost\MaxTimeoutms -Value '1800000'
Set-Item -Path WSMan:\LocalHost\Shell\MaxMemoryPerShellMB -Value '1024'
Set-Item -Path WSMan:\LocalHost\Service\AllowUnencrypted -Value 'false'
Set-Item -Path WSMan:\LocalHost\Service\Auth\Basic -Value 'true'
as
@fia5000
fia5000 / gist:f643e4535c9de62d5af74927dfa57d4b
Created October 26, 2017 03:59
Required RHEL Libraries For P8
CPE:
compat-libstdc++-296.i686 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 compat-db.i686 compat-db.x86_64 libgcc.i686 libgcc.x86_64 libstdc++.i686 libstdc++-devel libstdc++.x86_64 glibc.i686 glibc.x86_64 glibc-common.i686 glibc-common glibc-devel.i686 glibc-devel glibc-headers.i686 glibc-headers binutils libXpm.i686 libXpm.x86_64 libXft.i686 libXft.x86_64 libXtst.i686 libXtst.x86_64 libXp.i686 libXp.x86_64 gtk2.x86_64 gtk2.i686 gtk2-engines.i686 gtk+extra.i686 gtk+extra.x86_64 xorg-x11-utils.x86_64 xorg-x11-apps.x86_64 libaio libaio.i686 libaio-devel libaio-devel.i686 adwaita-gtk2-theme.x86_64 adwaita-gtk3-theme.x86_64 adwaita-gtk2-theme.i686
ICN:
PackageKit-gtk-module.i686
libcanberra-gtk2.i686
gtk2-engines.i686
## credit: http://fabian-affolter.ch/blog/the-lineinfile-module-of-ansible/
---
- hosts: alpine_install
user: root
tasks:
# - name: create a complete empty file
# command: /usr/bin/touch /test/test.conf
- name: create a new file with lineinfile
@fia5000
fia5000 / iterm2-solarized.md
Created April 21, 2017 01:45 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k