Skip to content

Instantly share code, notes, and snippets.

@arrrghhh
arrrghhh / Copy-SharePointFiles.ps1
Created April 15, 2025 21:28
PoSH / PnP Attempt at copying files from SharePoint to a local drive... doesn't deal with several
# Define variables
$siteUrl = "https://tenant.sharepoint.com/sites/site1/"
$SharePointFolderPath="Shared Documents"
$localPath = "C:\temp\localpath"
$PnPClientID = 'Insert-PnP-GUID-Here'
# Ensure local path exists, if not, create it.
if (!(Test-Path $localPath)) {
New-Item -ItemType Directory -Path $localPath
}
@arrrghhh
arrrghhh / xt897.xml
Last active February 14, 2016 04:39
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="muppets" fetch="https://github.com/TheMuppets/" />
<remote name="omni" fetch="https://github.com/omnirom/" />
<remove-project name="CyanogenMod/android_bootable_recovery" />
<project path="bootable/recovery" name="android_bootable_recovery" remote="omni" revision="android-6.0"/>
<project path="external/busybox" name="android_external_busybox" remote="omni" revision="android-6.0" />
<project path="vendor/motorola" name="proprietary_vendor_motorola" remote="muppets" revision="cm-13.0"/>
<project name="CyanogenMod/android_device_motorola_xt897" path="device/motorola/xt897" remote="github" />
<project name="CyanogenMod/android_device_motorola_msm8960_jbbl-common" path="device/motorola/msm8960_jbbl-common" remote="github" />