Skip to content

Instantly share code, notes, and snippets.

View edolix's full-sized avatar

Edoardo Gallo edolix

View GitHub Profile
@edolix
edolix / team-sdk-ci.md
Last active August 23, 2022 06:39
Team SDK CI Requirements

Technical Requirements

  • On commit, build and test
    • TypeScript - JavaScript
    • All run on docker container
    • Playwright usage for e2e-tests (through Docker images)
    • Some projects have flaky tests, so test reports/analysis/insights is important
    • Some projects take 20-30 minutes, but we don't want them to block faster workflows
      • improved caching capabilities would speed this up
  • detection of new pushes that can kill running jobs
@edolix
edolix / app.controller.ts
Created March 30, 2020 16:47
@signalwire/node NestJS integration
import { Controller, Get } from '@nestjs/common';
const { RestClient } = require('@signalwire/node');
const project = '<SPACE-PROJECT>';
const token = '<SPACE-TOKEN>';
const spaceUrl = 'example.signalwire.com';
const restClient = RestClient(project, token, { signalwireSpaceUrl: spaceUrl });
@Controller()
export class AppController {

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.