Skip to content

Instantly share code, notes, and snippets.

echo Y2hlY2sgeW91cnNlbGYgYmVmb3JlIHlvdSB3cmVjayB5b3Vyc2VsZg== | base64 -D | say
import flash.events.MouseEvent;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLVariables;
import flash.net.URLLoaderDataFormat;
import flash.net.URLRequestMethod;
import flash.events.Event;
submitbtn.addEventListener(MouseEvent.CLICK, sendData)
parts decoded from string:
<textarea style="width:600px;height:600px;">
<?php
//print_r($_POST);
print_r(json_decode($_POST['parts']));
#!/usr/bin/env bash
#install packa-wrappa
cd /usr/local/bin
wget https://gist.githubusercontent.com/moondev/5ea8fa608d1cd1d0006d4962061a4b66/raw/59db9706e27a132e1f7bbf31b0839a6bc5b7c120/packer
chmod +x packer
#install packer
cd /opt
wget https://releases.hashicorp.com/packer/0.10.1/packer_0.10.1_linux_amd64.zip
webpackJsonp([1,3],[
/* 0 */
/***/ function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process) {'use strict';
var feedbackUrl = process.env.FEEDBACK_URL || 'https://hootch.test.netflix.net/submit';
var gateHost = "/gate" || 'https://spinnaker-api-prestaging.mgmttest.netflix.net';
var bakeryDetailUrl = "/bakery" || 'http://bakery.test.netflix.net/#/?region={{context.region}}&package={{context.package}}&detail=bake:{{context.status.resourceId}}';
@moondev
moondev / packer
Last active August 2, 2016 18:40
Packer wrapper for spinnaker rosco multi region baking
#!/usr/bin/env bash
#This shell script goes in /usr/local/bin/packer
#
#The real packer binary is at /opt/packer
#
#The script looks for region in the params and then adds that to the end of aws-ebs.json and calls it with the real packer /opt/packer
#
#So Rosco goes:
html body ul.actions-container li.action-item{
color:yellow;
}
alert('hello');
apt-get update
apt-get install -y curl
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update
curl -sSL https://get.docker.com/ | sh
apt-get install -y kubelet kubeadm kubectl kubernetes-cni
@moondev
moondev / pv.yml
Last active January 24, 2017 07:11
k8s hostpath pv
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: pvjenkins
labels:
type: local
spec:
capacity:
storage: 3Gi