Skip to content

Instantly share code, notes, and snippets.

@Daenks
Daenks / WhyNoWorky.html
Last active Mar 5, 2020
I'm doing a dumb somehow. Help me find it.
View WhyNoWorky.html
<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 Mar 7, 2018 — 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.
View chefquery.ps1
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 Aug 3, 2017 — 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
View Apache Tomcat 8 Start stop script init.d script
#!/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 Apr 5, 2016 — forked from anonymous/Get-MaltegoTransformResponse.ps1
Powershell Maltego Local Transform Example
View Get-MaltegoTransformResponse.ps1
Param(
$IP ##IP we will look up
)
#Define XML Header
$MaltegoHeader = @"
<MaltegoMessage>
<MaltegoTransformResponseMessage>
<Entities>
"@
View guard-my-mabook-when-i-am-away.sh
#!/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
View gist:f0fe302602f5982d6d6f
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 Sep 21, 2015
meridian59-dotnet repo setup
View gist:07daa7fdc9540dcbb93f
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 Jul 14, 2015
Meridian 59: Insurrection - Readme.txt
View gist:96e564523e8f49daa8bd
Meridian 59(TM) Insurrection
Readme (07 July 1998)
-----------------------------------------------
Table of Contents
-----------------------------------------------
1. System Requirements
2. Welcome
3. What's in Meridian 59
View gist:8905d3e0bc43db4993eb
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 Jun 9, 2015
Regular Expression for URLs and Emails
View gist:194a1d505b635727a7d6
\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).