Skip to content

Instantly share code, notes, and snippets.

View gullitmiranda's full-sized avatar
🌎
Working from anywhere

Gullit Miranda gullitmiranda

🌎
Working from anywhere
View GitHub Profile
@gullitmiranda
gullitmiranda / using-uuid-as-pk.md
Created November 25, 2023 16:59 — forked from rponte/using-uuid-as-pk.md
Não use UUID como PK nas tabelas do seu banco de dados

Pretende usar UUID como PK em vez de Int/BigInt no seu banco de dados? Pense novamente...

TL;TD

Não use UUID como PK nas tabelas do seu banco de dados.

Um pouco mais de detalhes

@gullitmiranda
gullitmiranda / deployment.yaml
Created February 22, 2022 23:19
Elixir + k8s startup/liveness/readiness probs
spec:
template:
spec:
containers:
- name: {{ .Chart.Name }}
# ...
#
## Application health checks
# initialDelaySeconds: Number of seconds after the container has started before startup, liveness or readiness probes are initiated.
# periodSeconds: How often (in seconds) to perform the probe. Default to 10 seconds. The minimum value is 1.
diff --git lib/hive/acquisitions/document_template.ex lib/hive/acquisitions/document_template.ex
index 411b0d8a..2ce227ee 100644
--- lib/hive/acquisitions/document_template.ex
+++ lib/hive/acquisitions/document_template.ex
@@ -21,7 +21,21 @@ defmodule Hive.Acquisitions.DocumentTemplate do
has_many(
:processes_templates,
- through: [:processes_templates_documents_templates, :process_template]
+ through: [:processes_templates_documents_templates, :process_template],
{
"functions": "~`(function() {\n var hueStep = 2",
"blue-1": "color(~`colorPalette(\"@{blue-6}\", 1)`)",
"blue-2": "color(~`colorPalette(\"@{blue-6}\", 2)`)",
"blue-3": "color(~`colorPalette(\"@{blue-6}\", 3)`)",
"blue-4": "color(~`colorPalette(\"@{blue-6}\", 4)`)",
"blue-5": "color(~`colorPalette(\"@{blue-6}\", 5)`)",
"blue-6": "#1890ff",
"blue-7": "color(~`colorPalette(\"@{blue-6}\", 7)`)",
"blue-8": "color(~`colorPalette(\"@{blue-6}\", 8)`)",
diff --git i/src/components/Pages/Sections/GenericSection.tsx w/src/components/Pages/Sections/GenericSection.tsx
index 0e58d20..8a04ac7 100644
--- i/src/components/Pages/Sections/GenericSection.tsx
+++ w/src/components/Pages/Sections/GenericSection.tsx
@@ -2,17 +2,19 @@ import * as React from 'react';
import { Theme, withStyles, WithStyles, StyleRules } from 'material-ui/styles';
-import Section, { SectionColor, SectionProps } from '../../../ui/Section';
+import { MetaInfo } from '../../PrismicRender';
@gullitmiranda
gullitmiranda / Butto.tsx
Created November 17, 2017 18:33 — forked from nuxlli/Butto.jsx
Extend material Button with Typescript
import * as React from 'react';
import * as classNames from 'classnames';
import { Theme } from 'material-ui/styles';
import { withStyles, WithStyles, StandardProps } from 'material-ui';
import MButton, { ButtonProps, ButtonClassKey } from 'material-ui/Button';
export const styles = (theme: Theme) => ({
root: {
borderRadius: 4,
{
"body": {
"message": {
"body": "#PID<0.16608.4> running Hive.Endpoint terminated\nServer: hive-staging.yube.com.br:80 (http)\nRequest: POST /graphql\n** (exit) an exception was raised:\n ** (KeyError) key :value not found in: %Absinthe.Blueprint.Input.Object{errors: [], fields: [%Absinthe.Blueprint.Input.Field{errors: [], flags: %{}, input_value: %Absinthe.Blueprint.Input.Value{data: nil, literal: %Absinthe.Blueprint.Input.String{errors: [], flags: %{}, schema_node: nil, source_location: nil, value: \"input.content.cpf-front\"}, normalized: %Absinthe.Blueprint.Input.String{errors: [], flags: %{}, schema_node: nil, source_location: nil, value: \"input.content.cpf-front\"}, schema_node: nil}, name: \"cpf-front\", schema_node: nil, source_location: nil}, %Absinthe.Blueprint.Input.Field{errors: [], flags: %{}, input_value: %Absinthe.Blueprint.Input.Value{data: nil, literal: %Absinthe.Blueprint.Input.String{errors: [], flags: %{}, schema_node: nil, source_location: nil, value: \"rj\"}, normalized:
#!/bin/sh
usage() {
echo "
sh <( curl -sSL https://gist.githubusercontent.com/gullitmiranda/53488e29cd52c1b9a9685c65a0b49e7f/raw/80fb0c4007b2c3964fc66f00312b50c15892fe3e/docker_dc.sh ) IMAGE_MATCH
"
}
IMAGE_MATCH=${1:-$IMAGE_MATCH}
@gullitmiranda
gullitmiranda / full.log
Created January 27, 2017 04:51
react-native-git-upgrade log
react-native-git-upgrade --verbose
git-upgrade info Check for updates
git-upgrade info Using yarn 0.19.1
git-upgrade info Read package.json files
git-upgrade info Check declared version
git-upgrade info Check matching versions
git-upgrade info Check React peer dependency
git-upgrade info Check that Git is installed
git-upgrade info Get information from NPM registry
{
#! /bin/bash
function valid_required_envs() {
# Configs
required_envs=(KUBE_CONTEXT KUBE_SERVER)
# Securities
required_envs+=(KUBE_CERTIFICATE_AUTHORITY)
required_envs+=(KUBE_CLIENT_CERTIFICATE KUBE_CLIENT_KEY)
errors=()