This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mysql | |
import ( | |
"context" | |
"fmt" | |
"testing" | |
"time" | |
"github.com/fleetdm/fleet/v4/server/fleet" | |
"github.com/fleetdm/fleet/v4/server/ptr" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# | |
# Prerequisites: | |
# 0. Developer ID Installer certificate and NotaryProfile in the keychain. | |
# 1. Installers/fleet-osquery.pkg (will be signed and notarized if needed) | |
# 2. postinstall script that installs the above package | |
# | |
# Script to create, sign, and notarize a macOS package that: | |
# 1. Checks if fleet-osquery.pkg is signed and notarized, and processes it if needed | |
# 2. Installs the Installers directory to /Library |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package arch_test | |
import ( | |
"container/list" | |
"go/build" | |
"slices" | |
"strings" | |
"testing" | |
"golang.org/x/tools/go/packages" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (ds *Datastore) batchSetMDMAppleDeclarations(ctx context.Context, tx sqlx.ExtContext, tmID *uint, | |
incomingDeclarations []*fleet.MDMAppleDeclaration) (updatedDB bool, err error) { | |
enrichedDeclarations := enrichDeclarations(incomingDeclarations) | |
existingDecls, err := ds.getExistingDeclarations(ctx, tx, enrichedDeclarations, tmID) | |
if err != nil { | |
return false, ctxerr.Wrap(ctx, err, "load existing declarations") | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto" | |
"crypto/ecdsa" | |
"crypto/ed25519" | |
"crypto/rsa" | |
"crypto/x509" | |
"encoding/pem" | |
"fmt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"os" | |
"strconv" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$NDESUrl = "http://10.0.0.74/certsrv/mscep/mscep.dll" | |
$ChallengePassword = "57D866A6E517F840" | |
$CommonName = "TestNDESWithPS" | |
$KeyLength = 2048 | |
$SCEPProcessDefault = 0x0 | |
$Pkcs10 = New-Object -ComObject "X509Enrollment.CX509CertificateRequestPkcs10" | |
# The certificate is intended for a computer. | |
# See X509Enrollment.X509CertificateEnrollmentContext enumeration. | |
$Pkcs10.Initialize([Int](2)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"io" | |
"os" | |
"github.com/kballard/go-shellquote" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
mysql_source: | |
image: mysql:8.4.3 | |
volumes: | |
- mysql-source:/tmp | |
command: | |
[ | |
"mysqld", | |
"--datadir=/tmp/mysqldata-source", | |
"--log-bin=bin.log", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"golang.org/x/oauth2/google" | |
"golang.org/x/oauth2/jwt" | |
"google.golang.org/api/calendar/v3" | |
"google.golang.org/api/option" | |
"log" | |
"time" |
NewerOlder