Skip to content

Instantly share code, notes, and snippets.

View maleck13's full-sized avatar

Craig Brookes maleck13

View GitHub Profile
// Copyright © 2017 NAME HERE <EMAIL ADDRESS>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// Copyright © 2017 NAME HERE <EMAIL ADDRESS>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@maleck13
maleck13 / docker digger
Created May 17, 2017 11:51
docker digger
FROM openjdk
COPY ./scripts/bin/ /usr/local/bin
RUN apt-get update && apt-get install -y wget \
&& mkdir -p /.android/cache && chmod 777 /.android/cache \
&& cd / && pwd && ls -al
WORKDIR /opt/install
@maleck13
maleck13 / docker digger
Created May 17, 2017 11:51
docker digger
FROM openjdk
COPY ./scripts/bin/ /usr/local/bin
RUN apt-get update && apt-get install -y wget \
&& mkdir -p /.android/cache && chmod 777 /.android/cache \
&& cd / && pwd && ls -al
WORKDIR /opt/install
@maleck13
maleck13 / decode.go
Created May 13, 2017 15:57
attempt to decode OSCP template
package template
import (
"github.com/pkg/errors"
kapi "k8s.io/kubernetes/pkg/api"
kapi1 "k8s.io/kubernetes/pkg/api/v1"
"k8s.io/kubernetes/pkg/runtime"
"io/ioutil"
@maleck13
maleck13 / octave.md
Created April 23, 2017 08:10 — forked from obstschale/octave.md
An Octave introduction cheat sheet.

Octave CheatSheet

GNU Octave is a high-level interpreted language, primarily intended for numerical computations.
(via GNU Octave)

Basics

  • not equal ~=
  • logical AND &amp;&amp;
package main
import (
"log"
"net/http"
)
func main() {
h := http.FileServer(http.Dir("/Users/kelly/work/go/src/github.com/maleck13/restnode/app/swagger"))
h = handler(h)
nil channels block
closed channels don't block
@maleck13
maleck13 / extensions.json
Last active September 2, 2016 18:42
Visual Studio code settings
[
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "ac3a3342-db76-40ef-9277-4657632d3bfe",
"publisherDisplayName": "Shan Khan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "1.6.3"
install package control
https://github.com/ironcladlou/GoTools