tail -n 50000 access.log | \
grep -v heartbeat | \
awk 'BEGIN {C=0;T=0; } {if ( $NF == "HIT" || $NF=="EXPIRED" ) { C = C + 1 }; T=T+1} END { print C,T,C/T*100 }'
Output:
# Pastebin 61oIMnsy | |
breakpad=> \d product_versions | |
Table "public.product_versions" | |
Column | Type | Modifiers | |
--------------------+-----------------+-------------------------------------------------------------- | |
product_version_id | integer | not null default nextval('product_version_id_seq'::regclass) | |
product_name | citext | not null | |
major_version | major_version | not null | |
release_version | citext | not null | |
version_string | citext | not null |
{ | |
"appVersion": "53.0", | |
"detailsUrl": "https:\/\/www.mozilla.org\/%LOCALE%\/firefox\/53.0\/releasenotes\/", | |
"displayVersion": "53.0", | |
"fileUrls": { | |
"*": { | |
"completes": { | |
"*": "http:\/\/download.mozilla.org\/?product=firefox-53.0-complete&os=%OS_BOUNCER%&lang=%LOCALE%" |
#!/usr/bin/awk -f | |
BEGIN { | |
idx[0] = 5 | |
idx[1] = 10 | |
idx[2] = 25 | |
idx[3] = 50 | |
idx[4] = 100 | |
idx[5] = 500 |
#!/bin/sh | |
# Extracts and converts a sync storage log file into an sqlite3 | |
# database to make it easier to extract information | |
if [ ! -e $1 ]; then | |
echo "Usage $0 <gzip sync log file>" | |
exit 1 | |
fi |
#!/usr/bin/env bash | |
# The docker registry has the canonical sha sum for verifying the | |
# image. The only way to get this (as of this coding) is the output from | |
# docker push/pull jobs. :| | |
# | |
# This script pulls the image and remembers the digest. Then that hash | |
# value is searched for in the build logs in circle or taskcluster | |
# if the sha256 hash value is found, the image is considered to be OK |
#!/bin/sh | |
# | |
# <3 curl. | |
# | |
# Pages to check on MDN to get resource URIs | |
URLS=' | |
https://developer.mozilla.org/en-US/ | |
https://developer.mozilla.org/en-US/docs/Web/HTML |
Describe how you would build this thumbnail web service: | |
- Accept a JPEG via an anonymous HTTP request from the client | |
- Create a scaled down, 25% thumbnail of it | |
- Return a text/plain response, with URLs to the original and thumbnail, i.e: | |
https://i.mozilla.org/abc123.original.jpeg | |
https://i.mozilla.org/abc123.thumb.jpeg | |
- Images (original + thumbnails) automatically deleted after 7 days |
- Create a web service that takes an image from the user (JPEG) and creates a scaled down to 25% thumbnail (JPEG). | |
- Users are anonymous, no need to log in | |
- A URL is automatically created for the user's uploaded images, https://i.mozilla.org/abc123.original.jpeg | |
- A URL is automatically created for the thumb nail, https://i.mozilla.org/abc123.thumb.jpeg | |
- Images (original + thumbnails) automatically deleted after 7 days | |
Requirements: | |
- Must be hosted in AWS and use AWS technologies |
##motions
motion | description |
---|---|
h | Count characters left |
l | Count characters right |
^ | To the first character of the line |
$ | To the last character of the line |
f<char> | To the counth character occurrence to the right. F<char> to the counth character occurrence to the left |
t<char> | To 1 character just before the counth character occurrence to the right |
T<char> | To 1 character just before the counth character occurrence to the left |