Skip to content

Instantly share code, notes, and snippets.

View EliasOPrado's full-sized avatar
💻
Coding.

Oliveira Prado EliasOPrado

💻
Coding.
View GitHub Profile
from django.shortcuts import render, get_object_or_404, reverse, redirect
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from .forms import MakePaymentForm, OrderForm
from .models import OrderLineItem
from django.conf import settings
from django.utils import timezone
from tour_store.models import Destinations
import stripe

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@EliasOPrado
EliasOPrado / instalike.js
Created June 23, 2019 23:55 — forked from jadeallencook/instalike.js
Scripts that auto likes posts on instagram via tag.
let likesGiven = 0;
setInterval(() => {
let heart = document.getElementsByClassName('glyphsSpriteHeart__outline__24__grey_9'),
arrow = document.querySelector('.coreSpriteRightPaginationArrow');
if (heart[1]) {
heart = heart[1].parentElement;
likesGiven++, heart.click();
}
arrow.click();
console.log(`You've liked ${likesGiven} post(s)!`);