Skip to content

Instantly share code, notes, and snippets.

@Daenks
Daenks / WhyNoWorky.html
Last active March 5, 2020 19:14
I'm doing a dumb somehow. Help me find it.
<HTML>
<HEAD>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.8.4/dist/semantic.min.css">
<script src="https://cdn.jsdelivr.net/npm/fomantic-ui@2.8.4/dist/semantic.min.js"></script>
<TITLE>A Test of the Template Broadcasting System</TITLE>
</HEAD>
<BODY>
<div class="ui two column doubling stackable grid container">
<div class="column">
@Daenks
Daenks / chefquery.ps1
Created March 7, 2018 14:03 — forked from devblackops/chefquery.ps1
PowerShell script to query Chef nodes via REST API. Assumes you have the BouncyCastle.Crypto.dll in the same folder as the script.
function Get-Base64 {
param (
$data
)
# if the $data is a string then ensure it is a byte array
if ($data.GetType().Name -eq "String") {
$data = [System.Text.Encoding]::UTF8.GetBytes($data)
}
@Daenks
Daenks / Apache Tomcat 8 Start stop script init.d script
Created August 3, 2017 15:07 — forked from miglen/Apache Tomcat 8 Start stop script init.d script
Apache Tomcat init script (or startup/controll script). Works fine for version 7/8. Read the comments for release history. Feel free to modify, copy and give suggestions. (c) GNU General Public License
#!/bin/bash
#
# description: Apache Tomcat init script
# processname: tomcat
# chkconfig: 234 20 80
#
#
# Copyright (C) 2014 Miglen Evlogiev
#
# This program is free software: you can redistribute it and/or modify it under
@Daenks
Daenks / Get-MaltegoTransformResponse.ps1
Last active April 5, 2016 17:14 — forked from anonymous/Get-MaltegoTransformResponse.ps1
Powershell Maltego Local Transform Example
Param(
$IP ##IP we will look up
)
#Define XML Header
$MaltegoHeader = @"
<MaltegoMessage>
<MaltegoTransformResponseMessage>
<Entities>
"@
@Daenks
Daenks / guard-my-mabook-when-i-am-away.sh
Created March 30, 2016 17:18 — forked from jay3sh/guard-my-mabook-when-i-am-away.sh
Guard My Macbook When I'm Away
#!/bin/bash
#
# When you are working on your macbook sitting in cafe and you have to go pee,
# you need some way to guard you machine.
#
# Start this script, remove any earphones, and go do the job.
# The assumption is the thief will close the lid of the laptop before taking it away.
# This script detects the closing of the lid and plays some loud audio that will
# likely distract the thief and/or grab attention of nearby people, making the
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at ClientPatcher.OgreClientPatcher.CheckDependencies()
at ClientPatcher.ClientPatchForm.StartScan()
at ClientPatcher.ClientPatchForm.PatchProfile()
at ClientPatcher.ClientPatchForm.btnPatch_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
@Daenks
Daenks / gist:07daa7fdc9540dcbb93f
Created September 21, 2015 16:05
meridian59-dotnet repo setup
git clone https://github.com/OpenMeridian/meridian59-dotnet Meridian59-dotnet
cd Meridian59-dotnet
git pull && git submodule init && git submodule update && git submodule status
cd Engine
git remote add upstream https://github.com/cyberjunk/meridian59-engine.git
cd ..\Resources
git remote add upstream https://github.com/cyberjunk/meridian59-resources.git
cd ..
git remote add upstream https://github.com/cyberjunk/meridian59-dotnet.git
git pull upstream master
@Daenks
Daenks / gist:96e564523e8f49daa8bd
Created July 14, 2015 13:00
Meridian 59: Insurrection - Readme.txt
Meridian 59(TM) Insurrection
Readme (07 July 1998)
-----------------------------------------------
Table of Contents
-----------------------------------------------
1. System Requirements
2. Welcome
3. What's in Meridian 59
@Daenks
Daenks / gist:8905d3e0bc43db4993eb
Created June 24, 2015 13:30
logstash exception
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: Exception in thread "elasticsearch[logstash-*HOSTNAME*-117760-2548][generic][T#1]" java.lang.NullPointerException
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: at org.elasticsearch.action.bulk.TransportBulkAction.setResponseFailureIfIndexMatches(TransportBulkAction.java:178)
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: at org.elasticsearch.action.bulk.TransportBulkAction.access$100(TransportBulkAction.java:65)
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: at org.elasticsearch.action.bulk.TransportBulkAction$1.onFailure(TransportBulkAction.java:137)
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: at org.elasticsearch.action.support.TransportAction$ThreadedActionListener$2.run(TransportAction.java:117)
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
Jun 24 08:28:31 *HOSTNAME* logstash[117760]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
Jun 24 08:28:31 *H
@Daenks
Daenks / gist:194a1d505b635727a7d6
Created June 9, 2015 17:50
Regular Expression for URLs and Emails
\b(?:(?:(?:https?|ftp|file)://|www\.|ftp\.)[-A-Z0-9+&@#/%?=~_|$!:,.;]*[-A-Z0-9+&@#/%=~_|$]|((?:mailto:)?[A-Z0-9._%+-]+@[A-Z0-9._%-]+\.[A-Z]{2,4})\b)|"(?:(?:https?|ftp|file)://|www\.|ftp\.)[^"\r\n]+"?|'(?:(?:https?|ftp|file)://|www\.|ftp\.)[^'\r\n]+'?
must be a case-insensitive search (i).