Skip to content

Instantly share code, notes, and snippets.

View bees4ever's full-sized avatar
coffee & code

Ben bees4ever

coffee & code
  • Augsburg, Germany
View GitHub Profile
@bees4ever
bees4ever / .py
Created June 18, 2018 21:12
Basic Arithmetic Expression - A list for software testing
9037835068266969367+20786027381542703587-19584829430118559139+14921987140199019570
585925827243187073*18634207258213331790+35990413499966349208-1528157475467066487-30035150546140267364
10133043188289955552/29970902391340875160*9192103471252679364/38767665197077927479/25558713700640773877*10307812309486616897
32868027723605569295+41750011341946868188*38685219375688913393-29926355285078416147-13055813567822044857
18032942248950685124/22905213397519315761-16621230069147884711+16756971631985101561
-35015886146009900113/13841375736377748601-11710768060687766078+1203792929435022539-2490049582572649681+1955504328509519319
-7424497931239887558/-17713177623533065036-4958089268066401532*736400658422726968/13972383711595845838
39833822113214969981*1787700927295634158/4710845892417742040/13957046682032392604
35182173823722335853-22043195158291350817*42488788318239329020-10311850779324497825+7801529178188120606+45407104526670695389+18718950322186621647
24076870199633727473+41390192739277267869*32241545711044487733/8469436
@bees4ever
bees4ever / Test.scala
Created December 16, 2018 13:16
Scala download binary file from untrusted ssl url
// based on https://stackoverflow.com/a/28787883/5885054 with own modification
import javax.net.ssl._
import java.security.cert.X509Certificate
import scala.io.Source
// Bypasses both client and server validation.
object TrustAll extends X509TrustManager {
val getAcceptedIssuers = null
def checkClientTrusted(x509Certificates: Array[X509Certificate], s: String) = {}