Skip to content

Instantly share code, notes, and snippets.

@Sanchiz
Sanchiz / mac-php-composer-setup.md
Created October 16, 2018 08:27 — forked from tomysmile/mac-php-composer-setup.md
Setup PHP Composer using Brew
@Sanchiz
Sanchiz / setup.md
Created October 16, 2018 08:27 — forked from shashankmehta/setup.md
Setup PHP and Composer on OSX via Brew

First install Brew on your MAC

  • Setup Brew: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • brew update
  • brew tap homebrew/dupes
  • brew tap homebrew/php
  • Install PHP 7.0.+ brew install php70
  • Install mcrypt: brew install mcrypt php70-mcrypt
  • Finally, install composer: brew install composer
@Sanchiz
Sanchiz / monobank-ynab.js
Created November 12, 2020 10:37 — forked from userhooke/monobank-ynab.js
Serverless script to link Monobank API and YNAB
const ynab = require("ynab");
const ynabAPI = new ynab.API(process.env.YNAB_TOKEN);
const adMaioraBudgetId = process.env.BUDGET_ID;
const monoDebitAccountId = process.env.MONO_DEBIT_ACCOUNT_ID;
module.exports.handler = (event, context, callback) => {
const body = JSON.parse(event.body);
console.log('Event body: ', body);