Skip to content

Instantly share code, notes, and snippets.

@pandafox
pandafox / wwww.domain.com.conf
Created January 14, 2019 02:42 — forked from brian4286/wwww.domain.com.conf
Highly optimized WordPress nginx.conf for security and performance.
server {
listen 80 default_server;
listen [::]:80 default_server;
location / {
return 301 https://www.domain.com$request_uri;
}
}
server {
listen 443 ssl http2;
"""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):
@pandafox
pandafox / revoke_permission.ps1
Last active March 21, 2018 11:30
Powershell script to revoke all drive access to personal email - Requires GAMX https://github.com/taers232c/GAMADV-XTD
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: