Skip to content

Instantly share code, notes, and snippets.

View foursixnine's full-sized avatar
♾️
Dreaming about arepas and maria cookies!

Santiago Zarate foursixnine

♾️
Dreaming about arepas and maria cookies!
View GitHub Profile
@foursixnine
foursixnine / gist:b0d37109c71671303e5a874f7fdd9556
Last active November 9, 2019 10:38
Restart a job in an openQA instance
set -e
MICROTIME=$(date +%s);
APIKEY="APIKEY"
APISECRET="APISECRET"
APIROUTE='/api/v1/jobs/1748061/restart' # Beware if your URL has extra characters
# See https://github.com/os-autoinst/openQA/blob/master/lib/OpenQA/UserAgent.pm#L78
HMAC=$(echo -n "$APIROUTE$MICROTIME" | openssl dgst -sha1 -mac hmac -macopt key:$APISECRET | awk '{ print $2}');
@foursixnine
foursixnine / usb pimpinela
Created April 7, 2019 06:54
iPimpinella
[Vete ] usb 3-3: new full-speed USB device number 29 using xhci_hcd
[Por eso vete, olvida mi nombre, mi cara, mi casa ] usb 3-3: device descriptor read/64, error -71
[Y pega la vuelta ] usb 3-3: device descriptor read/64, error -71
[Jamás te pude comprender ] usb 3-3: new full-speed USB device number 30 using xhci_hcd
[Vete, olvida mis ojos ] usb 3-3: device descriptor read/64, error -71
[mis manos, mis labios ] usb 3-3: device descriptor read/64, error -71
[Que no te desean ] usb usb3-port3: attempt power cycle
[Estás mintiendo, ya lo sé ] usb 3-3: new full-speed USB device number 31 using xhci_hcd
[Vete, olvida que existo, que me conociste ] usb 3-3: Device not responding to setup address.
[Y no te sorprendas, olvida de todo que tú para eso ] usb 3-3: Device not responding to s
use strict;
use warnings;
use Test::More;
use Carp qw/carp/;
use feature 'say';
sub get_var {
my ($return_this) = @_;
## no critic
return undef if $return_this eq 'Blah';
@foursixnine
foursixnine / arrayref.pm
Last active December 17, 2018 09:31
pairprogramming
use strict;
use warnings;
use feature 'say';
use Data::Dump qw(pp);
# https://github.com/foursixnine/systeminstaller/blob/master/bootstrap-os.sh
# you could run all of this in a shell script
BOOTSTRAP_ROOTFS=/tmp/rootfs
mkdir ${BOOTSTRAP_ROOTFS}
mount -t ext3 -o noatime /dev/your/device ${BOOTSTRAP_ROOTFS}
mount -t proc proc ${BOOTSTRAP_ROOTFS}/proc/
mount -t sysfs sys ${BOOTSTRAP_ROOTFS}/sys/
mount -o bind /dev ${BOOTSTRAP_ROOTFS}/dev/
loadtest needs a script below /var/lib/openqa/cache/tests/sle - bootloader_poo40670.pm is not
[2018-11-06T18:17:18.0074 CET] [debug] error on bootloader_poo40670.pm: Can't locate ../../../pool/1/bootloader_poo40670.pm in @INC (you may need to install the ..::..::..::pool::1::bootloader_poo40670 module) (@INC contains: ../../../pool/1 /var/lib/openqa/cache/tests/sle/lib /var/lib/openqa/pool/1/blib/arch /var/lib/openqa/pool/1/blib/lib /usr/lib/os-autoinst /usr/lib/perl5/site_perl/5.18.2/ppc64le-linux-thread-multi /usr/lib/perl5/site_perl/5.18.2 /usr/lib/perl5/vendor_perl/5.18.2/ppc64le-linux-thread-multi /usr/lib/perl5/vendor_perl/5.18.2 /usr/lib/perl5/5.18.2/ppc64le-linux-thread-multi /usr/lib/perl5/5.18.2 /usr/lib/perl5/site_perl .) at (eval 739) line 1.
error on bootloader_poo40670.pm: Can't locate ../../../pool/1/bootloader_poo40670.pm in @INC (you may need to install the ..::..::..::pool::1::bootloader_poo40670 module) (@INC contains: ../../../pool/1 /var/lib/openqa/cache/tests/sle/lib /var/lib/openqa/poo
t/test-file_with_fails.tap ..
1..6
#
# Create a new Board and Tile, then place
# the Tile onto the board.
#
ok 1 - The object isa Board
ok 2 - Board size is zero
ok 3 - The object isa Tile
ok 4 - Get possible places to put the Tile
diff --git a/t/05-scheduler-dependencies.t b/t/05-scheduler-dependencies.t
index 81771028..766d9182 100644
--- a/t/05-scheduler-dependencies.t
+++ b/t/05-scheduler-dependencies.t
@@ -714,11 +714,12 @@ is_deeply($jobD2_h->{parents}->{Chained}, [$jobA2->id], 'jobD2 has jobA2 as chai
is($jobD2_h->{settings}{TEST}, $jobD->TEST, 'jobD2 test and jobD test are equal');
my $jobA2_h = job_get_deps($jobA2->id);
-is_deeply(
- $jobA2_h->{children}->{Chained},
@foursixnine
foursixnine / gist:ebfe8f780484847612cfbfec3e2fc615
Created February 4, 2018 00:23
OpenSource Mechanical Keyboards
https://input.club/devices/infinity-keyboard/
https://opensource.com/article/17/5/building-open-source-mechanical-keyboards
https://github.com/help-14/mechanical-keyboard
{"job":{"id":99946,"children":{"Parallel":[],"Chained":[]},"origin_id":99945,"assets":{"hdd":["openSUSE-13.1-x86_64.hda"],"iso":["openSUSE-13.1-DVD-i586-Build0091-Media.iso"]},"state":"done","settings":{"VIDEOMODE":"text","NAME":"00099946-opensuse-13.1-DVD-i586-Build0091-textmode@32bit","HDD_1":"openSUSE-13.1-x86_64.hda","TEST":"textmode","MACHINE":"32bit","BUILD":"0091","DISTRI":"opensuse","ISO_MAXSIZE":"4700372992","DESKTOP":"textmode","DVD":"1","QEMUCPU":"qemu32","ARCH":"i586","VERSION":"13.1","ISO":"openSUSE-13.1-DVD-i586-Build0091-Media.iso","FLAVOR":"DVD"},"name":"opensuse-13.1-DVD-i586-Build0091-textmode@32bit","priority":35,"parents":{"Parallel":[],"Chained":[]},"t_finished":"2018-01-30T11:19:41","t_started":"2018-01-30T10:19:41","clone_id":99986,"testresults":[{"fatal":0,"result":"passed","category":"installation","important":0,"name":"isosize","milestone":0,"details":[{"screenshot":"isosize-1.png","num":1,"md5_basename":"61d0c3faf37d49d33b6fc308f2.png","result":"unk","md5_dirname":"347/da6"}]},{"det