Last edit: May 05, 2019 11:23:48 AM CDT List of all cheatsheets Apache Start from an alternate DocumentRoot apache2 -k start -c "DocumentRoot /path/to/alt/folder" (-c processes after normal config directives, -C processes before) Start with an alternate config apache2 -k start -f conf/[path/to/alt/config] Basic website benchmarking ab -n [number of requests] -c [number of concurrent requests] http(s)://URL e.g. ab -n 50 -c 5 Git Basic flow add »» «« commit »» «« push »» ------------ --------------------- ---------------------- ---------------------- # Working # | # Staging (index) # | # Local Repository # | # Remote Repository # ------------ --------------------- ---------------------- ---------------------- «« reset «« reset [commit] «« fetch «« pull «« pull Start tracking new or modified files git init List new or modified files git status Show changes to files not yet staged git diff List the change dates and authors of a file git blame [file] Show change history git log Show local branches git branch Show all local and remote branches git branch -av Create a new branch git branch [name for new branch] Merge one branch into another git checkout [branch to merge] git merge [branch accepting merge] Refresh a clone git remote update Get latest files from original and merge git pull Move file to Staging git add [file] Move all files to Staging git add . Commit all staged files git commit -m "commit message" Revert everything to last commit git reset --hard Send changes to original git push Mail Service SPF, DKIM & DMARC SPF: Which servers can send my mail; prevent spoofed messages by flagging if sent from non-approved servers. DKIM: Use this key to verify the message you received is from my domain to prevent forged senders. DMARC: Use my SPF and DKIM records plus my processing suggestion in my DMARC record to process mail from my domain; here is how I recommend you should handle messages I've sent and you've received. SPF Records • Can only have one SPF record per domain • Prefix Qualifiers: "+" = Pass (accept), "-" = Fail (reject), "~" = SoftFail (accept but mark), "?" = Neutral (accept) • SPF records are capped at 255 length strings but can have multiple strings (which should be concatenated into one), e.g. "v=spf … first string""second string…" should be treated by remote host as "v=spf … first stringsecond string…" • Can contain no more than 10 name lookups per record ( listings do not add to count, just or Common Hosted Service SPF Prefixes, DKIM Selectors • The selector can be found in the DKIM Signature header in a message's source. Might be listed as "s=" or "selector=". Might need to use domain listed in DKIM header ("d=") when performing lookups • Use [select]._domainkey.[FQDN] for lookups • G Suite DKIM Selector: google • Office365 DKIM Selector: selector1, selector2 How to Lookup SPF, DKIM & DMARC Records for a Domain Get SPF: dig TXT +short | grep spf Get DKIM: dig [selector] txt +short | awk '/DKIM1/' Get DMARC: dig TXT +short e.g. $ dig TXT +short | grep spf "v=spf1 ip4: -all" $ dig txt | awk '/DKIM1/' 1681 IN TXT "v=DKIM1\; k=rsa\; h=sha256\; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvI6zFpff8bV1PBiqD9vjjt7ptIONmT1fTX0" "fG1m48lnqK9voiSXsTmx3zAwA2wTxHE2J3CCLTTx/t0Ma/4GVHfwl+DlVtDNAbkV8ykQyb/rc5vVAG0gcITdgTnAZbCle5dGIY3YSCi7FT3" "RGqmr+rfvdtOpBtloHCkN/I50993qnU1cGpIIGLRiL3GDqXep6lK1YbclJxG+GS9g/cdb74CHrRVWtHn757ddCDoDmw1Y2AN7cd1bKM3Sxm" "eFlvjS49y3KAxmvpKDedM9yEMNP/bzEHKXwFXvsz/o2vh9dzd32rUBv8PftKmeWYhQp4nGZIQD0ehtfzjZcdBrt62vn1QIDAQAB" $ dig TXT +short "v=DMARC1\;p=none\;\;\;fo=1" See also *nix Munki Tk Random Info VLOOKUP VLOOKUP=([What Value is your key to match; must be to left of columns being searched], [Range of cells to look through, e.g. $A$2:$G$220 (Don't forget to add the $)], [Place number of column to return results from], exact match) Office 2016 activation (post-15.30) scheme 1. Office applications attempt to check-in every 8 hours and will remain fully operation for thirty days, even without a proper check-in with Microsoft 2. Users will start to receive a warning at 15 days to authenticate against Office 365 3. After 30 days without proper check-in or proper authentication, the Office applications switch to read-only operation To force download the Outlook Offline Address Book (OAB) /usr/bin/osascript -e 'tell application "Microsoft Outlook" to download oab of exchange account 1' Get list of Microsoft application AppIDs defaults read Adobe Updates Log location ~/Library/Logs/CreativeCloud/AdobeDownload/DLM.log Adobe Service Addresses and Ports * * * * * * * and 443 * * * * and 443 * * * * *s3* and 443 and 443 443 443 and 443 and 443 and 443 kb2.adobe.:80 and 443 store* wwwimages* Mac Plug-in and App Release Schedule Adobe Should release regular updates to Flash Player on the second Tuesday of the month. Updates to the Creative Cloud apps do not appear to have a regular release schedule. Oracle Regular Java updates are released four times a year on the Tuesday closest to the 17th of January, April, July and October Microsoft Office 2016/2019 updates should be released on the second Tuesday of the month, but they slip around a lot. Firefox Major versions roughly every eight weeks Google Chrome Major versions roughly every six weeks