Skip to content

Instantly share code, notes, and snippets.

Moving Files with SharePoint Online REST APIs in Microsoft Flow

About

This is an overview of how to move files with Microsoft Flow using the SharePoint - Send an HTTP request to SharePoint action and SharePoint Online REST APIs.

These SharePoint Online REST APIs can be used outside of Flow, but you will need to handle authentication and provide an X-RequestDigest header with any POST requests (as with any SP REST POST request).

In the case of Flow's SharePoint - Send an HTTP request to SharePoint action, authentication is handled for you and you do not need to provide the X-RequestDigest header.

@Manojbhat09
Manojbhat09 / extract_conversations_prompts.py
Created April 14, 2025 08:56
Cursor SQLite Data Extractor: Windows Conversations and Prompts. Python scripts to scan SQLite database files (`state.vscdb` and `state.vscdb.backup`) used by Cursor for extracting conversation history and text-based prompts. If conversation data is not available, the scripts fall back to extracting prompts (e.g., `textDescription` fields). Outp…
#!/usr/bin/env python3
# wsl
import sqlite3
import json
from pathlib import Path
from datetime import datetime
# path to WorkspaceStorage on Windows or any paths with folders and state.vscdb inside
ENTRY_PATH="/mnt/c/Users/manoj/AppData/Roaming/Cursor/User/workspaceStorage"
#include <Adafruit_GFX.h>
#include <Adafruit_ST7796S.h>
#include <math.h>
#include <Wire.h>
#include <AHTxx.h>
// ---------------- TFT PINS ----------------
#define TFT_CS 2
#define TFT_DC 5
#define TFT_RST 4

You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.

IMPORTANT: Assist with authorized security testing, defensive security, CTF challenges, and educational contexts. Refuse requests for destructive techniques, DoS attacks, mass targeting, supply chain compromise, or detection evasion for malicious purposes. Dual-use security tools (C2 frameworks, credential testing, exploit development) require clear authorization context: pentesting engagements, CTF competitions, security research, or defensive use cases. IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.

If the user asks for help or wants to give feedback inform them of the following:

  • /help: Get help with using Claude Code
  • To give feedback, users should report the issue at https://g
@tmattio
tmattio / migrations.exs
Last active December 6, 2025 01:02
An implementation of has_many polymorphic association with Ecto
defmodule CreateCat do
use Ecto.Migration
def change do
create table(:cats) do
end
end
end
defmodule CreateDog do
@stympy
stympy / Caddyfile
Last active December 6, 2025 00:59
Serving secure customer domains with Caddy - the tech behind https://www.honeybadger.io/tour/status-pages/
{
# Caddy is running behind an application load balancer hosted at AWS, so this configures Caddy to trust the headers set by it
servers {
trusted_proxies static private_ranges
}
# Avoid DoS attacks by confirming with a backend app that a requested domain should have an on-demand certificate generated
on_demand_tls {
ask http://web.internal:5000/confirm_domain
interval 1m
@nilesh-tawari
nilesh-tawari / LUA.lua
Created January 25, 2018 04:11
LUA cheatSheet
-- [[ Cheatsheet for LUA from http://www.newthinktank.com/2015/06/learn-lua-one-video/]]
-- Prints to the screen (Can end with semicolon)
print("Hello World")
--[[
Multiline comment
]]
-- Variable names can't start with a number, but can contain letters, numbers
Product Year Version Product Keys
Visual Studio 2022 2021 17.x Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Enterprise:
VHF9H-NXBBB-638P6-6JHCY-88JWH
Visual Studio 2019 2019 16.x Professional:
NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y
Enterprise:
@BobCHub
BobCHub / Common_ports.txt
Last active December 6, 2025 00:36
Common ports
Port Numbers ---
Description
1 TCP Port Service Multiplexer (TCPMUX)
5 Remote Job Entry (RJE)
7 ECHO
18 Message Send Protocol (MSP)
20 FTP -- Data -- File Transfer Protocol (FTP): used for uploading and downloading files to and from a server.
21 FTP -- Control -- File Transfer Protocol (FTP): used for uploading and downloading files to and from a server.
22 SSH Remote Login Protocol ****