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
# PUPPET CONFIG MANIFEST FOR IRF (Installs LAMP stack, tomcat8 and memcached) | |
# If you are running this locally on an agent, place this file in /etc/puppet/manifests and run puppet appy irf.pp --test | |
# execute 'apt-get update' | |
exec { 'apt-update': # exec resource named 'apt-update' | |
command => '/usr/bin/apt-get update' # command this resource will run | |
} | |
# install apache2 package | |
package { 'apache2': |
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
use Term::ReadKey; | |
ReadMode 2; | |
print "# "; | |
chomp(my $phrase = <STDIN>); | |
print "\n" . join("", map { sprintf "\\%o", ord } split("", $phrase)) . "\n" |
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
// ==UserScript== | |
// @name Splunk | |
// @namespace https://splunk:8000/en-US/account/ | |
// @include https://splunk:8000/en-US/account/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// perl -ne 'chomp; print join("", map { sprintf "\\%o", ord } split("", $_)) . "\n"' | |
// Run this, type your password, then ctrl+d |
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
def urlses(cl: ClassLoader): Array[java.net.URL] = cl match { | |
case null => Array() | |
case u: java.net.URLClassLoader => u.getURLs() ++ urlses(cl.getParent) | |
case _ => urlses(cl.getParent) | |
} | |
val urls = urlses(getClass.getClassLoader) | |
println(urls.filterNot(_.toString.contains("ivy")).mkString("\n")) |
NewerOlder