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/sh | |
# | |
# comments | |
# | |
cd /tmp | |
tempsFile=/tmp/systemps.txt | |
name=ESXI-Olympus | |
description=SigmaProjects-VMWare-Server |
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/sh | |
# | |
# esxi raid temp reporter | |
# this file is saved in /vmfs/volumes/Pandora/ | |
# | |
# awk command to get just the temps | |
# cat $tempsFile | awk -F'[^0-9]*' '$0=$2$3' | |
# | |
# awk command to get specific rows, this index starts at 1 | |
# cat $tempsFile | awk -F'[^0-9]*' '$0=$2$3' | awk 'FNR == 9' |
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
# This is a blocklist to block samsung smart tv's sending meta data at home. | |
# Please help to collect domains! | |
# It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident. | |
device-metrics-us.amazon.com | |
samsungacr.com | |
samsungcloudsolution.com | |
samsungcloudsolution.net | |
pavv.co.kr | |
samsungotn.net |
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
component output="false" displayname="SimplePGP" { | |
public SimplePGP function init(Required String config="PDS") { | |
variables.logger = application.logbox.getLogger(this); | |
switch(arguments.config) { | |
default: { | |
variables.publicKeyPath = expandPath('/path/to/key.pub'); |
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
component extends="coldbox.system.EventHandler" { | |
function preHandler(event,rc,prc) { | |
if ( getInstance("cookieStorage@cbstorages").exists("user") and rc.event neq "user.logout") { | |
event.setValue('isLoggedIn',1); | |
event.setValue('user',getInstance("cookieStorage@cbstorages").getVar("user")); | |
} else { | |
event.setValue('isLoggedIn',0); | |
} | |
} |
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
<cfscript> | |
// the nonce can be any unique identifier -- guids and timestamps work well | |
nonce = uniqid(); | |
// a standard unix timestamp. a request must be received within 60s | |
// of its timestamp header. | |
timestamp = now(); // but get the seconds, I forget what it is... now().getTime()? | |
// setting up the request data itself | |
verb = "POST"; |
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
private struct function httpRequest(url) { | |
var httpClient = createObject("java","org.apache.http.impl.client.DefaultHttpClient"); | |
var httpGet = createObject("java","org.apache.http.client.methods.HttpGet"); | |
var jURL = createObject("java", "java.net.URL").init(arguments.url); | |
var host = jURL.getHost(); | |
var path = jURL.getPath(); | |
var httpHostTarget = createObject("java","org.apache.http.HttpHost").init(host,80,"http"); | |
var localContext = createObject("java","org.apache.http.protocol.BasicHttpContext"); | |
var httpContent = {} | |
httpContent['fileContent'] = ''; |
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
{"timestamps": [1496794486239, 1496795087019, 1496795690651, 1496796291533, 1496796891655, 1496797662724, 1496798263440, 1496798867994, 1496799152201, 1496799840313, 1496800615940, 1496801225361, 1496801827807, 1496802430107, 1496803032293, 1496803739933, 1496804472903, 1496805155376, 1496805773861, 1496806519309, 1496807130474, 1496807733387, 1496808336495, 1496809012897, 1496809700563, 1496810375326, 1496811056596, 1496811737947, 1496812417998, 1496813049559, 1496813676720, 1496814330690, 1496815039950, 1496815809489, 1496816432196, 1496817046323, 1496817705883, 1496818309240, 1496818969889, 1496819685670, 1496820292144, 1496820895310, 1496821495868, 1496822161649, 1496822846352, 1496823455126, 1496824211241, 1496824819632, 1496825421100, 1496826026522, 1496826630350, 1496827404045, 1496828083415, 1496828748729, 1496829445252, 1496830126560, 1496830741093, 1496831347741, 1496831948023, 1496832548093, 1496833151009, 1496833758523, 1496834440257, 1496835121730, 1496835724022, 1496836361289, 1496836967656, 149 |
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
==== START Wirebox.cfc Config ===== | |
map("JSMin").to("plugins.JSMin").asSingleton().initArg(name='javaLoader',ref='loader@cbjavaloader'); | |
===== START JSMin.cfc ========== | |
/******************************************************************************** | |
Copyright 2009 ColdBox Framework by Luis Majano and Ortus Solutions, Corp | |
www.coldboxframework.com | www.luismajano.com | www.ortussolutions.com | |
******************************************************************************** |
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
Jun 2 10:17:37 medusa cb-classicjunk[5908]: Starting damon: cb-classicjunklog4j:ERROR setFile(null,true) call failed. | |
Jun 2 10:17:37 medusa cb-classicjunk[5908]: java.io.FileNotFoundException: jmimemagic.log (Permission denied) | |
Jun 2 10:17:37 medusa cb-classicjunk[5908]: at java.io.FileOutputStream.open0(Native Method) | |
Jun 2 10:17:37 medusa cb-classicjunk[5908]: at java.io.FileOutputStream.open(FileOutputStream.java:270) | |
Jun 2 10:17:37 medusa cb-classicjunk[5908]: at java.io.FileOutputStream.<init>(FileOutputStream.java:213) | |
Jun 2 10:17:37 medusa cb-classicjunk[5908]: at java.io.FileOutputStream.<init>(FileOutputStream.java:133) | |
Jun 2 10:17:37 medusa cb-classicjunk[5908]: at org.apache.log4j.FileAppender.setFile(FileAppender.java:294) | |
Jun 2 10:17:37 medusa cb-classicjunk[5908]: at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207) | |
Jun 2 10:17:37 medusa cb-classicjunk[5908]: at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165) | |
Jun 2 10:17:37 medusa cb-class |
NewerOlder