This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.fontFamily": "Fira Code", | |
"editor.fontLigatures": true, | |
"editor.tabSize": 2, | |
"gitlens.advanced.messages": { | |
"suppressShowKeyBindingsNotice": true | |
}, | |
"indenticator.inner.showHighlight": true, | |
"workbench.colorTheme": "Monokai", | |
"workbench.colorCustomizations": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Latest docker | |
sudo apt-get remove --purge docker docker-engine docker.io | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install docker-ce |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs') | |
var _ = require('lodash') | |
var USD_CONVERSIONS = ["ETH", "BTC"] | |
// Array of Arrays where inner Array is SYMBOL(str), SHARES(num) | |
var portfolio_data_file = "portfolio.json" | |
// Example dump of coinbase API | |
var coinbase_data_file = "coinbase.json" | |
// Example dump of binance API |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"errors" | |
"fmt" | |
"time" | |
) | |
func main() { | |
po := new(PurchaseOrder) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const atob = require('atob'); | |
const fs = require('fs'); | |
const unminify = require('unminify'); | |
const obfuscated = require('./obfuscated').data; | |
const outputFile = "output.js"; | |
let decoded = atob(obfuscated); | |
let escaped = escape(decoded); | |
let ready = decodeURIComponent(escaped); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const proc = require('child_process') | |
const fs = require('fs') | |
function toJSON(filename) { | |
if (!compiles(filename)) { | |
throw new Error(filename + " does not compile in perl") | |
} | |
var jsObj = {} | |
try { | |
jsObj = perl2js(filename) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate reqwest; | |
extern crate serde; | |
extern crate serde_json; | |
#[macro_use] | |
extern crate serde_derive; | |
use std::io::Read; | |
use serde_json::Error; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const _ = require("lodash") | |
const firebase = require('firebase-admin') | |
//firebase config | |
const config = require('./config') | |
//firebase credentials | |
const serviceAccount = 'credentials.json' | |
firebase.initializeApp({ | |
credential: firebase.credential.cert(serviceAccount), | |
databaseURL: config.firebase.databaseURL | |
}) |