- Lite images: https://downloads.raspberrypi.org/raspbian_lite/images/
- With desktop: https://downloads.raspberrypi.org/raspbian/images/
- With desktop & recommended software: https://downloads.raspberrypi.org/raspbian_full/images/
View script.js
const fs = require('fs'); | |
const csv = require('csvtojson'); | |
const csvStream = fs.createReadStream('./file.csv'); | |
const converter = new csv.Converter({}); | |
converter | |
.fromStream(csvStream) | |
.subscribe((row) => { |
View Raspbian.md
View NPM_PUBLISH.md
To check what it will be publish on npm before publishing:
npm pack && tar -xvzf *.tgz && rm -rf package *.tgz
View ipstack.ts
import axios, { AxiosResponse } from 'axios'; | |
import { config } from '../config'; | |
import { Sentry } from '../libs/sentry'; | |
/** | |
* @description Ip Stack API response | |
*/ | |
interface IIpStackResponse { | |
latitude: number; | |
longitude: number; |
View example.js
export class RequestError extends Error { | |
constructor(message, meta = {}) { | |
super(); | |
this.message = message; | |
this.meta = meta; | |
} | |
} |
View sentry.js
const Sentry = require('@sentry/node'); | |
Sentry.init({ dsn: process.env.SENTRY_DSN, environment: 'staging' }); | |
Sentry.captureException(new Error('Test from local')); |
View index.js
const nodemailer = require("nodemailer"); | |
const mandrillTransport = require('nodemailer-mandrill-transport'); | |
const smtpTransport = nodemailer.createTransport(mandrillTransport({ | |
auth: { | |
apiKey : 'your-token' | |
} | |
})); | |
const mailData = { |
View index.html
<!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--> | |
<!--<html xmlns="http://www.w3.org/1999/xhtml">--> | |
<!--<head>--> | |
<!-- <title>Test Layout</title>--> | |
<!-- <style type="text/css">--> | |
<!-- body, html--> | |
<!-- {--> | |
<!-- margin: 0; padding: 0; height: 100%; overflow: hidden;--> | |
<!-- }--> |
View index.js
/** | |
* @description Runs getUser() in sequential. | |
* @return {Promise<void>} | |
*/ | |
async function example() { | |
for (let i = 0; i < 10; i++) { | |
await getUser(); | |
} | |
} |
NewerOlder