Skip to content

Instantly share code, notes, and snippets.

View cesarAugusto1994's full-sized avatar

César Augusto Sousa cesarAugusto1994

  • Provider
  • PInheiros/ES
View GitHub Profile
https://bar8.com.br/o-que-%C3%A9-um-objeto-mesmo-7650ce5c59d2#.buogb357t
@cesarAugusto1994
cesarAugusto1994 / Como instalar o Java 8 no Ubuntu
Created December 3, 2016 13:39
Como instalar o Java 8 no Ubuntu
Para instalar o Java 8 vamos utilizar o PPA do WebUpd8, abra o terminal e cole os seguintes comandos:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Depois da instalação para verificar se o Java foi instalado corretamente digite:
java -version
@cesarAugusto1994
cesarAugusto1994 / Salvar usuário e senha do git
Created December 5, 2016 10:20
Salvar usuário e senha do git para que não seja mais solicitado
SALVA USUARIO E SENHA POR 8 HORAS:
$ git config --global credential.helper 'cache --timeout=28800'
SALVA USUARIO E SENHA PERMANENTE:
$ git config --global credential.helper cache
@cesarAugusto1994
cesarAugusto1994 / git.md
Created September 25, 2017 16:41 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

INSERT INTO marcas(id, nome, created_at) VALUES (1, 'ITATIAIA', '2017-11-21 16:44:36');
INSERT INTO marcas(id, nome, created_at) VALUES (10, 'COLORMAQ', '2017-11-21 16:44:36');
INSERT INTO marcas(id, nome, created_at) VALUES (12, 'CONSUL', '2017-11-21 16:44:36');
INSERT INTO marcas(id, nome, created_at) VALUES (15, 'ARNO', '2017-11-21 16:44:36');
INSERT INTO marcas(id, nome, created_at) VALUES (16, 'BLACK E', '2017-11-21 16:44:36');
INSERT INTO marcas(id, nome, created_at) VALUES (17, 'BRITANIA', '2017-11-21 16:44:36');
INSERT INTO marcas(id, nome, created_at) VALUES (27, 'FAET SA', '2017-11-21 16:44:36');
INSERT INTO marcas(id, nome, created_at) VALUES (33, 'IMOP', '2017-11-21 16:44:36');
INSERT INTO marcas(id, nome, created_at) VALUES (43, 'ACP', '2017-11-21 16:44:36');
React Tools
https://github.com/goldenyz/react-perfect-scrollbar
https://github.com/frontend-collective/react-sortable-tree
https://www.npmjs.com/package/react-hotkeys-hook
https://usehooks.com/useEventListener/
@cesarAugusto1994
cesarAugusto1994 / Random-string
Created August 3, 2020 11:31 — forked from 6174/Random-string
Generate a random string in JavaScript In a short and fast way!
//http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript
Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
require 'capistrano-db-tasks'
# config valid only for current version of Capistrano
lock '3.7.1'
# Change these
server 'myproject.com', port: 54321, roles: [:web, :app, :db], primary: true
set :repo_url, '[email protected]:steven_chanin/myproject.git'
set :application, 'myproject'
@cesarAugusto1994
cesarAugusto1994 / RNUIAPP - ProfileScreen1.jsx
Created October 22, 2021 21:29 — forked from akulsr0/RNUIAPP - ProfileScreen1.jsx
React Native UI - Profile Screen 1
import React, { useState } from 'react';
import {
StyleSheet,
Text,
View,
ScrollView,
TouchableOpacity,
Image,
ActivityIndicator,
Dimensions,