- Table of Contents
- System Overview
- Service Overview
- Contributing Applications, Daemons, and Windows Services
- Hours of Operation
- Execution Design
- Infrastructure and Network Design
- Resilience, Fault Tolerance and High-Availability
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Add the following lines to theme's html code right before </head> --> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> | |
| <script src="http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js"></script> | |
| <script src="http://static.tumblr.com/fpifyru/AKFlv9zdu/embedgist.js"></script> | |
| <!-- | |
| Usage: just add <div class="gist">[gist URL]</div> | |
| Example: <div class="gist">https://gist.github.com/1395926</div> | |
| --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $> openssl pkcs12 -in uat-domain-br.pfx -nocerts | |
| Enter Import Password: | |
| MAC verified OK | |
| Bag Attributes | |
| localKeyID: 41 D4 48 C4 1D 3E 50 FE CA 9E 8A 2F BF 10 A5 A7 4B BE 20 88 | |
| friendlyName: uat-domain-br | |
| Key Attributes: | |
| Enter PEM pass phrase: | |
| Verifying - Enter PEM pass phrase: | |
| -----BEGIN ENCRYPTED PRIVATE KEY----- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # vim: ts=3 sw=3 sts=3 et si ai: | |
| # (c) 2018, Andres Aquino <[email protected]> | |
| # This file is licensed under the BSD License version 3 or later. | |
| # See the LICENSE file. | |
| trap "exit 0" SIGINT SIGTERM | |
| ccount=0 | |
| while(true); do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Vim File | |
| " vim:si:ai:et:ts=3:sw=3:ft=vim | |
| " (c) 2018, Andres Aquino <[email protected]> | |
| " This file is licensed under the BSD License version 3 or later. | |
| " See the LICENSE file. | |
| " | |
| " Based on work of Agapo ([email protected]), /usr/share/vim/vim70/plugin/header.vim | |
| " LastModf: 20180326.034630 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # HAProxy configuration - haproxy-db.cfg | |
| ## | |
| ## FRONTEND ## | |
| ## | |
| # Load-balanced IPs for DB writes and reads | |
| # | |
| frontend db_write | |
| bind 172.16.0.50:3306 |
This should be a short (4-5 sentences) blurb which succinctly describes the event. At the very least, it should include:
- the duration (with start & end times in the U.S. Pacific time zone):
…which lasted for roughly 10 minutes between 9:02PM and 9:12PM Pacific…
- the impact to our users:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Reduce size | |
| ffmpeg -i <video.mp4> -vcodec h264 -acodec aac <video-output.mp4> | |
| # Extract a audio fragment from another audio | |
| ffmpeg -ss 00:00:30 -t 00:02:58 -i <input.mp3> -acodec copy <ouput.mp3> | |
| # Extract audio from a video | |
| ffmpeg -i <video.avi> -f mp3 <audio.mp3> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # $> brew info mpgtx | |
| # mpgtx: stable 1.3.1 (bottled) | |
| # Toolbox to manipulate MPEG files | |
| # Up{date|grade} && cleanup | |
| brew update && \ | |
| brew upgrade && \ | |
| brew cask upgrade && \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT id,state,command,time,left(replace(info,'\n','<lf>'),120) | |
| FROM information_schema.processlist | |
| WHERE command <> 'Sleep' | |
| AND info NOT LIKE '%PROCESSLIST%' | |
| ORDER BY time DESC LIMIT 50; |