Skip to content

Instantly share code, notes, and snippets.

@Dishwasha
Dishwasha / Dockerfile
Created January 28, 2023 02:58
gstreamer 1.22 upgrade
#
# STAGE 1: SERVER
#
FROM buildpack-deps:bookworm as gstreamer
WORKDIR /src
RUN set -eux; \
echo "deb-src http://deb.debian.org/debian bookworm main" >> /etc/apt/sources.list; \
apt-get update; \
apt-get install -y git build-essential fakeroot devscripts libxi-dev
RUN set -eux; \

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@Dishwasha
Dishwasha / Docker connect to remote server.md
Created August 27, 2020 16:02 — forked from kekru/Docker connect to remote server.md
Connect to another host with your docker client, without modifying your local Docker installation

Run commands on remote Docker host

This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.

Enable Docker Remote API

First be sure to enable the Docker Remote API on the remote host.

This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.

CREATE TYPE @extschema@.check_default_table AS (default_table text, count bigint);
CREATE TABLE @extschema@.part_config (
parent_table text NOT NULL
, control text NOT NULL
, partition_type text NOT NULL
, partition_interval text NOT NULL
, constraint_cols text[]
, premake int NOT NULL DEFAULT 4
, optimize_trigger int NOT NULL DEFAULT 4
, optimize_constraint int NOT NULL DEFAULT 30
@Dishwasha
Dishwasha / docker-compose.yml
Created April 3, 2019 03:12
ghdl docker-compose file
version: '3'
services:
ghdl:
image: ghdl/ghdl:ubuntu18-llvm-5.0
volumes:
- .:/src
working_dir: /src
@Dishwasha
Dishwasha / create-image.sh
Created January 13, 2017 04:45
Create custom qcow2 cloud images for OpenNebula
#!/bin/sh
qemu-img create -f qcow2 -b $1 modified.qcow2
virt-customize -v --attach packages.iso --format qcow2 -a modified.qcow2 --run script.sh
qemu-img convert -O qcow2 modified.qcow2 final.qcow2
TMPDIR=/tmp virt-sparsify final.qcow2 $2
rm -f modified.qcow2 final.qcow2
@Dishwasha
Dishwasha / check-bbb_webrtc_bridge_sip.js
Created December 23, 2015 03:23
bigbluebutton 0.90 webrtc fixes
Edit /var/www/bigbluebutton/check/resources/lib/bbb_webrtc_bridge_sip.js
173 var configuration = {
174 uri: 'sip:' + encodeURIComponent(username) + '@' + server,
175 wsServers: 'ws://webconf.srv.hacdc.org:5066', // + server + '/ws',
176 displayName: username,
177 register: false,
178 traceSip: true,
179 autostart: false,
180 userAgentString: "BigBlueButton",
<!DOCTYPE html>
<html>
<head>
<title>IFC - WebRTC getUserMedia Test</title>
<meta charset="UTF-8"/>
<link href='http://fonts.googleapis.com/css?family=Fauna+One' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://rawgit.com/skeelogy/ifc-ar-flood/master/css/style.css">
<!--load helper libraries-->
@Dishwasha
Dishwasha / gist:6106462
Created July 29, 2013 18:26
module namespacing
module A
def hello
puts "hello"
end
end
module A
module B
include A
end