Skip to content

Instantly share code, notes, and snippets.

View flasd's full-sized avatar
🤠
Build something awesome

Marcel Coelho flasd

🤠
Build something awesome
View GitHub Profile
@flasd
flasd / export-import-gpg-keys.md
Created October 16, 2023 19:41 — forked from lysender/export-import-gpg-keys.md
Export and import GPG Keys

Export public key

gpg --export [email protected] > my_key.pub 

The file can then be shared to other people.

Export public key in armor ascii format

@flasd
flasd / HorizontalFlex.jsx
Created October 20, 2020 14:09
HorizontalFlex
import React from 'react';
import PropTypes from 'prop-types';
import { Divider, Container, NodesWrapper, Pusher } from './styles';
export default function HorizontalFlex(props) {
const { hideDivider, dividerMargin, leftNodes, rightNodes } = props;
return (
<Container>
{!hideDivider && (
@flasd
flasd / bash
Created May 8, 2020 23:27
.bashrc for JS developers
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# We use preexec and precmd hook functions for Bash
# If you have anything that's using the Debug Trap or PROMPT_COMMAND
# change it to use preexec or precmd
# See also https://github.com/rcaloras/bash-preexec
# If not running interactively, don't do anything
case $- in
@flasd
flasd / example.js
Created August 26, 2019 19:43
Reproduction of #69 on graphql-scalars
const path = require('path');
const http = require('http');
const get = require('lodash.get');
const { typeDefs: scalarTypeDefs, resolvers: scalarResolvers } = require('graphql-scalars');
const { fileLoader, mergeTypes, mergeResolvers } = require('merge-graphql-schemas');
const { IsAuthenticatedDirective } = require('graphql-auth-directives');
const {
ApolloServer, ApolloError, AuthenticationError, UserInputError,
} = require('apollo-server-express');
// const log = require('../services/logger');