Skip to content

Instantly share code, notes, and snippets.

View Dantali0n's full-sized avatar

Dantali0n Dantali0n

View GitHub Profile
@Dantali0n
Dantali0n / wordpress-brute-force-ip-list.txt
Created December 24, 2018 09:59
List of ip addresses that will brute force wordpress dashboard logins in an automated fashion.
113.132.39.152
117.22.67.4
61.185.251.59
46.28.68.151
37.59.55.156
91.213.8.83
5.254.98.73
173.208.177.59
188.165.168.67
134.249.55.134
@Dantali0n
Dantali0n / email_return_path_fix.php
Created December 10, 2018 10:18
Fix Wordpress emails disappearing due to incorrect return-path set from phpmailer
<?php
/*
Plugin Name: Email Return Path Fix
Author: Abdussamad Abdurrazzaq
*/
class email_return_path {
function __construct() {
add_action( 'phpmailer_init', array( $this, 'fix' ) );
}
@Dantali0n
Dantali0n / exampleclass.cpp
Created August 15, 2017 12:16
C++ Delegation in A java type fashion
#include "exampleclass.h"
/**
* Assign instance of delegate upon object construction, do not allow serialCommand to exist without a delegate object
*/
ExampleClass::ExampleClass(ExampleClassDelegate *eventHandler) {
this->eventHandler = eventHandler; // assign the delegate
}
// example function to see how calls inside of ExampleClass can reach code outside of ExampleClass
@Dantali0n
Dantali0n / disableTelemetry.c
Created March 7, 2017 13:08
Disable visual studio 2015 and higher telemetry
#include <clocale>
#include <windows.h>
#include <shellapi.h>
// Disable telemetry added in Visual Studio 2015
#if defined(_MSC_VER) && _MSC_VER >= 1900
extern "C" {
void _cdecl __vcrt_initialize_telemetry_provider() { }
void _cdecl __telemetry_main_invoke_trigger() { }
void _cdecl __telemetry_main_return_trigger() { }
@Dantali0n
Dantali0n / make-crypt-btrfs.sh
Last active August 10, 2017 13:24
Script to create crypt-luks drives formated in btrfs
#!/bin/bash
# List of commands required for execution of the setup script
commandsRequire=("cryptsetup" "dd" "mkfs.btrfs")
err11="I require"
err12="but it's not installed. Aborting..."
mes11="Found"
@Dantali0n
Dantali0n / BaseSort
Created November 16, 2016 07:59
Java abstract class for sorting classes according to Algorithms fourth edition (ISBN: 978-0-321-57351-3)
/*****************************************************************************
Written and Copyright (C) by Corne Lukken
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
@Dantali0n
Dantali0n / Android ScanResult frequency to channel converter
Created October 20, 2015 23:41
Converts android wireless frequency numbers to their appriopiate wifi channel number, works for 2.4ghz and 5ghz channels
String frequencyToChannel(String frequency) {
switch(frequency) {
case "2412" :
return "ch 1 - 2.4ghz";
case "2417" :
return "ch 2 - 2.4ghz";
case "2422" :
return "ch 3 - 2.4ghz";
case "2427" :
return "ch 4 - 2.4ghz";
@Dantali0n
Dantali0n / egps.lua
Last active August 29, 2015 14:26 — forked from SquidLord/egps.lua
egps: A* pathfinding library for Minecraft ComputerCraft turtles.
-- This library provide high level turtle movement functions.
--
-- Before being able to use them, you should start the GPS with egps.startGPS()
-- then get your current location with egps.setLocationFromGPS().
-- egps.forward(), egps.back(), egps.up(), egps.down(), egps.turnLeft(), egps.turnRight()
-- replace the standard turtle functions.
-- If you need to use the standard functions, you
-- should call egps.setLocationFromGPS() again before using any egps functions.
-- Gist at: https://gist.github.com/SquidLord/4741746