This file contains 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
Variables | |
AnsibleServer = current servername | |
RemoteServerIP = server i'm trying to ping | |
MyUsername = username with same password across local, proxy, and remote server | |
MyProxyHostIP = proxy host IP | |
[ansible@AnsibleServer ~]$ ansible -m ping -i teams/monitoring/ RemoteServerIP -u MyUsername -k -vvvv | |
Using /home/ansible/ansible.cfg as config file | |
SSH password: | |
Loading callback plugin minimal of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc |
This file contains 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
[tcpout] | |
defaultGroup = mySplunkIndexers | |
maxQueueSize = 7MB | |
[tcpout:mySplunkIndexers] | |
server = 10.10.10.10:9997, 10.10.10.20:9997 | |
autoLB = true | |
useACK = true |
This file contains 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
| set diff | |
[| makeresults count=1 | eval users="user1 user2 user6" | makemv users | mvexpand users | table users | append [search sourcetype=linux_secure logged_in_user!="" | table users] | stats values(users) as users | mvexpand users | table users] | |
[search sourcetype=linux_secure logged_in_user!="" | stats values(logged_in_user) as users | mvexpand users | table users] |
This file contains 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 | |
# Author: Erik Horton | |
# usage1: ./GetSplunkFrozenDates.sh /path/to/frozen/directory/with/buckets/ | |
# usage2: ./GetSplunkFrozenDates.sh /path/to/frozen/directory/with/buckets/ 2016-08-04 | |
# output: db_bucket_name <start date> <end date> | |
# | |
# Use Case: Output date range for all Splunk buckets in a directory. Can specify a date, and it'll only output buckets that contain that date. | |
FILES="$1"* | |
DATE="$2" |
This file contains 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
index=winevents* sourcetype="WinEventLog:System" | |
| dedup ComputerName, host | |
| rex field=ComputerName "(?<RealHostName>[\w\d\-]+)\..+" | |
| eval RealHostName=lower(RealHostName) | eval ReportedHostName=lower(host) | |
| where RealHostName!=ReportedHostName | |
| table RealHostName, ReportedHostName |
This file contains 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
http://askubuntu.com/questions/41681/blank-screen-after-installing-nvidia-restricted-driver | |
Remove everything to do with the Nvidia proprietary drivers. | |
sudo nvidia-settings --uninstall | |
sudo apt-get remove --purge nvidia* | |
Start from scratch. | |
sudo apt-get remove --purge xserver-xorg-video-nouveau xserver-xorg-video-nv | |
Reinstall all the things! |
This file contains 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
sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper && sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt-get update && sudo apt-get install ubuntu-sdk notepad-qml |
This file contains 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
import pyglet | |
from pyglet.window import key | |
#Put sound files in a folder called "resources" | |
pyglet.resource.path = ['resources'] | |
pyglet.resource.reindex() | |
#Create sound object for laser | |
screen = pyglet.window.Window(800,600) | |
laser = pyglet.resource.media('laser.wav') |
This file contains 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
import pygame, sys, os | |
from pygame.locals import * | |
running = True | |
pygame.init() | |
screen = pygame.display.set_mode((800,600)) | |
clock = pygame.time.Clock() | |
#Create path to sound file | |
mypath = os.path.dirname( os.path.realpath( __file__) ) |
This file contains 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
import pyglet | |
screen = pyglet.window.Window(800, 600) | |
@screen.event | |
def on_mouse_motion(x, y, dx, dy): | |
#print current mouse position | |
print x,y | |
@screen.event |