Skip to content

Instantly share code, notes, and snippets.

View jfmoy's full-sized avatar

Jean-François Moy jfmoy

View GitHub Profile
@jfmoy
jfmoy / env-dependencies.js
Created April 30, 2021 21:24
Private NPM dependencies with Yarn using Github token interpolation
// This file is a workaround to inject the Github credentials in package.json when fetching
// private dependencies. This script needs to be added to "postinstall": https://yarnpkg.com/advanced/lifecycle-scripts
// You will need yarn-add-no-save: `yarn add yarn-add-no-save --dev` and dotenv: `yarn add dotenv --dev`.
// Based on a SO post that I can no longer find.
const execSync = require('child_process').execSync;
const pkg = require('./package.json');
// Import the environment variables
require('dotenv').config();

Keybase proof

I hereby claim:

  • I am jfmoy on github.
  • I am moystard (https://keybase.io/moystard) on keybase.
  • I have a public key ASAynQVoYQTPyYygjrTaJOcz4WHyxJWadcCQa_2MbSvZywo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am moystard on github.
  • I am moystard (https://keybase.io/moystard) on keybase.
  • I have a public key ASBlQrR2lV7fgRvFZMf20CPsD6uIG5gNunzDJ09r7kHuUgo

To claim this, I am signing this object:

@jfmoy
jfmoy / gist:05abac2146aec7613133c1d8e7299dac
Created August 15, 2016 20:18
Quickly force install all applications when migrating Brew Caskroom
#!/usr/local/bin/zsh
for file in /usr/local/Caskroom/*(/); do
brew cask install --force $file:s/\/usr\/local\/Caskroom\///
done
@jfmoy
jfmoy / pagertabmanager.java
Created November 30, 2012 15:10
Tab Manager with ViewPager support.
package com.orange.labs.dailymotion.kids.activity.managers;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
@jfmoy
jfmoy / about.md
Created August 11, 2011 10:46 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer