Skip to content

Instantly share code, notes, and snippets.

@Koenvh1
Koenvh1 / canvas-scraper.py
Created April 13, 2019 12:56
Scrape your Canvas website and download all content to a folder. Tested on 2019-04-13.
import argparse
import os
import re
from pathvalidate import sanitize_filename
from canvasapi import Canvas
from canvasapi.course import Course
from canvasapi.exceptions import Unauthorized, ResourceDoesNotExist
from canvasapi.file import File
from canvasapi.module import Module, ModuleItem
@1kastner
1kastner / reflect.py
Last active April 3, 2024 13:52 — forked from huyng/reflect.py
A simple echo server to inspect http web requests
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from http.server import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
@iamskok
iamskok / git-message-prefixes.md
Last active March 17, 2024 18:12
List of git commit message prefixes

Git commit message prefixes

  • [RFR] - Code refectoring
  • [WIP] - Work in progress
  • [FIX] - Bug fix
  • [FTR] - New feature
  • [SCR] - Security issue fix
  • [CLP] - Changes that do not alter functionality, but improve code style and readability.
  • [CRO] - Content Rate Optimization
  • [TST] - Add test suite for slider component
@cdolek
cdolek / gist:372fc6421feffcd39860
Last active March 11, 2020 19:26
Utility for wordpress: Find missing attachment files, non writable upload directories and meta errors
<?php
/**
* Template Name: Attachment Fixing Utility
*/
?>
<html>
<head>
<title>Wordpress Attachments Fixing Utility</title>
<style>