Skip to content

Instantly share code, notes, and snippets.

@imposibrus
imposibrus / Collection.js
Created November 8, 2015 21:00
JS ActiveRecord
import Dispatcher, {EventObject} from "Dispatcher";
/**
* Items collection
*/
export default class Collection {
static E_ADD = 'add';
static E_REMOVE = 'remove';
static E_CHANGE = 'change';
@imposibrus
imposibrus / send-magic-packet.sh
Last active September 4, 2022 04:15 — forked from SteveMarshall/send-magic-packet.sh
Wake-On-Lan Magic Packet using netcat in bash
#!/usr/bin/env bash
mac_address=$1
# Strip colons from the MAC address
mac_address=$(echo $mac_address | sed 's/://g')
broadcast=$2
port=9
nc_args="-w1 -u"