Skip to content

Instantly share code, notes, and snippets.

@101arrowz
101arrowz / README.md
Last active April 30, 2024 17:25
Download a McGraw Hill Education eTextbook

Download a McGraw Hill Education eTextbook

If you purchase a textbook from McGraw Hill, the website to view it is clunky and only works on some devices. You can't go to specific page numbers, the search is super slow, etc. That's why I wrote this script to download the textbook as an ePub file for your own viewing.

Using this script is 100% legal. McGraw Hill publicly hosts their ebooks online in order for their web client to download it. Moreover, to use it, you must already have purchased the book you would like to download, so it is legally yours to use as you please. However, it IS illegal to use this for piracy purposes. DO NOT DISTRIBUTE ANY TEXTBOOKS YOU DOWNLOAD USING THIS SCRIPT.

@mouredev
mouredev / chatgpt_api.py
Created March 7, 2023 19:31
Ejemplo de uso del API de ChatGPT desde Python
import openai # pip install openai
import typer # pip install "typer[all]"
from rich import print # pip install rich
from rich.table import Table
"""
Webs de interés:
- Módulo OpenAI: https://github.com/openai/openai-python
- Documentación API ChatGPT: https://platform.openai.com/docs/api-reference/chat
- Typer: https://typer.tiangolo.com
@kupietools
kupietools / Docker Desktop v 4.0.0 thru 4.22.1 direct download links
Last active April 30, 2024 17:22
List of Direct Download links for Docker Desktop from version 4.0.0 released 2021-08-31 thru 4.22.1 released 2023-08-24, as archived on archive.org
@ianelsbree
ianelsbree / Doxygen Primer.md
Created September 20, 2022 05:08
Doxygen Primer
@lozturner
lozturner / macosx-contextmenu-automator-stripmetadata.md
Created May 31, 2017 19:22 — forked from christopheranderton/macosx-contextmenu-automator-stripmetadata.md
Add a ”Strip Metdata” Service to your context menu (Right-Click Menu) in macOS/Mac OS X. This Service uses ExifTool and Tag (both via Homebrew) or xattr.

1. What you need

  • macOS/Mac OS X (tested only on El Capitan, but should work on Sierra and older versions)
  • Xcode Command Line Tools / Xcode
  • Homebrew (http://brew.sh/)
  • Tag (via Homebrew)
  • ExifTool (via Homebrew)

2. Installing Homebrew, Tag and ExifTool

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 30, 2024 17:26
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@lohhans
lohhans / README-PTBR.md
Last active April 30, 2024 17:18 — forked from PurpleBooth/README-Template.md
Um modelo para fazer um bom README.md

Título do projeto

Um parágrafo da descrição do projeto vai aqui

🚀 Começando

Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.

Consulte Implantação para saber como implantar o projeto.

@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active April 30, 2024 17:18
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@justinhartman
justinhartman / 01_nginx-reload-post-hook.sh
Last active April 30, 2024 17:18
Let's Encrypt Certbot post hook command for Nginx which checks the updated configuration files and reloads the server if everything validates.
#!/usr/bin/env bash
#
# Certbot Nginx Reload
#
# Let's Encrypt Certbot post hook command for Nginx which checks the updated
# configuration files and reloads the server if everything validates.
#
# Author : Justin Hartman <code@justinhartman.co>
# Version : 1.0.1
# License : MIT <https://opensource.org/licenses/MIT>