Skip to content

Instantly share code, notes, and snippets.

View ancorgs's full-sized avatar

Ancor Gonzalez Sosa ancorgs

  • Suse Linux Gmbh
  • Las Palmas de Gran Canaria
View GitHub Profile
#
# Example one:
#
def something
- efi_partition = Yast::Storage.GetEntryForMountpoint("/boot/efi")["device"]
- efi_partition ||= Yast::Storage.GetEntryForMountpoint("/boot")["device"]
- efi_partition ||= Yast::Storage.GetEntryForMountpoint("/")["device"]
- efi_disk = Yast::Storage.GetDiskPartition(efi_partition)["disk"]
+ efi_partition = filesystems.with_mountpoint("/boot/efi").partitions.first

Done

@ancorgs
ancorgs / debug-jangouts.md
Created February 2, 2017 14:52
Debugging Jangouts connection problems

Let's debug Jangouts connection problems

What is happening at network level

In short, every browser is establishing one WebRTC connection to Janus (the server) used to send video, audio and data and also another connection per participant to receive audio, video and data.

So, if I'm in a room together with other two colleages, my browser keeps 3 open WebRTC connection - one for sending and two for receiving. No direct connection to my colleages' browsers, i.e. my browser only talks to Janus. Every connection make use of the three WebRTC channels (audio, video and data).

Done

  • Prepared cross-team Jangouts debugging session
  • Editing the blog, draft soon.
  • Discussing with Josef about versioning in SP2 and CASP

Doing/planned

  • Collaborate with Iván in his PBI (jenkins and so on).
  • Next PBI

Done

  • Published blog post
    • Read it here
    • Please, follow discussion at opensuse-factory@
  • Advising Iván on his PBI (tests made it harder than expected) and new laptop

Doing/planned

module Yast
# Mixin that enables a class to define attributes that are never exposed via
# #inspect, #to_s or similar methods, with the goal of preventing
# unintentional leaks of sensitive information in the application logs.
module SecretAttributes
# Inner class to store the value of the attribute without exposing it
# directly
class Attribute
def initialize(value)
@value = value
# a_disk_object has a valid partition table
a_disk_object.filesystem #=> raises Storage::DeviceHasWrongType as expected
a_disk_object.encryption #=> Kills the ruby interpreter with the following message
# terminate called after throwing an instance of 'storage::DeviceHasWrongType'