Skip to content

Instantly share code, notes, and snippets.

View alexishida's full-sized avatar
👨‍💻
Coding

Alex Ishida alexishida

👨‍💻
Coding
View GitHub Profile
/* ------------------------------------------------------------------------------
*
* # Gulp file
*
*
* Autor: Alex Ishida
* Versão: 1.0
*
* ---------------------------------------------------------------------------- */
@alexishida
alexishida / index.html
Created September 22, 2016 03:46
jQuery’s JSONP API GitHub example
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Teste JSONP - API do GITHUB</title>
<link rel="shortcut icon" href="/favicon.ico" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<script src='https://code.jquery.com/jquery-3.1.0.min.js'></script>
https://help.ubuntu.com/community/Boot-Repair
@alexishida
alexishida / instalando-sendmail.txt
Created March 28, 2017 06:46
Instalando sendmail Ubuntu
sudo apt-get install sendmail
sudo sendmailconfig
sudo pico /etc/hosts
127.0.0.1 197b43000208 localhost localhost.localdomain
::1 197b43000208 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
@alexishida
alexishida / game-developers-links.md
Last active May 12, 2017 21:54
Many game graphics for Game Developers
@alexishida
alexishida / http-basic-auth.txt
Created August 4, 2017 00:24
http Basic Auth nginx
sudo sh -c "echo -n 'usuario:' >> /etc/nginx/.htpasswd"
sudo sh -c "openssl passwd senha >> /etc/nginx/.htpasswd"
cat /etc/nginx/.htpasswd
# Config do nginx
server {
@alexishida
alexishida / gerando-certificado-autoassinado.txt
Created August 8, 2017 14:38
Gerando certificado https auto-assinado
# Gerando certificados para SSL Self Signed
openssl req \
-newkey rsa:4096 -nodes -sha256 -keyout domain.key \
-x509 -days 3650 -out domain.crt
# Gerando CSR
openssl req \
@alexishida
alexishida / adicionar-usuario-tomcat.txt
Created August 15, 2017 00:14
Adicionando usuário no tomcat 8
# Adicionar em conf\tomcat-users.xml
<?xml version="1.0" encoding="UTF-8"?>
<tomcat-users>
<role rolename="manager-script"/>
<user username="admin" password="admin" roles="manager-script"/>
</tomcat-users>
@alexishida
alexishida / nginx-redirect.txt
Created November 6, 2017 17:18
Redirecionamento de dominios com nginx
server {
listen 80;
server_name seusite.com;
return 301 http://www.seusite.com$request_uri;
}
server {