Skip to content

Instantly share code, notes, and snippets.

@Aldaviva
Aldaviva / linux-autoupdate.md
Last active April 15, 2025 15:54
Enable automatic updates in Fedora and Debian
@DSDevCenter
DSDevCenter / createEnvelopeFromTemplate.js
Created February 20, 2018 22:15
DocuSign Node.js SDK REST API Quickstart - Create envelope from Template
// create a new envelope object that we will manage the signature request through
var envDef = new docusign.EnvelopeDefinition();
envDef.emailSubject = 'Please sign this document sent from Node SDK';
envDef.templateId = '{TEMPLATE_ID}';
// create a template role with a valid templateId and roleName and assign signer info
var tRole = new docusign.TemplateRole();
tRole.roleName = '{ROLE}';
tRole.name = '{USER_NAME}';
tRole.email = '{USER_EMAIL}';
@TalhaAwan
TalhaAwan / csv-upload.js
Created August 3, 2017 19:32
Node/express endpoint to upload and process a csv file
var fs = require('fs');
var express = require('express');
var multer = require('multer');
var csv = require('fast-csv');
var router = express.Router();
var upload = multer({dest: 'tmp/csv/'});
router.post('/upload', upload.single('file'), function (req, res, next) {