Skip to content

Instantly share code, notes, and snippets.

View charlesreid1's full-sized avatar

Chaz Reid charlesreid1

View GitHub Profile
function callWebhook(e) {
var url = "http://52.53.248.136:5000/webhook";
// Form questions/columns in the spreadhseet:
//
// Timestamp
// What is your first name
// What is your last name
// What team are you on
// What is your username
1 sudo apt-get install -y python
2 python --version
3 sudo apt-get remove python
4 sudo apt-get install python3
5 sudo apt-get install -y python3
6 apt-get autoremove
7 sudo apt-get autoremove
8 clear
9 whcih python
10 which python
alabaster
alabaster/docs
alabaster/alabaster
alabaster/.git
aws
aws/awsome-day-sea-2018
aws/.git
bad-cop-no-donut
bad-cop-no-donut/.git
base16
@charlesreid1
charlesreid1 / README.md
Created June 15, 2018 19:47
pip freeze output for FAIR tutorial

output of pip freeze after running through the Setup page of the FAIR tutorial in a virtual environment.

version: "2.1"
services:
stormy_files:
image: python:3.6
command: bash -c "cd /files && python3 -m http.server 8081"
volumes:
- "/www/files:/files"
stormy_gitea:
@charlesreid1
charlesreid1 / wurkmaybe.py
Created May 24, 2018 09:58
flask for static files - plus index.html when a directory is specified
import os, json
from werkzeug.contrib.fixers import ProxyFix
from flask import Flask, redirect, url_for, send_from_directory
from flask_dance.contrib.github import make_github_blueprint, github
from os.path import join, isfile, isdir
# http://librelist.com/browser/flask/2012/2/22/flask-on-heroku-+-gunicorn-static-files/#109c5d714212f483bcbeecd778c879ad
PROJECT_ROOT = os.path.dirname(os.path.realpath(__file__))
@charlesreid1
charlesreid1 / mkdocs.yml
Last active May 25, 2018 01:50
Sample mkdocs.yml for mkdocs
site_name: your-cool-site
site_url: <url-for-your-docs>
repo_name: <repo-owner>/<repo-name>
repo_url: https://github.com/<repo-owner>/<repo-name>
edit_uri: ""
# give a title for each page
pages:
- 'Index' : 'index.md'
@charlesreid1
charlesreid1 / README.md
Created May 22, 2018 05:01
demonstrating markdown linting
@charlesreid1
charlesreid1 / twitter-python-url-short.py
Created May 16, 2018 07:05
twitter-python with a URL shortener
# https://github.com/bear/python-twitter/issues/298#issuecomment-185193763
import re
from twitter import Api
from twitter.twitter_utils import URL_REGEXP
from shorten_url import ShortenURL
CONSUMER_KEY = 'WWWWWWW'
CONSUMER_SECRET = 'XXXXXXXXXXX'
@charlesreid1
charlesreid1 / git-forget-blob.sh
Last active May 7, 2018 20:18 — forked from nachoparker/git-forget-blob.sh
Completely remove a file from a git repository with git-forget-blob
#!/bin/bash
# Completely remove a file from a git repository history
#
# Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com>
# GPL licensed (see end of file) * Use at your own risk!
#
# Usage:
# git-forget-blob file_to_forget
#
# Notes: