Skip to content

Instantly share code, notes, and snippets.

View peterkellydev's full-sized avatar

Peter Kelly peterkellydev

  • Tigera
  • Ireland
View GitHub Profile
apiVersion: v1
data:
REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf.example: |
# ------------------------------------------------------------------------
# OWASP ModSecurity Core Rule Set ver.3.3.4
# Copyright (c) 2006-2020 Trustwave and contributors. All rights reserved.
# Copyright (c) 2021-2022 Core Rule Set project. All rights reserved.
#
# The OWASP ModSecurity Core Rule Set is distributed under
# Apache Software License (ASL) version 2
@peterkellydev
peterkellydev / app.js
Last active April 9, 2018 17:23
simpleapi
var express = require("express");
var bodyParser = require("body-parser");
var app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.get("/", function(req, res) {
res.status(200).send("Welcome to our restful API");
});
package main
import (
"errors"
"fmt"
"math/rand"
"time"
)
type Game struct {
package url
import (
"errors"
"net"
"net/url"
"strings"
)
func AddPortToURL(hostUrl, port string) (*url.URL, error) {
package main
import (
"fmt"
"math/rand"
"os"
"os/signal"
"sync"
"time"
)
apiVersion: v1
kind: Service
metadata:
name: kube-dns
namespace: kube-system
labels:
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "KubeDNS"
spec:
apiVersion: v1
kind: ReplicationController
metadata:
name: kube-dns-v19
namespace: kube-system
labels:
k8s-app: kube-dns
version: v19
kubernetes.io/cluster-service: "true"
spec:
@peterkellydev
peterkellydev / rocket_launch.go
Last active April 18, 2016 22:04
Rocket launch including abort!
package main
import (
"fmt"
"os"
"time"
)
// Demos multiplexing on channels - ticker for countdown and abort for interrupting (from stdin)
func main() {