rtl-sdr build notes for OSX
- based on notes from https://gist.github.com/jheasly/9477732
- using macports http://www.macports.org/
- see http://sdr.osmocom.org/trac/wiki/rtl-sdr
<template> | |
<q-card class="markdown-edit" outlined> | |
<q-toolbar dense> | |
<q-tabs v-model="mode" align="left" dense > | |
<q-tab name="edit" :label="$t('label.write')"/> | |
<q-tab name="preview" :label="$t('label.textPreview')"/> | |
</q-tabs> | |
<q-space /> | |
<q-toolbar v-if="mode === 'edit'"> | |
<q-space /> |
#!/bin/sh | |
## Quick script to convert webp files to mp4. Makes use of webpmux, ImageMagick and ffmpeg | |
input=$1 | |
output_base=/tmp | |
output_file=output.mp4 | |
regex="Number of frames: ([0-9]+)" | |
info=`webpmux -info "$1"` |
rtl-sdr build notes for OSX
import axios from 'axios'; | |
import { Request, Response, NextFunction } from 'express'; | |
import jwt, { GetPublicKeyOrSecret, Secret } from 'jsonwebtoken'; | |
import jwksClient, { JwksClient } from 'jwks-rsa'; | |
import UnauthenticatedError from '../errors/UnauthenticatedError'; | |
import { getLogger } from './logging'; | |
const logger = getLogger('openid'); | |
/** |
// Code to encrypt data in sequelize fields | |
// We are using ascii85 as a way save on storage. Also, note that | |
// the space delimiter we are using is a bit of an abuse since in | |
// normal cases ascii85 will skip over it, but since we are using | |
// after encoding and before encoding, it shouldn't be an issue. | |
// | |
// Fields are broken down to facilitate unit testing. | |
// | |
// based on code here: http://vancelucas.com/blog/stronger-encryption-and-decryption-in-node-js/ |
This is a "work in progress" coding style philosophy document. It doesn't define the style we should go for, rather what we should be thinking about when defining the style rules of a project.
I go with the idea that a team is made up of juniors, intermediates and seniors, and we should make it easy for all of them to be able to contribute to the project.
<template> | |
<div :class="cssClass"> | |
<div v-html="html" ref="html"/> | |
</div> | |
</template> | |
<script> | |
/** | |
* This component takes some markdown and then presents it as a | |
* collapsable list. |
const md = require('markdown-it')() | |
.use(require('markdown-it-attrs')) | |
.use(require('markdown-it-header-sections')); | |
const { XMLSerializer, DOMParser } = require('xmldom') | |
const sampleMarkdown = ` | |
# XYZ | |
## Question 1 |
Note, all commands represent the bare minimum need to do the conversion. Optimisations are generally not indicated, unless they are really needed. Also, you'll need to install the necessary tools, since many are are unlikely to be installed by default. This list is by no means definitive and is more something I put together as a reference for myself.
Using pdftotext: pdftotext -layout input.pdf output.txt
/* eslint-disable no-console */ | |
import mongoose from 'mongoose'; | |
let User; | |
function generateRandomString (length = 6) { | |
return Math.random().toString(20).substr(2, length) | |
} | |
async function createEntries () { |