Skip to content

Instantly share code, notes, and snippets.

View paul42's full-sized avatar

Paul.42 paul42

View GitHub Profile
@psi-4ward
psi-4ward / README.md
Created December 13, 2016 19:40
Feathers.js multipart/file-data Upload Middleware

Feathers.js multipart/file-data Upload middleware

Parses multipart/form-data uploads and stream files to a blob-store.
After uploading the Services receives a json-body with the file references:

{
  "files": [
    {
      "key": "34525ca2-f774-444f-8e7e-7622bef69cb1",
 "filename": "13.jpg",
@jmichas
jmichas / Test Pipeline Class
Last active December 12, 2021 14:57
This gist illustrates a TPL Dataflow Pipeline that branches and the various ways to propagate completion and why some work and some don't.
public class DataflowTestPipeline
{
public TransformBlock<Thing, Thing> MainBlock { get; set; }
public TransformBlock<Thing, Thing> Block1 { get; set; }
public TransformBlock<Thing, Thing> Block2 { get; set; }
public TransformBlock<Thing, Thing> Block3 { get; set; }
public ActionBlock<Thing> EndBlock { get; set; }
public void CreatePipelineSynchronousWithLinkOptions()
{
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active December 18, 2025 20:10
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName