This file contains 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
import requests | |
def download_file_from_google_drive(id, destination): | |
def get_confirm_token(response): | |
for key, value in response.cookies.items(): | |
if key.startswith('download_warning'): | |
return value | |
return None |
This file contains 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
function global:Start-ForAllRepos | |
{ | |
[CmdletBinding()] | |
param ( | |
[Parameter(Position=0)] | |
[string] | |
$Cmd = 'git status', | |
[Parameter(Position=1)] | |
[string[]] |
This file contains 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
$CSVFolder = 'C:\path\to\directory\with\csvs'; | |
$OutputFile = 'C:\path\to\combined.csv'; | |
$CSV = Get-ChildItem -Path $CSVFolder -Filter *.csv | ForEach-Object { | |
Import-Csv -Path $_ | |
} | |
$CSV | Export-Csv -Path $OutputFile -NoTypeInformation -Force; |
OlderNewer