The module on npm exposes the pdfmake Printer, which the docs themselves do not cover. Using it is pretty simple though.
var path = require('path');
var Printer = require('pdfmake');
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
choco install chocolatey -y | |
choco install sql-server-management-studio -y | |
choco install azure-data-studio -y | |
choco install azuredatastudio-powershell -y | |
choco install git.install -y | |
choco install vscode -y | |
choco install vscode-powershell -y | |
choco install powerbi -y |
#!/usr/bin/env bash | |
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
git fetch --all | |
git pull --all |
// Karma configuration file, see link for more information | |
// https://karma-runner.github.io/0.13/config/configuration-file.html | |
module.exports = function (config) { | |
config.set({ | |
basePath: '', | |
frameworks: ['jasmine', '@angular/cli'], | |
plugins: [ | |
require('karma-jasmine'), | |
require('karma-chrome-launcher'), |
# Inspired by https://gist.github.com/kevinelliott/7a152c556a83b322e0a8cd2df128235c | |
############################################################################## | |
# Install brew and base set of packages | |
############################################################################## | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" | |
# might need to run `sudo chown -R $USER:admin /usr/local` if install fails because of permissions issue. | |
brew update && brew upgrade |
# A BoxStarter script for use with http://boxstarter.org/WebLauncher | |
# Updates a Windows machine and installs a range of developer tools | |
# Allow unattended reboots | |
$Boxstarter.RebootOk=$true | |
$Boxstarter.NoPassword=$false | |
$Boxstarter.AutoLogin=$true | |
$checkpointPrefix = 'BoxStarter:Checkpoint:' |
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
# core | |
brew install coreutils | |
# key commands | |
brew install binutils | |
brew install diffutils | |
brew install ed --default-names | |
brew install findutils --with-default-names |
import time | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.chrome.options import Options | |
chrome_options = webdriver.ChromeOptions() | |
chrome_options.add_argument("-incognito") | |
driver = webdriver.Chrome(executable_path='/Library/Python/2.7/site-packages/selenium/webdriver/chrome/chromedriver', chrome_options=chrome_options) | |
driver.get('https://www.surveymonkey.com/s/<surveyid>') | |
time.sleep(2) | |
nxt_btn = driver.find_element_by_name('NextButton') |
choco windowsfeatures TelnetClient | |
choco windowsfeatures WindowsGadgetPlatform | |
choco windowsfeatures IIS-WebServerRole | |
choco windowsfeatures IIS-WebServer | |
choco windowsfeatures IIS-CommonHttpFeatures | |
choco windowsfeatures IIS-HttpErrors | |
choco windowsfeatures IIS-ApplicationDevelopment | |
choco windowsfeatures IIS-Security | |
choco windowsfeatures IIS-URLAuthorization | |
choco windowsfeatures IIS-RequestFiltering |