Skip to content

Instantly share code, notes, and snippets.

View agilepoodle's full-sized avatar

Jussi Mononen agilepoodle

View GitHub Profile

Keybase proof

I hereby claim:

  • I am agilepoodle on github.
  • I am agilepoodle (https://keybase.io/agilepoodle) on keybase.
  • I have a public key whose fingerprint is BF1A 3C62 EB68 48E8 135D 062A 9A41 BE19 F90C B0ED

To claim this, I am signing this object:

@agilepoodle
agilepoodle / wifi-broadcom.txt
Last active June 16, 2021 05:21
Personal notes to tackle the infamous Broadcom WiFi issues with Linux (Fedora)
# Some notes for the infamous Braodcom wifi hardware (I have BCM4352)
# Installing kmod for wifi:
# Sometimes for the latest kernel releases, the .rpm package will download but not
# install, so check for the file presence:
cd /var/cache/akmods/wl
# Then look for the .rpm file for the current kernel. When you're in that directory, you can just
# install it:
@agilepoodle
agilepoodle / jsonb_operations.sql
Created July 5, 2017 05:40
PostgreSQL jsonb operations
select id, jsonb_agg(selection_point - 'moduleId' - 'bottomSelectionPointParentId' ||
jsonb_build_object('moduleGroupId', (select group_id from module where id=selection_point->>'moduleId')))
into temporary education_vertical_top_selection_point_group_id
from (select id, jsonb_array_elements(document -> 'structure' -> 'vertical' -> 'topSelectionPoints')
as selection_point from education) tss group by id;
update education set document =
(jsonb_set(document, '{structure,vertical,topSelectionPoints}',
'[{"localId": "sis-group-deg-0001", "moduleId": "sis-deg-non-existent-v1", "bottomNaming": "NAMES_NOTHING", "topDegreeTitleUrn": null, "bottomAcceptanceType": "AUTOMATIC", "bottomSelectionPoints": [], "bottomSelectionPointParentId": null}]')
) where id = 'test-education-in-future';
@agilepoodle
agilepoodle / mount-encrypted-partition-fedora-live-usb.sh
Created June 21, 2017 19:15
When you need to access LUKS encrypted partition with a Fedora Live CD or USB
# make sure crypt module in use
sudo modprobe dm-crypt
# Find out which drive it was with the following command:
sudo fdisk -l
# You must mount /dev/sda3 myvolume
# use cryptsetup, device is accessible under /dev/mapper/myvolume
sudo cryptsetup luksOpen /dev/sde3 myvolume
sudo dnf remove -y broadcom-wl-6.30.223.271-1.fc24.noarch
sudo dnf install broadcom-wl-6.30.223.271-1.fc24.noarch
sudo akmods --force --kernel `uname -r` --akmod wl
sudo modprobe -a wl
@agilepoodle
agilepoodle / gist:4986753
Created February 19, 2013 15:14
Horrible, dirty sort, a response to a challenge ;)
package org.jussimononen;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import org.junit.Test;
public class FooTest {
package org.jussimononen;
import static java.lang.Integer.valueOf;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.joda.time.IllegalFieldValueException;
import org.joda.time.LocalTime;
@agilepoodle
agilepoodle / about.md
Created August 9, 2011 13:32 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer