Skip to content

Instantly share code, notes, and snippets.

@neochar
neochar / minio-download.sh
Last active December 6, 2021 08:06 — forked from JustinTimperio/download_from_minio.sh
Download a File to Minio with Curl and Zero External Libraries or Programs
#!/usr/bin/env sh
host=127.0.0.1:9000
s3_key=testuser
s3_secret=testpassword
bucket=$1
path="/${bucket}/$2"
out_file=$3
date=`date -R`
@neochar
neochar / minio-upload.sh
Last active December 6, 2021 08:03 — forked from PhilipSchmid/minio-upload.sh
Upload data to Minio using CURL
#!/bin/bash
# Usage: ./minio-upload testbucket testfile.txt
bucket=$1
file=$2
host=127.0.0.1:9000
s3_key=testuser
s3_secret=testpassword
@neochar
neochar / index.php
Created June 23, 2018 06:35 — forked from vielhuber/index.php
PHPExcel: Import XLSX and convert to array #php
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/phpexcel/PHPExcel/IOFactory.php');
$phpexcel_filename = $_SERVER['DOCUMENT_ROOT'].'/import.xlsx';
$phpexcel_filetype = PHPExcel_IOFactory::identify($phpexcel_filename);
$phpexcel_objReader = PHPExcel_IOFactory::createReader($phpexcel_filetype);
$phpexcel_objPHPExcel = $phpexcel_objReader->load($phpexcel_filename);
// convert one sheet
$phpexcel_sheet = $phpexcel_objPHPExcel->getSheet(0);
$phpexcel_highestRow = $phpexcel_sheet->getHighestRow();