Skip to content
Archive of posts filed under the Dev Talk category.

Realtime clock data from Alge-timing system

I made all of this stuff into the Finice 2019 ice climbing competition (www.finice2019.com).  The idea is to send the clock timing events into web, so we could use them in the results-office, or we could insert the clock into the video stream during the competition. There’s always some delay in the video stream, so we need a way to add custom delay into the clock. The data is good, but we have to remember to add some delay so the clock and video will be on sync. It would look stupid if the climber get to the top, and the clock has already stopped a few seconds ago.

Here’s a short video about how all of it works:

Continue reading ‘Realtime clock data from Alge-timing system’ »

Configuring SyntaxHighlighter plugin to StripBrs

I had way too much trouble with the new version of the SyntaxHighlighter Evolved plugin. The default configuration page is missing the option to StripBrs. A quick and dirty solution was to write a plugin to configure the other plugin.

The SyntaxHighlighter configuration is easy. The plugin is running on JavaScript, so all we have to do is to

SyntaxHighlighter.config.stripBrs = true;
SyntaxHighlighter.all();

To get there I wrote a simple plugin that add the new js after WordPress js scripts. Here’s how it’s done:

function add_js_config() {
    wp_register_script( 'syntaxhighlighter_config',
                       plugins_url('syntaxhighlightstripbrs.js',__FILE__),
                       array('jquery','syntaxhighlighter'),
                       '1.0',
                       true);
    wp_enqueue_script('syntaxhighlighter_config');
}
add_action( 'wp_enqueue_scripts', 'add_js_config' );

The plugin can be found from github: https://github.com/Summeli/SyntaxHighlight-StripBrs

Updated my pfSense for LAN-parties

Update to my previous post https://www.summeli.com/?p=11214

I added a new WAN port for my pfSensebox. Now we can have a mobile 4G connection shared into LAN from all three Finnish networks (DNA, Telia, Elisa). This is pretty rad.

 

 

Routing multi-WAN in pfSense

I just added a third WAN connection into my pfSensebox for  LAN parties. However the configuration was pretty tricky and I forgot most of the settings, so I wrote this quick guide to follow for the future (if I have to do it again..)

Configure WANs

The fist step is to configure WANs. Just configure DHCP and internetsettings separably to each WAN.

Create Routing Gateways

Go to System->Routing->Gateway Groups, and add new

Continue reading ‘Routing multi-WAN in pfSense’ »

Building a router for LAN party with pfSense and Steam cache

We have small LAN-party for about 30 people twice a year. The party takes a place far away from good internet connections. We have to manage with only 4G connections in here. Currently it get really troublesome if we get some game updates to steam etc. since we’re only having one 4G connection witch is shared with 30 people.

Hardware Dell R210-II

After lurking a while in the reddit/r/homelab I decided to buy a cheap Dell R210-II from ebay. The reasoning was;

  1. The physical size is decent (I have limited storage space).
  2. The CPU has a support for virtualization.
  3. Dell provides the customized esxi images, so the installation should be easy
  4. 1 PCI-express slot for new NIC, and enough space to run 2 HDDs in RAID-mode.

I also purchased a 1gigabit 4 port Intel NIC from ebay. Those things are also really cheap. They might be Chinese pirate-cards? (the price is incredibly low), but they still do the work.

Network Configuration

Continue reading ‘Building a router for LAN party with pfSense and Steam cache’ »