Skip to content

Instantly share code, notes, and snippets.

View magicdude4eva's full-sized avatar

Gerd Naschenweng magicdude4eva

View GitHub Profile
@magicdude4eva
magicdude4eva / kayako-upgrade to 4.74.2.txt
Created July 7, 2016 08:59
Kayako upgrade for MySQL versions less than 5.6.31 and 5.7.13 are broken due to a bug in MySQL migrating the tables - a workaround after the restore:
1. Creating a new table with full text index:
CREATE TABLE `swticketposts_new` (
`ticketpostid` int(11) NOT NULL AUTO_INCREMENT,
`ticketid` int(11) NOT NULL DEFAULT '0',
`dateline` int(11) NOT NULL DEFAULT '0',
`userid` int(11) NOT NULL DEFAULT '0',
`fullname` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`emailto` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
@magicdude4eva
magicdude4eva / solr.conf
Last active January 5, 2021 18:52
Undertow scripts
solr.undertow: {
httpClusterPort: 8983
# Shutdown options
shutdown: {
httpPort: 9983
httpHost: "0.0.0.0"
# if password is not set, shutdown is not enabled. Make this a secure password!
password: "THESCRETPASSWORD"
gracefulDelay: "30s"
}
import java.util.*;
public class MemEat {
public static void main(String[] args) {
List l = new ArrayList<>();
System.out.println("Max Java Memory (MB): " + Runtime.getRuntime().maxMemory() / (1_024 * 1_024));
System.out.println("Total Memory (MB): " + Runtime.getRuntime().totalMemory() / (1_024 * 1_024));
System.out.println("Max Java CPU Cores: " + Runtime.getRuntime().availableProcessors());
while (true) {
@magicdude4eva
magicdude4eva / smtp-test.php
Created February 1, 2019 09:59
SMTP Test via PHPMailer
<?php
/*
To test: Run on any version of PHP, then install "PHPMailer" via composer:
composer require phpmailer/phpmailer
Test login via: https://outlook.office365.com/ecp/
*/
$fromAddress = 'XXX@domain.com';
$recipientAddress = 'YYY@recipientdomain.com';
@magicdude4eva
magicdude4eva / proxy.php
Created January 25, 2018 17:45
proxyrotator
<?php
// Get API key from https://www.proxyrotator.com/
$url = 'http://venus.proxyrotator.com/?apiKey=' . $apikey;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
$response = curl_exec($ch);
curl_close($ch);
@magicdude4eva
magicdude4eva / TERMS-AND-CONDITIONS
Last active November 27, 2021 11:44
MD4ECryptoBot - Terms and Conditions
## MD4ECryptoBot - https://twitter.com/MD4ECryptoBot
The bot is a private trading bot, trading on various crypto-exchanges. The bot trades in realtime
and publishes BUY/SELL orders on various platforums such as Twitter.
NONE OF THOSE MESSAGES ARE FINANCIAL ADVICE AND TRADING BASED ON THOSE MESSAGES MIGHT INCUR LOSSES.
## What is Cryptocurrency ?
Is a digital asset which is designed to act as a medium of exchange that uses encryption to secure transactions
and control the creation of new currency units. Cryptocoins are a subset of digital coins.
@magicdude4eva
magicdude4eva / binance-notifi.php
Last active November 27, 2021 11:44
Binance PushBullet integration via Websocket
<?php
/*
Uses the API as from https://github.com/binance-exchange/php-binance-api
Uses Pushbullet API from https://github.com/ivkos/Pushbullet-for-PHP
Install:
1) curl -s http://getcomposer.org/installer | php
2) php composer.phar require "jaggedsoft/php-binance-api @dev" "ivkos/pushbullet @dev"
@magicdude4eva
magicdude4eva / destiny-nightfall-inverted-spire
Created September 14, 2017 15:55
Nightfall - Inverted Spire tips
Strategy for inverted spire Nightfall:
- IMPORTANT: Make sure that your fire-team have arc, solar and void weapons
- Sparrow to first section and drop void grenade on minotaur (it's always void)
- Kill ads and it will probably flip to arc
- Open platforms and loop through next section
- Kill some ads, take loop
- Next section: DO NOT JUMP THROUGH LOOP. Take out ads first. Then jump through all loops
- You should have about 8min on the clock again
- Skip next section and sparrow to right boss. Take him out
- Go over to left section, take out boss.

Keybase proof

I hereby claim:

  • I am magicdude4eva on github.
  • I am gerdnaschenweng (https://keybase.io/gerdnaschenweng) on keybase.
  • I have a public key whose fingerprint is 891E 002F B39A 48FF F0CD B42D 46A2 E460 224C 2557

To claim this, I am signing this object:

@magicdude4eva
magicdude4eva / dyn_dns_acme.sh
Created July 5, 2017 15:55
dyn_dns_acme.sh
#!/usr/bin/bash
#DynDNS.com Domain API
CUSTOMERNAME='PLEASE-SET'
USERNAME='PLEASE-SET'
PASSWORD='PLEASE-SET'
DYNAPIURL="https://api.dynect.net/"
ZONE="PLEASE-SET"