Skip to content

Instantly share code, notes, and snippets.

@rjescobar
rjescobar / extend-trial-jetbrains-windows.bat
Created August 31, 2021 02:53
JetBrains IDE trial reset windows
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
@samlucax
samlucax / n1_rotas_com_mock.md
Last active July 15, 2021 17:23
N1 - Rotas com Mocks

Se você está usando o server & route

// rotas com mocks. 
// Necessário por enquanto, dado que a aplicação demoautomation está instável

cy.server()
cy.route({
  method: 'POST',
  url: '**/api/1/databases/userdetails/collections/newtable?**',
@samlucax
samlucax / index.d.ts
Last active December 13, 2020 11:09
Cypress Commands Intellisense
/**
* Crie um arquivo index.d.ts na pasta support.
* Copie o conteúdo abaixo dentro do arquivo index.d.ts criado.
* Importante: esse NÃO substitui o index.js existente. Eles possuem finalidades diferentes.
*/
/// <reference types="cypress" />
declare namespace Cypress {
@samlucax
samlucax / cypress-schema.json
Created September 10, 2020 00:55
Cypress Schema
"$schema": "https://raw.githubusercontent.com/cypress-io/cypress/develop/cli/schema/cypress.schema.json"
@samlucax
samlucax / reporter.js
Created August 6, 2020 04:49
Código do reporter construído na Semana Agilizei 1.0 - Aula 04 - Relatórios
const reporter = require('cucumber-html-reporter')
const options = {
theme: 'bootstrap',
jsonDir: 'cypress/reports/cucumber-json',
output: 'cypress/reports/cucumber_report.html',
reportSuiteAsScenarios: true,
scenarioTimestamp: true,
launchReport: true,
metadata: {
@giosave
giosave / comandos.txt
Last active July 12, 2022 21:27
Instrucciones y Comandos LINUX[Ubuntu]
############ INSTALAR NODEJS
sudo apt install nodejs
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install gcc g++ make
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
//npx create-react-app [NombreApp]
############## INSTALAR SQL SERVER
@maykbrito
maykbrito / index.html
Last active January 27, 2024 00:51
WS special hands on! - Texto dia 1
<p>
Ficar em casa em períodos longos, não deve ser nada fácil.
</p>
<p>
Iremos catalogar ideias, brincadeiras, jogos, filmes, livros, cursos, dicas e tudo que for necessário para tornar esse momento mais interessante.
</p>
<p>
Comece clicando em ver ideias para ver as ideias cadastradas e contribua adicioando a sua ideia.
</p>
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@diego3g
diego3g / settings.json
Last active July 20, 2024 13:37
VSCode Settings (Updated)
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 15,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
120
],
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"