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; |
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
local user_host="%B%(!.%{$fg[red]%}.%{$fg[green]%})%n%{$reset_color%} " | |
local user_symbol='%(!.#.$)' | |
#Only show current and previous directory layer if more than 4 layers | |
local current_dir="%B%{$fg[blue]%}%(4~|.../%2~|%3~) %{$reset_color%}" | |
local vcs_branch='$(git_prompt_info)$(hg_prompt_info)' | |
local rvm_ruby='$(ruby_prompt_info)' | |
local venv_prompt='$(virtualenv_prompt_info)' | |
if [[ "${plugins[@]}" =~ 'kube-ps1' ]]; then | |
local kube_prompt='$(kube_ps1)' |
OlderNewer