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"
}
@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"
@magicdude4eva
magicdude4eva / FileDownload.java
Created June 8, 2017 19:05
How to bypass SSLProtocolException: handshake alert: unrecognized_name
/** Downloads a file from the specified URL to the specified local file path.
* It returns the number of bytes in the downloaded file,
* or throws an exception if there is an error.
*
* @param aURL
* @param aLocalFilePath
* @param aMilliSecondTimeout
* @param aSkipSNI
* @return
*/
@magicdude4eva
magicdude4eva / bidorbuy-test.md
Last active November 27, 2021 11:45
Bidorbuy Java test

Programming example - Write an app:

  • For Java tests create a Tomcat/Webapp project using Eclipse and then write a simple search/display results app using JSPs.
  • For Android / iOS native apps use the respective development IDEs (Android Studio or XCode)
  • Email back the completed project (it should be importable into the IDE and just run)
  • There is no limit to creativity/what you use. The code should however follow a MVC pattern and have abstraction/separation of concerns (i.e. network logic should not be part of presentation logic)

The service to call for this exercise is the Paginated Trade Search service. It is a RESTful GET service you will call with HTTP parameters to retrieve the results you want. For authentication to the service you will add HTTP headers to your request.

First things first, each call you make to our demo service requires the following HTTP headers: