Skip to content

Instantly share code, notes, and snippets.

import { createHash } from 'crypto';
import { BundlingOptions, BundlingOutput, DockerImage } from 'aws-cdk-lib';
import { AssetCode, Code, LayerVersion } from 'aws-cdk-lib/aws-lambda';
import { Construct } from 'constructs';
export interface KubeClientUtilsLayerProps extends BundlingProps {}
/**
* An AWS Lambda layer that includes kubectl, helm and AWS CLI.
@msessa
msessa / gist:af9f74f31b0cc5a411bc95e7b4baf544
Last active September 16, 2021 13:30
jq filter to convert the output of `aws ec2 describe-vpcs` into a usable FoxReplace list
jq '[.Vpcs[] | select(.Tags != null) | .VpcId as $nid | .Tags[] | select(.Key == "Name") | {"input":$nid, "output":.Value, "inputType": "text","caseSensitive": true}]'

Assuming your MP3 or Wav is located in your Documents directory ( eg. /Users/jack/Documents/myfile.mp3 )

1- Download docker for mac: https://download.docker.com/mac/stable/Docker.dmg

2- After installation, open a terminal and type:

docker run -v ~/Documents:/Documents --rm -it researchdeezer/spleeter:conda-2stems separate -i /Documents/myfile.mp3 -o /Documents/

Keybase proof

I hereby claim:

  • I am msessa on github.
  • I am msessa_mlcl (https://keybase.io/msessa_mlcl) on keybase.
  • I have a public key ASBAJXg_Hc4_0BWdjCGRHQjAkaxM0IhocXMZGPy20g0UTgo

To claim this, I am signing this object: