What breaks?
Github Connectivity
Configuration
Administrative Access
SSH
SSL Certificate
Authentication
License
Time Synchronisation (NTP)
- GitHub Staff
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
| import pygame | |
| import time | |
| import sys | |
| CODE = {'A': '.-', 'B': '-...', 'C': '-.-.', | |
| 'D': '-..', 'E': '.', 'F': '..-.', | |
| 'G': '--.', 'H': '....', 'I': '..', | |
| 'J': '.---', 'K': '-.-', 'L': '.-..', | |
| 'M': '--', 'N': '-.', 'O': '---', | |
| 'P': '.--.', 'Q': '--.-', 'R': '.-.', |
- Most likely open it with Excel/Google Sheets/Open Office/Numbers? (More likely if an individual or small business).
- Upload it into some kind of database/Big Query/AWS (More likely if a company/data scientist working with journalists).
When you upload it and scroll down it looks like there is no data after row 190 which is weird and makes you thing something is very wrong. That turns out to be because 192 - 484 are indeed blank:
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 python3 | |
| import pandas as pd | |
| def main(): | |
| f = 'test-data/basic.csv' | |
| df = pd.read_csv(f) |
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
| import csv | |
| from ldif3 import LDIFParser | |
| from pprint import pprint | |
| def main(): | |
| """ | |
| Purpose | |
| ======= | |
| Used to read ldif dumped from an AWS Simple AD and report on disabled accounts. |
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/bash | |
| #set -x | |
| # Name: build_centos_dvd.sh | |
| # Purpose: Customize a Centos DVD | |
| # Author: David Morris | |
| shopt -s -o nounset |
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 python | |
| import sys | |
| import shlex | |
| import subprocess | |
| def run_cmd(): | |
| """chronyc tracking | |
| Reference ID : 50484330 (PHC0) | |
| Stratum : 1 |
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
| Do you have a standard set of tests (organisation wide) that relate to handling names and addresses? | |
| Smith | |
| Smith-Jones | |
| Smith Jones | |
| Sir Ranulp Twystleson-Wickham-Fiennes | |
| https://www.mjt.me.uk/posts/falsehoods-programmers-believe-about-addresses/ |
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
| # from an article by Mike Driscoll: | |
| # http://www.blog.pythonlibrary.org/2018/06/06/creating-and-manipulating-pdfs-with-pdfrw/ | |
| from pdfrw import PdfReader, PdfWriter, PageMerge | |
| def watermarker(path, watermark, output): | |
| base_pdf = PdfReader(path) | |
| watermark_pdf = PdfReader(watermark) | |
| mark = watermark_pdf.pages[0] | |
| for page in range(len(base_pdf.pages)): |
curl has --write-out json for timing testing etc see this article curl-write-out-json
example:
curl_custom_flags="-kso /dev/null --write-out '%{json}'"