Skip to content

Instantly share code, notes, and snippets.

View simenandre's full-sized avatar

Simen A. W. Olsen simenandre

View GitHub Profile

Keybase proof

I hereby claim:

  • I am cobraz on github.
  • I am cobraz (https://keybase.io/cobraz) on keybase.
  • I have a public key ASAe50hudhHcHB3pCpSHqKNtKehICEifiYF6H4w7EdIpfAo

To claim this, I am signing this object:

@simenandre
simenandre / create-tasks.js
Created September 9, 2020 14:10
Create Github-issues automatically with Github CLI based on `.tsx` files in `src/modules`. (Very specific)
const fs = require('fs');
const path = require('path');
const exec = require('child_process').exec;
const dir = `${__dirname}/src/modules/`
async function* walk(dir) {
for await (const d of await fs.promises.opendir(dir)) {
const entry = path.join(dir, d.name);
if (d.isDirectory()) yield* walk(entry);
else if (d.isFile()) yield entry;
...
steps
- uses: actions/checkout@v2
...
- run: npm run build // creates dist/
- run: |
git clone --depth 1 https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/<insert-repo-name, eg. cobraz/hello>.git /<insert-repo-name>
cp -R dist/ /<insert-repo-name>/<where you want em>
cd /<insert-repo-name>
git add .
swagger: '2.0'
info:
description: |
## Usage
- **Download the spec** [swagger.json](/v2/swagger.json) file, it is a [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification).
- **Generating a client** can easily be done using tools like [swagger-codegen](https://github.com/swagger-api/swagger-codegen) or other that accepts [OpenAPI Specification](https://github.com/OAI/OpenAPI-Specification) specs.
#!/bin/bash
EXTENSIONS=(
"aaron-bond.better-comments"
"dbaeumer.jshint"
"dbaeumer.vscode-eslint"
"eamodio.gitlens"
"eg2.tslint"
"HookyQR.beautify"