This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone repo_main | |
git clone repo_sub | |
cd repo_main | |
git remote add repo_sub ../repo_sub | |
git fetch repo_sub | |
git checkout -b repo_sub repo_sub/master | |
mkdir dir_repo_sub |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# @author Carlos Spohr | |
# Este script cria o bucket de produção e replicação na AWS juntamente da | |
# iam role, role policies para replicação. | |
# Para rodar este script você precisará ter o aws cli instalado e com uma chave(key) | |
# que permita você criar estes itens via aws cli. | |
# Este script é feito pra linux e depende apenas do pacote jq. Você pode instalar ele assim: | |
# CentOS: yum install -y jq | |
# Ubuntu/debian: apt-get install -y jq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn run v1.22.18 | |
$ webpack | |
assets by status 1.04 MiB [1m[32m[cached][39m[22m 86 assets | |
orphan modules 863 KiB [1m[33m[orphan][39m[22m 249 modules | |
runtime modules 1.07 KiB 6 modules | |
built modules 2.05 MiB [1m[33m[built][39m[22m | |
modules by path [1m../../node_modules/moment/locale/*.js[39m[22m 503 KiB 135 modules | |
modules by path [1m../../node_modules/@babel/runtime/helpers/*.js[39m[22m 6.89 KiB 16 modules | |
modules by path [1m../../node_modules/react-input-mask/[39m[22m 14.3 KiB 2 modules | |
modules by path [1m../../node_modules/react-dom/[39m[22m 119 KiB 2 modules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
interface TabProps { | |
className?: string, | |
title: string; | |
isActive?: boolean; | |
onClick?: any; | |
} | |
interface TabState { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Tabbed> | |
<Tab title={'Tab 1'} > | |
<p>Content 1</p> | |
</Tab> | |
<Tab title={'Tab 2'} > | |
<p>Content 2 </p> | |
</Tab> | |
</Tabbed> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Tabs> | |
<Tab title="Aba 1"> | |
Primeira aba | |
</Tab> | |
<Tab title="Aba 2"> | |
Segunda aba | |
</Tab> | |
<Tab title="Aba 3" onTabChange={()=>{console.log('Vc clicou na aba 3')}}> | |
Terceira aba | |
</Tab> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DOMAIN="www.your-domain.com.br.jks"; | |
PASS="some-ssl-key-pass"; | |
DNAME="CN=www.your-domain.com.br, O=Org name, L=CIty, ST=STATE, C=BR"; | |
/bin/bash /usr/java/tomcat/bin/shutdown.sh | |
cd /usr/java/jdk1.8.0_121/bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package br.inf.carlos.vraptor; | |
import javax.enterprise.context.ApplicationScoped; | |
import javax.enterprise.event.Observes; | |
import org.apache.log4j.Logger; | |
import br.com.caelum.vraptor.events.VRaptorInitialized; | |
@ApplicationScoped | |
public class InitializationHandler { | |
private static final Logger logger = Logger.getLogger(InitializationHandler.class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysqldump -u root -p --no-data --routines --triggers -t your-database > triggers.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; | |
select uuid_generate_v4(); | |
SELECT uuid_in(md5(random()::text || now()::text)::cstring); | |
create table teste ( | |
id uuid not null primary key | |
); |
NewerOlder