Skip to content

Instantly share code, notes, and snippets.

View lvturner's full-sized avatar
🍦
Respect to the man in the ice cream van

Lee lvturner

🍦
Respect to the man in the ice cream van
  • Hong Kong
  • 09:38 (UTC +08:00)
View GitHub Profile
This file has been truncated, but you can view the full file.
/home/lvturner/serenity/Toolchain
PREFIX is /home/lvturner/serenity/Toolchain/Local
SYSROOT is /home/lvturner/serenity/Toolchain/../Root
/home/lvturner/serenity/Toolchain/Local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
~/serenity/Toolchain/Tarballs ~/serenity/Toolchain
md5sum: binutils-2.32.tar.gz: No such file or directory
bu md5=''
--2019-05-23 19:41:28-- http://ftp.gnu.org/gnu/binutils/binutils-2.32.tar.gz
Resolving ftp.gnu.org (ftp.gnu.org)... 209.51.188.20, 2001:470:142:3::b
Connecting to ftp.gnu.org (ftp.gnu.org)|209.51.188.20|:80... connected.
@lvturner
lvturner / openssl
Last active June 14, 2018 11:46
Copy openssl libs to correct location
sudo cp /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /Library/ODBC/libssl.1.0.0.dylib
sudo cp /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /Library/ODBC/libcrypto.1.0.0.dylib
const Promise = require('bluebird');
const db = require('./connection');
const TiingoNews = require('./grabbers/tiingo_news');
const TiingoCryptoPrice = require('./grabbers/tiingo_crypto_price');
const CoinMarketCap = require('./grabbers/coin_market_cap');
const BlockChainInfo = require('./grabbers/blockchain_info');
const StockTwitsSentiment = require('./grabbers/stocktwits_sentiment');
const StockTwitsMessageVolume = require('./grabbers/stocktwits_message_volume');
const GithubCodeFrequency = require('./grabbers/github_code_frequency');
const CoinMarketCapModel = require('../models/coin_market_cap');
const rp = require('request-promise');
const Promise = require('bluebird');
class CoinMarketCap {
constructor(db) {
this.coin_market_cap_model = CoinMarketCapModel(db);
}
setTicker(ticker) {
this.ticker = ticker;
const Sequelize = require('sequelize');
module.exports = (db) => {
return db.define('coin_market_cap_item',{
// might need to get smarter with this id
coin_id: {
type: Sequelize.INTEGER
},
name: {
type: Sequelize.STRING
},
{
"data": {
"id": 1,
"name": "Bitcoin",
"symbol": "BTC",
"website_slug": "bitcoin",
"rank": 1,
"circulating_supply": 17063437.0,
"total_supply": 17063437.0,
"max_supply": 21000000.0,
sudo cp /usr/local/mysql-connector-odbc-8.0.11-macos10.13-x86-64bit/lib/libmyodbc8w.so /Library/ODBC/libmyodbc8w.so
➜ ~ mysql -uroot-p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 208
Server version: 5.7.22 Homebrew
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
brew install unixodbc mysql # Install unixodbc and mysql
mysql_secure_installation # Use this or the command below to secure the installation a bit
mysqladmin -uroot password 'cake' # The command above is better, but if you just want to set a password this works
brew services start mysql # Finally start MySQL
'use strict';
process.setMaxListeners(100);
let https = require ('https');
// **********************************************
// *** Update or verify the following values. ***
// **********************************************
// Replace the accessKey string value with your valid access key.