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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
location / { | |
return 301 https://www.domain.com$request_uri; | |
} | |
} | |
server { | |
listen 443 ssl http2; |
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
"""Set all repositories of a given GitHub organization name for a given user | |
to watching. | |
""" | |
import argparse | |
import json | |
import requests | |
def get_repos(url, repo_list=[], auth=None): |
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
param ( | |
[string]$account = $( Read-Host "Input owner account, please" ), | |
[string]$email = $( Read-Host "Input email to revoke access" ) | |
) | |
write-output "Removing access for $email from files owned by $account" | |
.\gam user $account print filelist fields "id,name,permissions" showownedby me query "('$email' in writers or '$email' in readers)" > "drivefiles-$email.csv" | |
# Assuming a CSV as such: |