Skip to content

Instantly share code, notes, and snippets.

@augbog
augbog / Free O'Reilly Books.md
Last active November 23, 2025 23:36
Free O'Reilly Books

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
@HyperBrain
HyperBrain / lifecycle-cheat-sheet.md
Last active April 9, 2026 05:34
Serverless Lifecycle Cheat Sheet

Serverless plugin author's cheat sheet

This cheat sheet provides a detailed overview of the exposed lifecycle events and available commands (and entrypoints) of the Serverless framework, that can be hooked by plugins (internal and external ones). The document is structured by the commands invoked by the user.

Lifecycle events are shown as the globally available outer events (all providers) and sub lifecycle events that are provider specific in the called order. Currently only the AWS provider is shown. If you have information about the other provider,

@hiepph
hiepph / gen.py
Created May 31, 2017 15:38
pytorch-CycleGAN-and-pix2pix single image prediction
# https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix
from torch.autograd import Variable
from torchvision import transforms
from PIL import Image
from options.test_options import TestOptions
from models.models import create_model
import util.util as util