Skip to content

Instantly share code, notes, and snippets.

View halkeye's full-sized avatar

Gavin Mogan halkeye

View GitHub Profile
@halkeye
halkeye / storage.sh
Last active February 27, 2018 06:52
Simple script to install external-storage to typhoon
set -x
set -e
export KUBECONFIG=$HOME/.secrets/clusters/nemo/auth/kubeconfig
test -f external-storage || git clone [email protected]:kubernetes-incubator/external-storage.git
cat external-storage/digitalocean/manifests/digitalocean-secret.yaml | perl -pi -e "s{<DigitalOcean token>}{$(python -c "import base64; print base64.b64encode(open('$HOME/.config/digital-ocean/token', 'r').read().strip().replace('\n', ''))")}" | kubectl create -f -
kubectl create -f external-storage/digitalocean/manifests/rbac
cat external-storage/digitalocean/manifests/digitalocean-provisioner.yaml | perl -pi -e 's{apps/v1beta2}{apps/v1}' | kubectl create -f -
cat external-storage/digitalocean/manifests/digitalocean-flexplugin-deploy.yaml | perl -pi -e "s{apps/v1beta2}{apps/v1};s{<flex volume plugin dir, default: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/>}{/var/lib/kubelet/volumeplugins/}" | kubectl create -f -
@halkeye
halkeye / boxstarter.ps1
Last active April 29, 2019 19:21 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Gavin Mogan <[email protected]>
# Last Updated: 2018-03-08
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@halkeye
halkeye / chats.md
Last active November 1, 2018 05:52

Community Chats

Shared Community Slack

People

  • Any and all people could stop by the channel(s)
folder('github_projects') {
['nfg', 'aliaoca', 'authorized', 'authenticated'].each {
permission("Jenkins.READ", it.name)
permission("hudson.model.Item.READ", it.name)
permission("hudson.model.Item.DISCOVER", it.name)
}
displayName('Github Projects')
description('All the github projects')
}
#!/bin/bash
set -e
set -x
# Assuming "anonymous read access" has been enabled on your Jenkins instance.
# JENKINS_URL=[root URL of Jenkins master]
JENKINS_URL=https://ci.blueocean.io
# JENKINS_URL=https://jenkins.gavinmogan.com
# JENKINS_CRUMB is needed if your Jenkins master has CRSF protection enabled as it should
JENKINS_CRUMB=`curl -qs "$JENKINS_URL/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,\":\",//crumb)"`
curl -q -X POST -H $JENKINS_CRUMB -F "jenkinsfile=<Jenkinsfile" $JENKINS_URL/pipeline-model-converter/validate
@halkeye
halkeye / mixed-content.txt
Last active January 10, 2020 07:55
mixed-content.txt
9:15:05 PM: Mixed content detected in: /chatwork/index.html
9:15:05 PM: --> insecure img urls:
9:15:05 PM: - http://sebastian-badge.info/plugins/chatwork.svg
9:15:25 PM: Mixed content detected in: /curseforge-publisher/index.html
9:15:25 PM: --> insecure img urls:
9:15:25 PM: - http://i.imgur.com/w9QAfnn.png
9:15:29 PM: Mixed content detected in: /debian-pbuilder/index.html
9:15:29 PM: --> insecure img urls:
9:15:29 PM: - http://jenkins.rm5248.com/buildStatus/icon?job=debian-pbuilder
9:15:48 PM: Mixed content detected in: /ez-templates/index.html

grabbing all the items in columns in a project

# Type queries into this side of the screen, and you will 
# see intelligent typeaheads aware of the current GraphQL type schema, 
# live syntax, and validation errors highlighted within the text.

# We'll get you started with a simple query showing your username!
query { 
  viewer { 
    login
work
/rebel.xml
# Node
node/
node_modules/
# Generated JavaScript Bundles
jsbundles
# Type queries into this side of the screen, and you will
# see intelligent typeaheads aware of the current GraphQL type schema,
# live syntax, and validation errors highlighted within the text.
# We'll get you started with a simple query showing your username!
query {
git_plugin: repository(owner: "jenkinsci", name: "git-plugin") {
object(expression: "master:README.adoc") {
... on Blob {
text
@halkeye
halkeye / cloudSettings
Last active August 28, 2020 23:40
Work vscode
{"lastUpload":"2020-08-28T23:40:10.446Z","extensionVersion":"v3.4.3"}