Create a new tmux session:
tmux new-session -s my-session # launch `top`, `htop`, or anything that will regularly updates, then detachStream your session:
| // Playground - noun: a place where people can play | |
| import UIKit | |
| class ViewController: UIViewController ,UITableViewDelegate, UITableViewDataSource | |
| { | |
| var tableView: UITableView! | |
| var items: NSMutableArray! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() |
| apiVersion: extensions/v1beta1 | |
| kind: DaemonSet | |
| metadata: | |
| creationTimestamp: null | |
| generation: 1 | |
| labels: | |
| k8s-app: kube-proxy-amd64 | |
| name: kube-proxy-amd64 | |
| selfLink: /apis/extensions/v1beta1/namespaces/kube-system/daemonsets/kube-proxy-amd64 | |
| namespace: kube-system |
| FROM alpine:3.3 | |
| ENV NGINX_VERSION 1.9.14 | |
| ENV PAGESPEED_VERSION 1.11.33.0-beta | |
| RUN build_pkgs="build-base linux-headers openssl-dev pcre-dev wget zlib-dev subversion git patch bash gperf python" && \ | |
| runtime_pkgs="ca-certificates openssl pcre zlib" && \ | |
| apk --no-cache --update add ${build_pkgs} ${runtime_pkgs} && \ | |
| mkdir -p /tmp/src/mod_pagespeed/src && \ | |
| cd /tmp/src && \ |
| #!/bin/bash | |
| set -e | |
| # Those should be JENKINS vars | |
| NAME=nginx-deployment-3 | |
| PODS_COUNT=3 | |
| CONTAINER_NAME=nginx | |
| DOCKER_IMAGE='nginx:1.8' | |
| # Template can be copied from deploy.tmp.yaml to update jenkins var |
| # Runtime image | |
| # Following https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md | |
| FROM node:7.7-alpine | |
| # Add tini | |
| RUN apk add --no-cache tini | |
| ENTRYPOINT ["/sbin/tini", "--"] | |
| WORKDIR /usr/src/app/ |
| # Check if this is the very first time that this script is running | |
| if ([ ! -f /root/.not-a-new-instance.txt ]) then | |
| newEC2Instance=true | |
| fi | |
| if ([ $newEC2Instance ]) then | |
| whoami | |
| cd /tmp |
| import UIKit | |
| import Foundation | |
| import XCPlayground | |
| XCPSetExecutionShouldContinueIndefinitely() | |
| class RemoteAPI { | |
| func getData(completionHandler: ((NSArray!, NSError!) -> Void)!) -> Void { | |
| let url: NSURL = NSURL(string: "http://itunes.apple.com/search?term=Turistforeningen&media=software") | |
| let ses = NSURLSession.sharedSession() |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Mathieu 'p01' Henri http://www.p01.org/releases/ | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| # This is an example of the Stack Exchange Tier 1 HAProxy config | |
| # The only things that have been changed from what we are running are: | |
| # 1. User names have been removed | |
| # 2. All Passwords have been remove | |
| # 3. IPs have been changed to use the example/documentation ranges | |
| # 4. Rate limit numbers have been changed to randome numbers, don't read into them | |
| userlist stats-auth | |
| group admin users $admin_user | |
| user $admin_user insecure-password $some_password |