This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
Note that this is my own fork to keep track of my progress.
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
Note that this is my own fork to keep track of my progress.
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; |
package org.jussimononen; | |
import java.util.Arrays; | |
import java.util.LinkedList; | |
import java.util.List; | |
import org.junit.Test; | |
public class FooTest { |
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 |
# 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 |
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'; |
# 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: |
I hereby claim:
To claim this, I am signing this object: