Skip to content

Instantly share code, notes, and snippets.

View kristof-mattei's full-sized avatar
🦀
Rusting?

Kristof Mattei kristof-mattei

🦀
Rusting?
View GitHub Profile
@gfa99
gfa99 / listener.c
Created January 14, 2025 12:57 — forked from hostilefork/listener.c
Simple listener and sender for UDP multicast
//
// Simple listener.c program for UDP multicast
//
// Adapted from:
// http://ntrg.cs.tcd.ie/undergrad/4ba2/multicast/antony/example.html
//
// Changes:
// * Compiles for Windows as well as Linux
// * Takes the port and group on the command line
//
@dmshvetsov
dmshvetsov / Rakefile
Last active July 30, 2022 00:02
Use rails webpacker gem with npm instead of yarn, Rails recipe.
# Rakefile
require File.expand_path('../config/application', __FILE__)
Rails.application.load_tasks
# Replace yarn with npm
Rake::Task['yarn:install'].clear if Rake::Task.task_defined?('yarn:install')
Rake::Task['webpacker:yarn_install'].clear
Rake::Task['webpacker:check_yarn'].clear