Skip to content

Instantly share code, notes, and snippets.

View MartinRogalla's full-sized avatar

Martin Rogalla MartinRogalla

View GitHub Profile
@MartinRogalla
MartinRogalla / install.md
Last active June 5, 2018 18:24
Building servo/servo on MacOS

Situation

Had a small issue with a locale when building servo/servo. I'll share this, in case someone else has the same issue.

brew install automake pkg-config python cmake yasm
pip install virtualenv

brew install openssl
@MartinRogalla
MartinRogalla / dynamic-dns.sh
Last active September 6, 2019 16:59
Google Cloud Dynamic DNS - Update if current IP mismatches DNS entry.
#!/bin/bash
# Google Cloud Dynamic DNS
# Run this under some kind of cron/timer job.
IP="$(dig +short myip.opendns.com @resolver1.opendns.com)"
ZONE_NAME="com-yourdomain"
DNS_NAME="dynamic-dns-entry.yourdomain.com"
gcloud dns record-sets list -z=$ZONE_NAME --name=$DNS_NAME --type=A --format='value(name,type,ttl,rrdatas)' | while read name type ttl data ; do
LAST_IP=$data

Keybase proof

I hereby claim:

  • I am martinrogalla on github.
  • I am martinrogalla (https://keybase.io/martinrogalla) on keybase.
  • I have a public key ASAt6_ovwmSNc03ARSUz0r4WB-at-_O3IGKH0cE_qCOsxwo

To claim this, I am signing this object:

@MartinRogalla
MartinRogalla / artemis.stdout
Created October 4, 2016 16:34
artemis -v all --coverage-report html --strategy-form-input-generation random --export-event-sequence json http://localhost:8080/trivial-string.html
Artemis - Automated tester for JavaScript
Started: Tue Oct 4 09:29:17 2016
Compilation date: 07-09-2016_09:57:35
-----
. 1
============= New-Iteration =============
--------------- WORKLIST ----------------
@MartinRogalla
MartinRogalla / query.md
Last active February 16, 2016 22:26
Monthly added GitHub repositories.

Monthly added GitHub repositories

Get access to the GitHub archive BigQuery dataset.

Run the following query, update the regex if needed.

SELECT STRFTIME_UTC_USEC(repository_created_at, '%Y-%m') as month,
COUNT(repository_url)
FROM
 (SELECT repository_created_at, repository_url
import lombok.extern.slf4j.Slf4j;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
@Slf4j
public class MinimalExample {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver", "/path/to/chromedriver");

Keybase proof

I hereby claim:

  • I am martinrogalla on github.
  • I am martinrogalla (https://keybase.io/martinrogalla) on keybase.
  • I have a public key whose fingerprint is 814E 429B A180 8627 D150 B02F 1F77 69D3 5C6B A83A

To claim this, I am signing this object:

@MartinRogalla
MartinRogalla / ReferenceExample.md
Last active August 29, 2015 14:15
An example of referencing in GitHub Markdown.

Example of referencing in GitHub Markdown

I want to reference something in this sentence.[1]

Bibliography

[1] - Frenking, Gernot, and Andreas Krapp. "Unicorns in the world of chemical bonding models." Journal of computational chemistry 28.1 (2007): 15-24.

#Testing and Refactoring - Alitheia Core In this report we describe and discuss the refactoring changes made to Alitheia Core and present a plan for future refactoring. The most important part of the refactoring of Alitheia Core is to make it more maintainable and attractive for developers to use and develop plugins.

The report is structured as follows. First we discuss the provided test suite, then we describe the refactoring processes of various Alitheia Core components. The report is finalized by summarizing the overall progress made and giving future recommendations regarding further refactoring of Alitheia Core.

##Provided Test Suite The provided test suite set up in the project did not work as expected. There were a couple of issues:

  • eu.sqooss.test.service.scheduler.SchedulerTest runs forever because the tearDown method is stuck in an infinite loop. The Scheduler test cases do not get along with the Scheduler implementation because the test cases assume that the scheduler have no waiting jobs af