sudo apt update && sudo apt upgrade
dl_require(['puppeteer', 'fs', 'fast-csv']).then(_modules => { | |
const puppeteer = _modules.puppeteer; | |
const fs = _modules.fs; | |
const fast_csv = _modules['fast-csv']; | |
let main_url = 'https://example.com/'; | |
let parsed = []; | |
let parsed_pages = []; | |
let need_parse = [main_url]; | |
let browser = null; |
- Download the latest zsh package: https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64
Example:
zsh-5.7.1-1-x86_64.pkg.tar.xz
#!/bin/bash | |
# | |
## -----------------------------=[ WARNING ]=-------------------------------- ## | |
# | |
# This script is now woefully out of date due to which accounts ESXi allows to | |
# ssh into the box as well as sticky folders/file flags. | |
# I've since ported the whole thing to python with a lot of bells and whistles | |
# and if i get around to making it public, i'll put a link here. | |
# | |
## -------------------------------=[ Info ]=--------------------------------- ## |
There aren't many tutorials about this, the only tutorials I've found were about passing through entire PCIe cards to VMs, or refered to old ESXI versions (below 6.5) that used a more comprehensive desktop client instead of the web app. In v6.5, the web app was introduced and the desktop client was deprecated. You used to be able to setup RDMs in the desktop client, but with the introduction of the web console, this is no longer the case. This tutorial shows you how to pass SATA HDDs to the virtual machine on VMWare ESXI 6.5. This tutorial is partially based on VMWare's own KB and the now deprecated Forza IT blog post.
There is now an option while editing your VM's settings to add a New raw disk
when you click `Add ha
# Add this snippet to the top of your playbook. | |
# It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
# [email protected] | |
- hosts: all | |
gather_facts: False | |
tasks: | |
- name: install python 2 | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
Packer
-
Packer is used to build image from a base image, perform provisions and store (commit) the final image.
-
We use provisioners and Packer templates to do the actual work to create the final image.
-
We use Ansible for provisioning.
'use strict'; | |
module.exports = (pluginContext) => | |
{ | |
function search(query, res) | |
{ | |
var d = new Date(query * 1000); | |
res.add( | |
{ | |
id: '1', |
#!/bin/bash | |
TARGET="mysite.example.net"; | |
RECIPIENT="[email protected]"; | |
DAYS=7; | |
echo "checking if $TARGET expires in less than $DAYS days"; | |
expirationdate=$(date -d "$(: | openssl s_client -connect $TARGET:443 -servername $TARGET 2>/dev/null \ | |
| openssl x509 -text \ | |
| grep 'Not After' \ | |
|awk '{print $4,$5,$7}')" '+%s'); | |
in7days=$(($(date +%s) + (86400*$DAYS))); |
#! /bin/bash | |
# This script runs on os x. | |
SITES=( "speedtest-lon1.digitalocean.com" \ | |
"speedtest-sfo1.digitalocean.com" \ | |
"speedtest-ams1.digitalocean.com" \ | |
"speedtest-ams2.digitalocean.com" \ | |
"speedtest-nyc1.digitalocean.com" \ | |
"speedtest-nyc2.digitalocean.com" \ |