Skip to content

Instantly share code, notes, and snippets.

View ovaris's full-sized avatar

Olli Varis ovaris

View GitHub Profile
@ovaris
ovaris / checkFiles.ts
Last active March 17, 2020 18:09
Google cloud storage problem
import {chunk} from 'lodash';
import * as admin from "firebase-admin";
import * as storage from '@google-cloud/storage';
const gcs = storage();
//https://github.com/GoogleCloudPlatform/google-cloud-node/issues/2254
gcs.interceptors.push({
request: function(reqOpts) {
reqOpts.forever = false;
return reqOpts
@ovaris
ovaris / post-checkout
Last active May 17, 2016 20:20
post-checkout
#!/bin/bash
#
# Check package.json and npm install after git checkout.
# Put this to .git/hooks/post-checkout
#
PREVIOUS_HEAD=$1
NEW_HEAD=$2
BRANCH_SWITCH=$3