Skip to content

Instantly share code, notes, and snippets.

View noqcks's full-sized avatar
🏠
Working from home

Benji Visser noqcks

🏠
Working from home
View GitHub Profile
spec:
fileAssets:
— name: kubernetes-audit
path: /srv/kubernetes/audit.yaml
# which type of instances to appy the file
roles: [Master]
content: |
<audit policy here>
kubeAPIServer:
@noqcks
noqcks / audit-policy-example.yml
Created March 31, 2018 19:42
An example Kubernetes audit policy
---
apiVersion: audit.k8s.io/v1beta1
kind: Policy
rules:
# The following requests were manually identified as high-volume and low-risk,
# so drop them.
- level: None
resources:
- group: ""
resources:

Keybase proof

I hereby claim:

  • I am noqcks on github.
  • I am noqcks (https://keybase.io/noqcks) on keybase.
  • I have a public key whose fingerprint is 6649 FFC0 D58F 452D 492D CC4A BA13 4834 CDD6 5A0D

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 1HbeSb92WEg9kNryc5swwuXFCLssFL9uGh https://explorer.blockstack.org/address/1HbeSb92WEg9kNryc5swwuXFCLssFL9uGh
@noqcks
noqcks / jenkins-plugins.md
Last active January 2, 2024 15:46
How to get a complete plugin list from jenkins (with version)

I need a way to get a list of plugins so that I can use them with docker jenkins in the format <plugin>: <version>

1. get the jenkins cli.

The jenkins CLI will allow us to interact with our jenkins server from the command line. We can get it with a simple curl call.

curl 'localhost:8080/jnlpJars/jenkins-cli.jar' > jenkins-cli.jar
@noqcks
noqcks / delete_cloudwatch_alarms.rb
Created November 28, 2016 18:16
Delete all cloudwatch alarms with insufficient data
require 'aws-sdk'
@client = Aws::CloudWatch::Client.new(region: 'us-east-1')
def cloudwatch_alarms(token=nil)
return @client.describe_alarms({
state_value: "INSUFFICIENT_DATA",
next_token: token
})
end
@noqcks
noqcks / v
Created November 7, 2016 22:54
df
var fs = require('fs')
var myNumber = undefined
function addOne(callback) {
fs.readFile('number.txt', function doneReading(err, fileContents) {
myNumber = parseInt(fileContents)
myNumber++
callback()
})
}
@noqcks
noqcks / hubot-slack-heroku.md
Created October 2, 2015 15:49 — forked from trey/hubot-slack-heroku.md
Steps to Install Hubot in Slack using Heroku
@noqcks
noqcks / gist:26ed59fd965485a2bebf
Created October 18, 2014 07:06
Bitcoin verify
Verifying that +tanq is my Bitcoin username. You can send me #bitcoin here: https://onename.io/tanq