Skip to content

Instantly share code, notes, and snippets.

View ManUtopiK's full-sized avatar
:octocat:
Ready to code.

Emmanuel Salomon ManUtopiK

:octocat:
Ready to code.
View GitHub Profile
@brolnickij
brolnickij / VmGallery.vue
Last active October 12, 2021 11:40
vm-gallery
<template lang="pug">
.vm-gallery
div(
:style="{ transitionDuration: transitionDuration, transform: translate3DPosition }"
ref="galleryItems"
).vm-gallery-items
div(v-for="imageItem in imageNodes").vm-gallery-item
img(
:src="imageItem.src"
:key="imageItem.src"
@tgmarinho
tgmarinho / get_schema.md
Created October 3, 2021 20:10
Script to get schema.graphql from Hasura relay endpoint

Exporting the Hasura GraphQL schema

Install graphqurl

npm install -g graphqurl

If Hasura GraphQL engine is running with an admin secret

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Fastify Basic

Servicio rest con fastify cors, helmet, rate limit, autoload

import Fastify from 'fastify'
import { dirname, join } from 'path'
import { fileURLToPath } from 'url'
import AutoLoad from 'fastify-autoload'
@osdevisnot
osdevisnot / .gitignore
Created February 5, 2021 22:38
esbuild-fastify-starter
node_modules
dist
yarn.lock
@apurvajain
apurvajain / Commit_Message.md
Last active August 15, 2023 21:14
Commit Message Template

Commit Message Convention

type(scope): subject 

<body>
<footer>

1. Type of commit

@osaxma
osaxma / hasura_postgres_docker_notes.md
Last active December 4, 2021 20:59
Notes on working with Hasura, Postgres and Docker in local development
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<p class="title">Web Assembly Example</p>
const decoder = new TextDecoder('utf-8');
let text:string;
let lines:string[];
try {
text = decoder.decode(await Deno.readFile("./test.txt"))
lines = text.split("\n")
} catch(e) {
console.error(e)
Deno.exit(1)
@Eomm
Eomm / stress-memory.js
Created August 19, 2020 12:03
Check when your server goes out of memory
/**
* node --max-old-space-size=4048 --initial-old-space-size=4048 --max-heap-size=4048 stress-memory
* x64
* rss 3.39 GB
* heapTotal 3.74 GB
* heapUsed 3.73 GB
*/
const os = require('os')
console.log(os.arch())