Skip to content

Instantly share code, notes, and snippets.

View AlexGalhardo's full-sized avatar
👨‍💻
Always Building, Always Learning

Alex Galhardo AlexGalhardo

👨‍💻
Always Building, Always Learning
View GitHub Profile
@ptkdev
ptkdev / lutris-legends-of-runeterra-openbeta.yml
Last active December 20, 2020 12:28
Run Legends of Runeterra on Linux with Lutris
# v1.3.0 - Lutris Installer for Legends of Runeterra Openbeta (forked from league of legends installer)
#
# [REQUIREMENTS]
# - Nvidia driver 430 or newer + vulkan
# - Wine 64bit, delete ~/.wine folder after intallation of wine64 from wine32
# - Archlinux, Manjaro, Ubuntu 18+ or Fedora
#
# [INSTALLATION]
# Install "Lutris" on linux https://lutris.net/
# Download this file and rename to: lutris-legends-of-runeterra-openbeta.yml
<?php
namespace Source\Support;
use Exception;
use PHPMailer\PHPMailer\PHPMailer;
use stdClass;
class Email
{
import axios from 'axios';
async function getGoogleUserInfo(access_token) {
const { data } = await axios({
url: 'https://www.googleapis.com/oauth2/v2/userinfo',
method: 'get',
headers: {
Authorization: `Bearer ${access_token}`,
},
});
import axios from 'axios';
async function getGitHubUserData(access_token) {
const { data } = await axios({
url: 'https://api.github.com/user',
method: 'get',
headers: {
Authorization: `token ${access_token}`,
},
});
@diego3g
diego3g / README.md
Created December 3, 2019 19:15
Criação de servidor Node.js

Configuração do servidor

  1. Configurar chave SSH
  2. Criar Droplet
  3. Realizar update e upgrade
  4. Crua usuário adduser deploy e usermod -aG sudo deploy
  5. Cria pasta .ssh pro deploy
  6. cp ~/.ssh/authorized_keys /home/deploy/.ssh/authorized_keys
  7. chown -R deploy:deploy .ssh/
  8. chmod 700 .ssh
server {
server_name testdeploy.rocketseat.com.br;
location / {
proxy_pass http://127.0.0.1:3333;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@henriquebastos
henriquebastos / Fatorial em Python com 1 linha.ipynb
Last active January 28, 2020 18:10
Assine meu canal no youtube e me envie sugestões de novos exercícios: http://hbn.link/youtube_HB
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@akitaonrails
akitaonrails / links.md
Created November 6, 2019 01:28
Links de referência pro Episódio 66 do Canal Akitando
HIRE Me For Your Project Support :)
Telegram: https://t.me/LinuxGun
#!/bin/bash
# Completely Remove Apache Ubuntu
service apache2 stop
apt purge apache2
apt remove apache2.*
apt autoremove
whereis apache2
@LucasMallmann
LucasMallmann / EslintNodeJS.md
Created September 30, 2019 22:59
Eslint and Prettier configuration for NodeJS and Express projects

Eslint and prettier config for nodejs and express projects

Eslint and Libs

You need to install eslint and some other config libs.

yarn add eslint prettier eslint-config-prettier eslint-plugin-prettier -D

yarn eslint --init

.eslintrc.js