Skip to content

Instantly share code, notes, and snippets.

@yannhowe
yannhowe / anti_virus_downloader.ps1
Last active January 9, 2020 20:05
Powershell to download McAfee and ClamAV Patches
# Had to seperate downloading of each product files instead of providing URL list and finding all links due to laziness to handle relative and absolute linking. Perhaps one day I'll fix it.
$start_time = Get-Date
$download_folder = "D:\Anti-Virus Patches"
# Download URL list
$mcafee_page_url = "http://download.nai.com/products/DatFiles/4.x/NAI/"
$mcafee_file_path = "http://download.nai.com/products/DatFiles/4.x/NAI/"
$clamav_page_url = "https://www.clamav.net/downloads/"
$clamav_file_path = "http://database.clamav.net/"
$trendmicro_page_url = "http://downloadcenter.trendmicro.com/index.php?clk=tab_pattern&clkval=5&regs=NABU&lang_loc=1"
@yannhowe
yannhowe / .gitlab.ci.yml
Created September 26, 2016 18:06
.gitlab.ci.yml for SSH with private key.
# Image neeeds to have ssh-client
image: docker:git
services:
- docker:dind
stages:
- staging
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY