Skip to content

Instantly share code, notes, and snippets.

@agustinustheo
agustinustheo / mock_financial_data.csv
Last active December 10, 2023 05:30
Mock data for a financial data analysis dashboard.
Date Income Expenses NetIncome BudgetIncome ActualIncome BudgetExpenses ActualExpenses Salaries R&D Marketing Utilities Rent Equipment Software Hardware Consulting Office Supplies DiffIncome DiffExpenses
2022-01-01 281 218 63 284 281 221 218 41 24 45 43 22 35 2 2 2 2 3 3
2022-01-02 328 244 84 323 328 240 244 46 45 34 35 31 37 1 4 8 3 -5 -4
2022-01-03 266 223 43 269 266 222 223 31 49 38 30 22 40 2 6 1 4 3 -1
2022-01-04 287 226 61 279 287 229 226 43 47 31 48 21 26 5 1 3 1 -8 3
2022-01-05 307 214 93 309 307 217 214 48 37 40 23 34 20 1 3 4 4 2 3
2022-01-06 209 229 -20 197 209 226 229 48 23 29 49 39 26 3 6 5 1 -12 -3
2022-01-07 294 202 92 289 294 202 202 38 22 34 23 36 32 2 9 4 2 -5 0
2022-01-08 270 217 53 260 270 210 217 33 40 20 36 31 42 4 7 1 3 -10 -7
2022-01-09 255 209 46 256 255 214 209 43 33 32 36 21 35 2 3 1 3 1 5
@agustinustheo
agustinustheo / myriad_devnet_airdrop.logs.txt
Created October 26, 2023 17:09
Airdrop logs for Myriad Social Devnet
Retrieving eligible addresses...
Eligible addresses for airdrop: [
{
address: '5Cr4D7HLFubZUHnWSa2ErcTVqLGXDMcRRECPMJMUJu9euTfU',
balance: '40090304795001589023923',
networkId: 'myriad'
},
{
address: '5Di8z8iqwkg1uEz2zqEyJopif8HdVvPT3DCxmyJt8SkBQeFS',
balance: '1023969999999750000000',
@agustinustheo
agustinustheo / myriad-node-parachain.logs.txt
Created October 26, 2023 07:19
Myriad Social Parachain build logs.
~/work/myriad-node-parachain ~/work/myriad-node-parachain
Starting docker compose
Creating volume "myriad-node-parachain_data" with default driver
Building node
Step 1/32 : FROM paritytech/ci-linux:61d4fd50-20230713 AS chef
61d4fd50-20230713: Pulling from paritytech/ci-linux
9d21b12d5fab: Pull complete
94ec252bb138: Pull complete
935ba62d5fdf: Pull complete
Digest: sha256:dc9abf9e877c5bad94828245406dac8a186530e1ad6a1b5f2072e5e19e1f64b4
name: CI/CD Deploy Netlify Webapp
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
@agustinustheo
agustinustheo / deploy-react-web-using-netlify.yml
Created November 6, 2022 04:39
GH Actions to deploy React to Netlify
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.1
with:
publish-dir: './packages/react-webapp/build'
production-branch: main
github-token: ${{ secrets.MY_GITHUB_SECRET }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
@agustinustheo
agustinustheo / react-lerna-install-and-build.yml
Created November 6, 2022 04:27
GH Actions for Lerna and React
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Monorepo Code
uses: actions/checkout@v2
- name: Yarn Bootstrap
uses: borales/actions-yarn@v3.0.0
with:
cmd: bootstrap:ci # will run `yarn bootstrap:ci` command
@agustinustheo
agustinustheo / Dockerfile
Last active October 21, 2022 07:56 — forked from beeman/Dockerfile
Docker image with solana-test-validator that works on a Apple M1
FROM debian:bullseye as base
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
WORKDIR /workspace
RUN mkdir -pv "/workspace/bin" && echo 'echo test' > '/workspace/bin/test.sh' && chmod +x '/workspace/bin/test.sh'
ENV PATH="/workspace/bin:${PATH}"
FROM base as builder
@agustinustheo
agustinustheo / features-table.md
Last active October 16, 2022 11:45
Nest.js vs ASP.NET main features list.
Features Nest.js Package Made by ASP.NET Package Made by
Caching cache-manager Community Microsoft.Extensions.Caching.Memory Microsoft
Database access @nestjs/typeorm Nest.js Microsoft.AspNetCore.Identity.EntityFrameworkCore Microsoft
Authentication @nestjs/passport Nest.js Microsoft.AspNetCore.Authentication Microsoft
Task scheduling @nestjs/schedule Nest.js Cronos Community
Queues @nestjs/bull Nest.js System.Messaging Microsoft
Swagger @nestjs/swagger Nest.js Swashbuckle.AspNetCore.Swagger Community
WebSockets @nestjs/websockets Nest.js Microsoft.AspNetCore.WebSockets Microsoft
@agustinustheo
agustinustheo / on-trigger.yaml
Created October 4, 2022 15:02
GitHub Actions workflow that triggers push/pull requests to the main branch.
name: CI/CD Deploy Netlify Webapp Dev
on:
push:
branches: [ main ]
workflow_dispatch:
@agustinustheo
agustinustheo / package.json
Last active October 4, 2022 14:55
Root `package.json` file for Lerna
{
"name": "root",
"private": true,
"scripts": {
"lerna": "lerna",
"bootstrap:ci": "yarn --ignore-scripts --silent && lerna bootstrap -- --ignore-scripts && yarn build:ci",
"build:ci": "lerna run build"
},
"devDependencies": {
"lerna": "^5.1.4",