Make sure everything is up to date. Wait for FileVault to finish encrypting the hard drive.
This file contains 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
'use strict'; | |
/*global require, module, process*/ | |
/*jshint -W097*/ // Use the function form of "use strict". | |
var _ = require('lodash'), | |
glob = require('glob'), | |
minimatch = require('minimatch'), | |
glob2base = require('glob2base'), | |
path = require('path'); | |
_.str = require('underscore.string'); |
This file contains 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 | |
# Check current status | |
git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD --name-only | xargs dos2unix -i -- | |
# Convert all files to LF and UTF-8 without BOM | |
git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD --name-only | xargs dos2unix -r -- | |
# Check for tabs | |
git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD --name-only | xargs grep -e "^\t" -- |
This file contains 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
const chromeLauncher = require('chrome-launcher'); | |
const CDP = require('chrome-remote-interface'); | |
async function main() { | |
const chrome = await chromeLauncher.launch({ | |
chromeFlags: [ | |
'--window-size=1200,800', | |
`--user-data-dir=/tmp/chrome-data-dir`, | |
'--auto-open-devtools-for-tabs' | |
] |
This file contains 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 | |
databases.name, | |
dm_exec_sql_text.text AS TSQL_Text, | |
dm_exec_query_stats.creation_time, | |
dm_exec_query_stats.execution_count, | |
dm_exec_query_stats.total_worker_time AS total_cpu_time, | |
dm_exec_query_stats.total_elapsed_time, | |
dm_exec_query_stats.total_logical_reads, | |
dm_exec_query_stats.total_physical_reads, | |
dm_exec_query_plan.query_plan |
This file contains 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 | |
sudo sed -i '' -e '/^#/a\'$'\n''auth sufficient pam_tid.so' /etc/pam.d/sudo |