Skip to content

Instantly share code, notes, and snippets.

View tghilardi's full-sized avatar

Thiago Ghilardi tghilardi

  • Florianopolis, Brazil
View GitHub Profile
@SamuelGee
SamuelGee / binance.php
Created February 4, 2018 17:31
Binance get historical data
<?
header("Content-type: text/html; charset=utf-8");
//get list of symbols
$xinfo = json_decode(file_get_contents("https://api.binance.com/api/v1/exchangeInfo"), true);
$symbols = [];
foreach($xinfo["symbols"] as $sym) $symbols[] = $sym["symbol"];
asort($symbols);
@bachors
bachors / Mailbox.php
Last active January 22, 2020 14:51
Reading emails from a IMAP mailbox - PHP example http://ibacor.com/demo/reading-emails-php/
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>IMAP mailbox - iBacor</title>
<!-- Custom style -->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.min.css">
<style>
@oodavid
oodavid / README.md
Created March 26, 2012 17:05
Backup MySQL to Amazon S3

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc