Skip to content

Instantly share code, notes, and snippets.

Manuel Rueda manrueda

Block or report user

Report or block manrueda

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@manrueda
manrueda / Dockerfile
Last active Jun 6, 2017
Node.js v8.0.0 - ARMv7l
View Dockerfile
# Node.js v8.0.0 - ARMv7l
FROM arm32v7/buildpack-deps:jessie
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node#release-team
RUN set -ex \
&& for key in \
9554F04D7259F04124DE6B476D5A82AC7E37093B \
@manrueda
manrueda / code-generator.js
Created Jun 6, 2017
Generate code from swagger source
View code-generator.js
const swaggerExtractor = /https?:\/\/(.*)\/.*\/#!\/(.*)\/(.*)/i
function getUrlsParts (url) {
const [, domain, entity, method] = url.match(swaggerExtractor)
return { domain, entity, method }
}
async function getModels(url) {
const { domain, entity, method } = getUrlsParts(url)
const req = await fetch(`https://${domain}/api/core/swagger/api-docs/${entity}`)
const jsonResponse = await req.json()
@manrueda
manrueda / clean-up.sh
Created Aug 28, 2017
Remove cache instances of GitLab CI Runner
View clean-up.sh
docker ps -a | grep cache | awk '{print $2}'
@manrueda
manrueda / index.ts
Created Mar 29, 2019
typedoc-plugin-external-module-name issue
View index.ts
/**
* @module @cool/package
*/
import * as _sub from './sub'
export const sub: typeof _sub = _sub;
You can’t perform that action at this time.