Skip to content

Instantly share code, notes, and snippets.

Max tatapbl4

View GitHub Profile
View create-playbooks-structure.sh
#!/bin/sh
print_usage() {
echo "Usage:"
echo " Create a top level structure: 'create_ansible_structure.sh [TOP_DIRECTORY_PATH]'"
echo " Create a role structure: 'create_ansible_structure.sh role [TOP_DIRECTORY_PATH] [ROLE_NAME]'"
}
error() {
echo "Error: ${1}"
@tatapbl4
tatapbl4 / delremopen.sh
Created Oct 5, 2017
remove deleted but still opened file for rhel6
View delremopen.sh
# https://access.redhat.com/solutions/2316
lsof | grep deleted | awk '{print $8}' | xargs sum 2> /dev/null | awk '{ SUM += $2 } END { print SUM }'
View keybase.md

Keybase proof

I hereby claim:

  • I am tatapbl4 on github.
  • I am mrmaxhate (https://keybase.io/mrmaxhate) on keybase.
  • I have a public key ASCd-IN4XFvQTkKzws0xMMhUor9qJjOg1Vtr3lJOMRSp-Qo

To claim this, I am signing this object:

View Update ilo.ps
$ilocreds = Get-Credential
Find-HPiLO 192.168.200.1-255 | Where {$_.FWRI -lt 2.44 -AND $_.PN -like "*iLO 4*"} | Update-HPiLOFirmware -Credential $ilocreds -Location C:\firmware\ilo4\ilo4_244.bin
@tatapbl4
tatapbl4 / pedantically_commented_playbook.yml
Created Feb 5, 2016 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
View SetSyslogServer.cmd
$LogInsightServer = "tcp:|udp://fqdn-or-ip:514"
Get-VMHost | Foreach {
Write-Host "Adding $LogInsightServer as Syslog server for $($_.Name)"
$SetSyslog = Set-VMHostSyslogServer -SyslogServer $LogInsightServer -VMHost $_
Write-Host "Reloading Syslog on $($_.Name)"
$Reload = (Get-ESXCLI -VMHost $_).System.Syslog.reload()
Write-Host "Setting firewall to allow Syslog out of $($_)"
$FW = $_ | Get-VMHostFirewallException | Where {$_.Name -eq 'syslog'} | Set-VMHostFirewallException -Enabled:$true
View astraanalyze.sh
# Analyze [n]-adapter [t]-transponder [f]-frequency [p]-polarization [sr]-symbol rate [d]-diseqc {} - optional
astra --analyze "dvb://#adapter=[n]&type=[t]&tp=[f]:[p]:[sr]&budget&diseqc=[d]{&lnb=10750:10750:10750}"
@tatapbl4
tatapbl4 / make.sh
Last active Jul 5, 2016 — forked from artzub/make.sh
Install JetBrains Hub + YouTrack + UpSource + Nginx
View make.sh
#!/bin/bash
apt-get install mc htop git unzip wget curl -y
echo
echo "====================================================="
echo " WELCOME"
echo "====================================================="
echo
echo "Hub"
@tatapbl4
tatapbl4 / updates.sh
Created Nov 19, 2015
List packages to update with old and new version
View updates.sh
apt-get --just-print upgrade 2>&1 | perl -ne 'if (/Inst\s([\w,\-,\d,\.,~,:,\+]+)\s\[([\w,\-,\d,\.,~,:,\+]+)\]\s\(([\w,\-,\d,\.,~,‌​:,\+]+)\)? /i) {print "PROGRAM: $1 INSTALLED: $2 AVAILABLE: $3\n"}' | column -s " " -t
You can’t perform that action at this time.