Skip to content

Instantly share code, notes, and snippets.

View rafaellucio's full-sized avatar
🏠
Working from home

png rafaellucio

🏠
Working from home
View GitHub Profile
Terraform v1.3.1
on linux_amd64
{"@level":"info","@message":"Terraform 1.3.1","@module":"terraform.ui","@timestamp":"2022-10-11T16:15:03.140007Z","terraform":"1.3.1","type":"version","ui":"1.0"}
{"@level":"info","@message":"cloudflare_pages_domain.staging: Plan to create","@module":"terraform.ui","@timestamp":"2022-10-11T16:15:04.534103Z","change":{"resource":{"addr":"cloudflare_pages_domain.staging","module":"","resource":"cloudflare_pages_domain.staging","implied_provider":"cloudflare","resource_type":"cloudflare_pages_domain","resource_name":"staging","resource_key":null},"action":"create"},"type":"planned_change"}
{"@level":"info","@message":"cloudflare_pages_domain.prod: Plan to create","@module":"terraform.ui","@timestamp":"2022-10-11T16:15:04.534217Z","change":{"resource":{"addr":"cloudflare_pages_domain.prod","module":"","resource":"cloudflare_pages_domain.prod","implied_provider":"cloudflare","resource_type":"cloudflare_pages_domain","resource_name":"prod","resource_key":null},"action":"create"},"ty
Hi everyone,
I can't have access an my Decathlon account, when the website try load my profile, it returns a error
Here is an erro in GraphQL request
Request:
curl 'https://decathlonmyaccount--decathlonstore.myvtex.com/_v/graphql/private/v1' \
-H 'authority: decathlonmyaccount--decathlonstore.myvtex.com' \
public class Logger
{
public void Success(string message)
{
Console.Write($"SUCCESS {message}");
}
public void Error(string message)
{
Console.Write($"ERROR {message}");
}
public class Logger {
public void success(string message) {
System.out.println(String.format("SUCCESS %s", message));
}
public void success(string message) {
System.out.println(String.format("SUCCESS %s", message));
}
}
class Logger {
sucesso(message) {
console.log(`SUCESSO: ${message}`)
}
error(message) {
console.error(`ERROR: ${message}`)
}
}
import Auth from './auth'
import Logger from './logger'
class LoginService {
static async loggin(user, pass) {
const logger = new Logger();
try {
const user = await Auth.authenticate(user, pass)
logger.sucesso(JSON.stringify(user))
} catch (error) {
class Logger {
sucesso(message) {
console.log(`SUCESSO: ${message}`)
}
error(message) {
console.error(`ERROR: ${message}`)
}
}
import { connect } from 'react-redux'
import Counter from './Counter'
const mapStateToProps = state => ({ count: state.count })
const mapDispatchToProps = dispatch => ({
increment: () => dispatch({ type: 'INCREMENT' }),
decrement: () => dispatch({ type: 'DECREMENT' })
})
import React from 'react'
const Counter = props => (
<div>
<h2>Counter</h2>
<div>
<button onClick={props.decrement}>-</button>
<span>{props.count}</span>
<button onClick={props.increment}>+</button>
</div>
@rafaellucio
rafaellucio / README.md
Last active August 14, 2024 17:33
Plugin NVM oh-my-zsh

NVM plugin

Description

This plugin provides load nvm if it exists and when the .nvmrc file exists in your directory, it will download the described node version.

To start using it:

  • Add the ZSH_NVM_AUTOLOAD=true at the beginning of the file ~/.zshrc
  • Add nvm plugin to your plugins array in ~/.zshrc