Skip to content

Instantly share code, notes, and snippets.

View AlbinoDrought's full-sized avatar
🇨🇦
Use AGPL

Sean AlbinoDrought

🇨🇦
Use AGPL
View GitHub Profile
@AlbinoDrought
AlbinoDrought / gitBash_windows.md
Created July 6, 2020 17:49 — forked from evanwill/gitBash_windows.md
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@AlbinoDrought
AlbinoDrought / docker-compose.yml
Last active September 19, 2018 23:08 — forked from stevenmunro/docker-compose.yml
Invoice-Ninja for Rancher
version: '2'
volumes:
invoiceninja-db:
external: true
driver: rancher-nfs
invoiceninja-storage:
external: true
driver: rancher-nfs
invoiceninja-logo:
external: true
@AlbinoDrought
AlbinoDrought / data.bits.normalizer.js
Last active August 27, 2018 18:35 — forked from adadgio/data.bits.normalizer.ts
non-typescript version of DataBitsNormalizer, with the default export being the created class
function isArray(input) {
return (Object.prototype.toString.call(input) === '[object Array]') ? true : false;
}
var sampleData = [
{ soilhum: 500, airtemp: true, airhum: 18, water: true, name: "romain", cats: ["a", "b"] },
{ soilhum: 1050, airtemp: false, airhum: 21, water: true, name: "romain", cats: ["c", "a"] },
{ soilhum: 300, airtemp: true, airhum: 90, water: false, name: "edwards", cats: ["a", "b"] },
{ soilhum: 950, airtemp: true, airhum: 26, water: true, name: "jane", cats: ["c", "b"] },
{ soilhum: 1050, airtemp: false, airhum: 26, water: true, name: "romain", cats: ["a", "b"] },
{ soilhum: 1050, airtemp: false, airhum: 26, water: true, name: "romain", cats: ["b", "c"] },