These commands were taking from the talk Introduction to Advanced Bash Usage by James Pannacciulli
Updated 21 Jan 2017 06:54:53
package auth | |
import ( | |
"crypto/rsa" | |
"encoding/base64" | |
"encoding/binary" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" |
import os | |
from flask import Flask, render_template, redirect, url_for, request | |
import boto3 | |
from botocore.exceptions import ClientError | |
app = Flask(__name__) | |
APP_CLIENT_ID = os.getenv('COGNITO_CLIENT_ID') | |
@app.route('/') |
# kubernetes | |
# | |
# | |
# author: kjenney | |
# Deploys an EKS cluster with required role and security group | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Deploys an EKS cluster with required role and security group | |
Parameters: |
These commands were taking from the talk Introduction to Advanced Bash Usage by James Pannacciulli
Updated 21 Jan 2017 06:54:53
#! /usr/bin/env python | |
"""Conversions to/from quoted-printable transport encoding as per RFC 1521.""" | |
# (Dec 1991 version). | |
__all__ = ["encode", "decode", "encodestring", "decodestring"] | |
ESCAPE = '=' | |
MAXLINESIZE = 76 |
about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar.
Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and
rendering normally. Some settings may also make firefox unstable.
I am not liable for any damages/loss of data.
Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions
(HTTPS Everywhere No longer required: Enable HTTPS-Only Mode, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".
# first: pip install requests | |
# second: python fb_ages.py | |
import requests | |
import json | |
import re | |
from collections import Counter, OrderedDict | |
ages = [] |
FROM centos:centos6 | |
MAINTAINER jmorton@usgs.gov | |
# Apache | |
RUN yum install -y httpd httpd-devel | |
RUN chkconfig httpd on | |
RUN apachectl start | |
# Dependencies | |
RUN yum groupinstall -y "Development tools" |
from scrapy.spider import Spider | |
from scrapy.contrib.spiders import CrawlSpider, Rule | |
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor | |
from scrapy.selector import Selector | |
from scrapy.item import Item, Field | |
import urllib | |
class Question(Item): | |
tags = Field() | |
answers = Field() |
Located in alphabetical order (not prefer)
C
ab
), also designed as a more modern replacement, written in C
golang
)