Skip to content

Instantly share code, notes, and snippets.

@Rinatamu
Rinatamu / GM365DevBootcamp_MGraphAPI.md
Last active November 24, 2019 07:56
Global Microsoft 365 Developer Bootcamp 2019 Tokyo:Microsoft Graph API
@fasl
fasl / upload.rb
Created January 29, 2018 04:47 — forked from schacon/upload.rb
ruby script to upload a file to GitHub downloads section
#! /usr/bin/env ruby
#
# ruby upload.rb user pass user/repo file '(description)'
#
require 'json'
if ARGV.size < 4
puts "\nUSAGE: upload.rb [user] [pass] [user/repo] [filepath] ('description')"
exit
@SharePointX
SharePointX / RoleAssignmentManagement.ps1
Created November 29, 2016 10:49
PowerShellでSharePointの権限設定
# サイトURLを指定
$webUrl = "http://yamasp2016/sites/es2_20160726"
# ページURLを指定
$pageUrl = "Pages/page1.aspx"
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
#サイトを取得
$web = Get-SPWeb $webUrl
#ページ(SPFile)取得
@jasonrudolph
jasonrudolph / 00-about-search-api-examples.md
Last active April 30, 2024 19:21
5 entertaining things you can find with the GitHub Search API
@btoone
btoone / curl.md
Last active April 2, 2024 20:18
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API.

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@yosemitebandit
yosemitebandit / meduele_login_with_requests.py
Created February 12, 2012 02:46
using the request lib's sessions to login; bonus: beautiful soup finds the csrf token
#!/usr/bin/env python
'''
testing a login to meduele using sessions
meduele checks csrf tokens with every request, even during login
'''
import requests
from BeautifulSoup import BeautifulSoup
# need to capture a valid csrf token
# first visit the login page to generate one
@mckoss
mckoss / download_sp.py
Created December 5, 2009 00:29
SharePoint downloader for Python
"""
Download all document links from a web page.
Used to extract all the docouments from a Sharepoint document library.
by Mike Koss, September, 2009
Notes:
9/14/09 mck:
Using Beautiful soup version 3.0.7a. The current version (3.1.0.1) is NOT resilient