Skip to content

Instantly share code, notes, and snippets.

Bin packing containers onto hosts

Nathan Peck nathanpeck

Bin packing containers onto hosts
View GitHub Profile
leonardofed /
Last active Oct 21, 2021
A curated list of AWS resources to prepare for the AWS Certifications

A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

subfuzion /
Last active Oct 23, 2021
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.


There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.

Boldewyn / git-get
Last active Dec 22, 2016
The `git get` command to replace `git pull` with a sophisticated rebase strategy
View git-get
# git get
# Place this script in your path, so that git(1) can find it. Presto!
# You can now type `git get` instead of `git pull` and enjoy the
# advantages of rebasing atop instead of merging remote changes.
# If you have local changes, use `git get --stash` to stash and
# pop afterwards your changes automatically.
clauswitt / Stats.js
Created Oct 13, 2011
Simple statistics for javascript
View Stats.js
function Stats(arr) {
var self = this;
var theArray = arr || [];
self.getArithmeticMean = function() {
var sum = 0, length = theArray.length;
for(var i=0;i<length;i++) {
sum += theArray[i];
cowboy / ba-issemver.js
Created Sep 5, 2010
isSemVer - semantic version comparison for JavaScript
View ba-issemver.js
* isSemVer - v0.1 - 9/05/2010
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.