❗ This is tested with Vanilla Kubernetes nodes, it may not work with Tanzu.
- Clone the image-builder repo.
- Edit
images/capi/ansible/node.yml
- Add the following tasks at the end (e.g. before the sysprep section)
❗ This is tested with Vanilla Kubernetes nodes, it may not work with Tanzu.
images/capi/ansible/node.yml
Sometimes it happens that people accidentally push information from inside the organization to the public github repository. It could be hostname, ip address, proxy etc... This information could be somewhere in commit mesage and if reviewers see it, it's too late.
For this reason, I created a GitHook protection (short snippet running locally in your project) that warns you if it finds vulnerable information before you commit.
See the vulnerable commit message
Vulnerable commit
#! /bin/bash | |
#since slack 2.6.3 there is some hack in that file, so make sure this piece of code goes before the: | |
#start(assignIn({}, require('electron').remote.getGlobal('loadSettings'), { windowType: 'WEBAPP' })); | |
#..line | |
# since 3.0.5 | |
# or before the 'const loadSettings = ...' line | |
cat << 'EOF' >> /usr/lib/slack/resources/app.asar.unpacked/src/static/ssb-interop.js |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# This is how I used it: | |
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history | |
import sys | |
import time |
Just migrated it from Codepen.io to markdown. Credit goes to David Conner.
Working with DOM | Working with JS | Working With Functions |
---|---|---|
Accessing Dom Elements | Add/Remove Array Item | Add Default Arguments to Function |
Grab Children/Parent Node(s) | Add/Remove Object Properties | Throttle/Debounce Functions |
Create DOM Elements | Conditionals |
# this is no longer valid because of the AuthN | |
create tenant | |
curl -ivX POST -H "Content-Type: application/json" -d '{"id": "acme"}' http://127.0.0.1:8080/hawkular/inventory/tenants | |
create environment | |
curl -ivX POST -H "Content-Type: application/json" -d '{"id": "prod"}' http://127.0.0.1:8080/hawkular/inventory/acme/environments | |
create resource type | |
curl -ivX POST -H "Content-Type: application/json" -d '{"id": "URL", "version": "1.0"}' http://127.0.0.1:8080/hawkular/inventory/acme/resourceTypes |
sudo nmap -sP 192.168.0.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}' |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
#!/bin/bash | |
# WebSocket shell, start & browse to http://<Host>:6655/ | |
# Requires bash 4.x, openssl. | |
# Author: rootshell@corelogics.de (which isn't me, apk) | |
coproc d { nc -l -p 6656 -q 0; } | |
nc -l -p 6655 -q 1 > /dev/null <<-ENDOFPAGE | |
HTTP/1.1 200 OK | |
<html><head><script language="javascript"> | |
var url = location.hostname + ':' + (parseInt(location.port) + 1); |
#!/usr/bin/env bash | |
# Generates gource video (h.264) out of multiple repositories. | |
# Pass the repositories in command line arguments. | |
# Example: | |
# <this.sh> /path/to/repo1 /path/to/repo2 | |
RESOLUTION="1600x1080" | |
outfile="gource.mp4" | |
i=0 |