Skip to content

Instantly share code, notes, and snippets.

@brunoribeiro
brunoribeiro / pipewire.md
Created December 2, 2021 02:56 — forked from the-spyke/pipewire.md
Enable PipeWire on Ubuntu 21.10

Enable PipeWire on Ubuntu 21.10

Ubuntu 21.10 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use it for audio and Bluetooth instead of PulseAudio.

Based on the Debian Wiki, but adopted for Ubuntu 21.10.

Install

Install Bluetooth codecs AAC/LDAC/AptX:

@brunoribeiro
brunoribeiro / tinder.user.js
Created August 14, 2021 00:30 — forked from tajnymag/tinder.user.js
Tinder Deblur Userscript
// ==UserScript==
// @name Tinder Deblur
// @namespace Violentmonkey Scripts
// @match https://tinder.com/*
// @grant none
// @version 1.3
// @author Tajnymag
// @downloadURL https://gist.github.com/Tajnymag/9de74305f9bb09aa940d26418bd508f1/raw/tinder.user.js
// @description Simple script using the official Tinde API to get clean photos of the users who liked you
// ==/UserScript==
[
"Quantas cuecas tem o cliente em casa.",
"Nós enquanto artistas de circo...",
"Peter podes começar a abrir fruta para nós",
"É a mesma coisa que tirar frangos e por leite, e vou ter que me ir embora.",
"Daqui a uns anos vais estar a manter o programa do Ze da leitaria para verificar quando a vaca da um coice no balde do leite.",
"E agora podes navegar pela maionese fora.",
"Isto não é o supra-sumo da barbatana.",
"Muitos anos a queimar a pipoca"
]

Enable Docker Remote API with TLS client verification

Docker's Remote API can be secured via TLS and client certificate verification.
First of all you need a few certificates and keys:

  • CA certificate
  • Server certificate
  • Server key
  • Client certificate
  • Client key

Create certificate files

@brunoribeiro
brunoribeiro / Jenkinsfile
Created June 8, 2020 11:49 — forked from jonico/Jenkinsfile
Example for a full blown Jenkins pipeline script with multiple stages, kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage c…
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
spec:
containers:
- name: mvn
image: maven:3.3.9-jdk-8-alpine
@brunoribeiro
brunoribeiro / Jenkinsfile
Created June 8, 2020 11:49 — forked from jonico/Jenkinsfile
Example for a full blown Jenkins pipeline script with multiple stages, kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage c…
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
spec:
containers:
- name: mvn
image: maven:3.3.9-jdk-8-alpine