Skip to content

Instantly share code, notes, and snippets.

View brunocarvalhodearaujo's full-sized avatar

Bruno Carvalho de Araujo brunocarvalhodearaujo

  • Rede D'Or São Luiz
  • Rio de Janeiro, Brazil
  • 19:56 (UTC -03:00)
  • X @Bruno_C_Araujo
View GitHub Profile
const { makeRemoteExecutableSchema, introspectSchema, mergeSchemas } = require('graphql-tools')
const { createHttpLink } = require('apollo-link-http')
const { setContext } = require('apollo-link-context')
const { ApolloServer } = require('apollo-server-express')
const fetch = require('node-fetch')
const log4js = require('log4js')
const logger = log4js.getLogger('server.js')
logger.level = process.env.LOG_LEVEL || 'debug'
const express = require('express')
@brunocarvalhodearaujo
brunocarvalhodearaujo / pre-commit
Last active January 20, 2024 14:16 — forked from zioproto/pre-commit
Git hook to avoid committing a decrypted ansible vault
#!/bin/bash
git show :group_vars/all.yml | grep ^'$ANSIBLE_VAULT'
export encrypted=$?
if [ $encrypted -ne 0 ]; then
echo Ansible Vault not encrypted, refusing to commit
exit 1
fi
@brunocarvalhodearaujo
brunocarvalhodearaujo / proxmox_lxc_nfs_server.md
Created April 12, 2024 19:49 — forked from rwenz3l/proxmox_lxc_nfs_server.md
Install a NFS Server inside a LXC Container on Proxmox 5.1

Installing NFS inside LXC Container on Proxmox 5.1

Host Setup:

Create LXC Container as usual, but do not start it yet.

# Install NFS-Kernel on Host
apt install nfs-kernel-server