Skip to content

Instantly share code, notes, and snippets.

View kaschemme's full-sized avatar

Kaschemme kaschemme

  • Energy Market Solutions GmbH
  • Berlin
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kaschemme on github.
  • I am kaschemme (https://keybase.io/kaschemme) on keybase.
  • I have a public key ASCBVZeZvASNyVPHoxSxvWnkWrYWqZoSfP3c7VScFMtzvgo

To claim this, I am signing this object:

@kaschemme
kaschemme / export_csv.php
Created March 2, 2016 12:14 — forked from apocratus/export_csv.php
Export MySQL to CSV (php script)
<?php
/* vars for export */
// database record to be exported
$db_record = 'XXXXXXXXX';
// optional where query
$where = 'WHERE 1 ORDER BY 1';
// filename for export
$csv_filename = 'db_export_'.$db_record.'_'.date('Y-m-d').'.csv';
// database variables
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget.
### You can download all the binaries one-shot by just giving the BASE_URL.
### Script might be useful if you need Oracle JDK on Amazon EC2 env.
### Script is updated for every JDK release.
#
### Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.
# 3. Downloads the following from Oracle Website with one shell invocation.