- End of the file:
shift + g
- Next line:
j
- Go down a defined number of lines:
number + j
- Skip to next word:
w
- Skip back a word:
b
- Skip to next section:
W
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
AWS_ACCESS_KEY_ID=$(aws --profile default configure get aws_access_key_id) | |
AWS_SECRET_ACCESS_KEY=$(aws --profile default configure get aws_secret_access_key) | |
docker build -t my_app . | |
docker run -it --rm \ | |
-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \ | |
-e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY |
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
/** | |
* Callback for passing back result data. | |
* @callback updateCallback | |
* @param {string} result - A success or error string | |
*/ | |
/** | |
* Callback to run after all is done. | |
* @callback finalCallback | |
*/ |
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
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 19, | |
// font family with optional fallbacks |
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
function injectGitFileStatus() | |
{ | |
const timeout = 5000; | |
const addedColor = "#98C379"; | |
const modifiedColor = "#D19A66"; | |
const stagedColor = "#E06059"; | |
const ignoredOpacity = "0.4"; | |
const explorer = document.getElementById("workbench.view.explorer"); | |
if (explorer) |
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
def sum(arr) | |
arr.empty? ? 0 : arr.shift + sum(arr) | |
end |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGKyxYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKcHCBMZHSQoVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T | |
Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECkwLjA3NDUwOTgw | |
MzkyIDAuMTMzMzMzMzMzMyAwLjE4MDM5MjE1NjkgMU8QKDAuMDYyMTE3MjM3NiAwLjA5 |
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
".apib.text": | |
whitespace: | |
removeTrailingWhitespace: false |
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
# Thanks to http://www.markhneedham.com/blog/2008/10/02/ruby-unzipping-a-file-using-rubyzip/ | |
require 'zip/zip' | |
def unzip_file(file, destination) | |
files = Zip::ZipFile.open(file) do |zip_file| | |
zip_file.each do |f| | |
f_path=File.join(destination, f.name) | |
FileUtils.mkdir_p(File.dirname(f_path)) | |
zip_file.extract(f, f_path) unless File.exist?(f_path) | |
end |
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
let count = 1; | |
dynamoDB.batchWriteItem(params, processItemsCallback); | |
function processItemsCallback(err, data) { | |
if (err) { | |
console.log(JSON.stringify(err, null, 2)); | |
} else { | |
console.log("Response Data: ", JSON.stringify(data)); | |
let itemsLost = data.UnprocessedItems; | |
// Check if Object size is greater than 0 so we can process missed items if needed |
NewerOlder