wget -mpck --html-extension --user-agent="" -e robots=off --wait 1 -P . www.foo.com- -m (Mirror) Turns on mirror-friendly settings like infinite recursion depth, timestamps, etc.
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # Get GitLab API URL from project URL | |
| GITLAB_API_URL="$(echo $CI_PROJECT_URL | cut -d'/' -f1,2,3)/api/v4" | |
| # Query running pipelines for the same branch, | |
| # process + filter them, | |
| # finally cancel them with another API call |
| local ret_status="%(?:%{$fg_bold[green]%}$:%{$fg_bold[red]%}$)" | |
| PROMPT=' | |
| %{$terminfo[bold]$fg[blue]%}# %{$reset_color%}\ | |
| %(#,%{$bg[yellow]%}%{$fg[black]%}%n%{$reset_color%},%{$terminfo[bold]$fg[blue]%}%n)\ | |
| %{$terminfo[bold]$fg[white]%}@\ | |
| %{$terminfo[bold]$fg[green]%}%m\ | |
| %{$terminfo[bold]$fg[white]%}:\ | |
| %{$terminfo[bold]$fg[yellow]%}%~%{$reset_color%} \ | |
| $(git_prompt_info) | |
| \ |
| #!/usr/bin/env bash | |
| set -ex | |
| sudo apt-get purge -y "open-vm-*" | |
| mkdir -p /tmp/install-vmware-tools && rm -rf /tmp/install-vmware-tools/* && cd /tmp/install-vmware-tools | |
| wget https://softwareupdate.vmware.com/cds/vmw-desktop/fusion/6.0.6/2684343/packages/com.vmware.fusion.tools.linux.zip.tar | |
| tar -xvf com.vmware.fusion.tools.linux.zip.tar |
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # replication delay threshold | |
| TH_SECONDS_BEHIND=60 | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| SERVER=$(hostname -f) | |
| ERRORS=() |
| !/bin/bash | |
| #Delete all containers | |
| docker rm $(docker ps -a -q) | |
| #Delete all images | |
| docker rmi $(docker images -q) |
| docker-machine rm default | |
| docker-machine create --driver virtualbox --virtualbox-disk-size "40960" --virtualbox-cpu-count "4" --virtualbox-memory "4096" default |
| # Set default behaviour, in case users don't have core.autocrlf set. | |
| * text | |
| # Explicitly declare text files we want to always be normalized and converted | |
| # to native line endings on checkout. | |
| *.html text | |
| *.css text | |
| *.js text | |
| # Declare files that will always have LF line endings on checkout. |
| # originated from: | |
| # https://perfp.wordpress.com/2010/08/25/mass-converting-video-files-using-powershell-and-handbrake/ | |
| $outdir = "C:\Temp\convert-avi" | |
| [Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath | |
| $files = Get-Childitem -Recurse -Include "*.avi" | |
| foreach ($file in $files) { | |
| $subpath = $file.DirectoryName.Replace((Get-Location -PSProvider FileSystem).ProviderPath , "") | |
| $destdir = $outdir + $subpath |