This file contains hidden or 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
| #!perl -w | |
| =head1 NAME | |
| pl2py.pl | |
| =head1 DESCRIPTION | |
| Attempts to convert perl scripts to python with the awesome power of regular expressions. |
This file contains hidden or 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
| @echo off | |
| echo *************************************************************** | |
| echo *************************************************************** | |
| echo *** This Script will stop Windows 10 Spying you...YEYYYY!!! *** | |
| echo *************************************************************** | |
| echo *** We will Disable Data Logging Services *** | |
| echo *** We will Configure Windows Explorer *** | |
| echo *** We will Uninstall OneDrive *** | |
| echo *** We will edit Hosts to stop sending Data to Microsoft *** | |
| echo *************************************************************** |
This file contains hidden or 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
| #!/bin/bash | |
| # Show the rate of swapping (in number of pages) between executions | |
| OK=0 | |
| WARNING=1 | |
| CRITICAL=2 | |
| UNKNOWN=-1 | |
| EXITFLAG=$OK | |
| WARN_THRESHOLD=1 |
This file contains hidden or 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
| #!/bin/bash | |
| # Copyright bitly, Aug 2011 | |
| # written by Jehiah Czebotar | |
| DATAFILE="/var/tmp/nagios_check_forkrate.dat" | |
| VALID_INTERVAL=600 | |
| OK=0 | |
| WARNING=1 | |
| CRITICAL=2 |
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # ************************************************* | |
| # chkconfig: 2345 99 99 | |
| # description: notify email address on system boot. | |
| # ************************************************* | |
| # Installing: | |
| # 1) save as /etc/rc.d/init.d/notify | |
| # 2) set the desired email address in "MAILADD" variable | |
| # 3) chmod a+w /etc/rc.d/init.d/notify |
This file contains hidden or 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
| --- | |
| - hosts: app | |
| remote_user: vagrant | |
| sudo: yes | |
| vars: | |
| download_url: http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gz | |
| download_folder: /opt | |
| java_name: "{{download_folder}}/jdk1.8.0_05" | |
| java_archive: "{{download_folder}}/jdk-8u5-linux-x64.tar.gz" |
This file contains hidden or 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
| --- | |
| # ^^^ 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. |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # Ported to Python from http://www.vim.org/scripts/script.php?script_id=1349 | |
| print "Color indexes should be drawn in bold text of the same color." | |
| colored = [0] + [0x5f + 40 * n for n in range(0, 5)] | |
| colored_palette = [ | |
| "%02x/%02x/%02x" % (r, g, b) | |
| for r in colored |
This file contains hidden or 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
| # Changing terminal color in MacOSX when SSHing (so you know at a glance that you're no longer in Kansas) | |
| # Adapted from http://www.rngtng.com/2011/01/14/mac-os-x-terminal-visual-indication-for-your-ssh-connection/ | |
| # 1. Create a theme in your terminal setting with the name "SSH" and the desired colors, background, etc. | |
| # 2. Add this to your .bash_profile (or .bashrc, I always forget the difference ;)) | |
| # 3. Optional but useful: in the terminal, go to Settings > Startup and set "New tabs open with" to | |
| # "default settings" (otherwise, if you open a new tab from the changed one, you get a local tab with | |
| # the SSH colors) | |
| function tabc() { | |
| NAME=$1; if [ -z "$NAME" ]; then NAME="Default"; fi # if you have trouble with this, change |
This file contains hidden or 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
| # Usage: | |
| # source iterm2.zsh | |
| # iTerm2 window/tab color commands | |
| # Requires iTerm2 >= Build 1.0.0.20110804 | |
| # http://code.google.com/p/iterm2/wiki/ProprietaryEscapeCodes | |
| tab-color() { | |
| echo -ne "\033]6;1;bg;red;brightness;$1\a" | |
| echo -ne "\033]6;1;bg;green;brightness;$2\a" | |
| echo -ne "\033]6;1;bg;blue;brightness;$3\a" |