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 / gist:14fefd7df81a07309e07
Last active March 31, 2016 01:45
Check haveibeenpwned.com's breach repository for an exchange 2007+ environment (requires PoweShell 3+ and Exchange Module Loaded)
Get-Mailbox -ResultSize Unlimited | ForEach-Object { }
$Mailboxes = Get-Mailbox -ResultSize Unlimited
$Results = @()
foreach ($mailbox in $Mailboxes)
{
$s = $mailbox.PrimarySmtpAddress.ToString() -replace "@","%40"
$r = $null
$r = Invoke-WebRequest -URI "https://haveibeenpwned.com/api/v2/breachedaccount/$($s)" -Method GET -UserAgent "PsBreachFinder" -ErrorAction SilentlyContinue
if ($r -ne $null)
@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
object/active/holder/room/monsroom/a5.kod: piGen_time = 40000
object/active/holder/room/monsroom/a6.kod: piGen_time = 40000
object/active/holder/room/monsroom/barlsew.kod: piGen_time = 60000
object/active/holder/room/monsroom/barlsew2.kod: piGen_time = 70000
object/active/holder/room/monsroom/barlsew3.kod: piGen_time = 50000
object/active/holder/room/monsroom/bossroom/orcpit1.kod: piGen_time = 50000
object/active/holder/room/monsroom/bossroom/sewking.kod: piGen_time = 25000
object/active/holder/room/monsroom/c4.kod: piGen_time = 80000
object/active/holder/room/monsroom/c6.kod: piGen_time = 110000
object/active/holder/room/monsroom/d4.kod: piGen_time = 70000
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:eb6c84ee6b300292f401
Last active December 3, 2015 18:23
Build Script for Meridian59.NET
#Build Server Script for Meridian59 .NET client written by Daenks
#Specifications provided by ShaKrune: https://gist.github.com/cyberjunk/843df6483dbe17bf6b04
Param(
#Source Repository Paths
[string]$RootPath="C:\Meridian59-DotNet",
[string]$EnginePath="\Engine\src\",
[string]$EngineSolution="Engine.sln",
[string]$ClientPath="\",
[string]$ClientSolution="Meridian59.sln",
[string]$OgreClientPath="\Meridian59.Ogre.Client\bin\", #
@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