Skip to content

Instantly share code, notes, and snippets.

package main
import (
"context"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
"strconv"
package main
import (
"context"
"fmt"
"github.com/yohan460/go-jamf-api/api"
)
func main() {
@Yohan460
Yohan460 / shard.sh
Last active July 10, 2020 13:35 — forked from homebysix/shard.sh
shard.sh
#!/bin/bash
###
#
# Name: shard.sh
# Description: This Casper extension attribute takes a Mac serial
# number as input and uses that serial number to output a
# number from 0 to 99. This can be useful in scoping Casper
# policies to a specific percentage of the fleet.
# Author: Elliot Jordan <elliot@elliotjordan.com>