API by worldcup.sfg.io, cube by Wallace Erick and everything else by me
Forked from Jorge Epuñan's Pen World Cup FIFA Brazil 2014: current & closest matches.
A Pen by A Non Ymous on CodePen.
<?php | |
/* | |
Template Name: Submit Event | |
Author: Frank Bueltge | |
Author URI: http://bueltge.de/ | |
*/ | |
function add_errormessage_style() { ?> | |
<style type="text/css"> | |
.errormessage { border: 3px solid red; padding: 5px; color: #000; } |
API by worldcup.sfg.io, cube by Wallace Erick and everything else by me
Forked from Jorge Epuñan's Pen World Cup FIFA Brazil 2014: current & closest matches.
A Pen by A Non Ymous on CodePen.
$scope.Download = function () { | |
ionic.Platform.ready(function(){ | |
var url = "http://3.bp.blogspot.com/-XchURXRz-5c/U5ApPOrPM9I/AAAAAAAADoo/YZEj4qeSlqo/s1600/Final-Fantasy-XV-Noctis-Red-Eyes.png"; | |
var filename = url.split("/").pop(); | |
var targetPath = cordova.file.externalRootDirectory + filename; |
$scope.testFileUpload = function () { | |
// Function code goes here | |
// Destination URL | |
var url = "your_endpoint"; | |
This guide describes how to bootstrap new Production Core OS Cluster as High Availability Service in a 15 minutes with using etcd2, Fleet, Flannel, Confd, Nginx Balancer and Docker.
#!/bin/bash | |
if [[ $# < 2 ]];then | |
echo $0: usage: ./setup-keyless.sh username 192.168.1.5 192.168.1.6 192.168.1.7 192.168.1.8 | |
exit 1 | |
fi | |
USER=$1 | |
cd .. | |
echo "create authentication ssh-keygen keys on localhost" | |
echo "will set up keys on $2, $3, $4, $5" |
mkdir my_project | |
cd my_project | |
touch .gitignore | |
git init | |
git add . | |
git commit -m "Initial commit" | |
git remote add origin youruser@yourserver.com:/path/to/my_project.git | |
git push origin master |
#format mount point | |
mkfs.ext4 /dev/xvdf 2>/dev/null | |
#create dirctory | |
mkdir -p /data/db/ | |
#mount for start up | |
echo '/dev/xvdf /data/db auto noatime,noexec,nodiratime 0 0' >> /etc/fstab | |
mount -a /dev/xvdf /data/db |
#!/bin/sh | |
parse_yaml() { | |
local prefix=$2 | |
local s='[[:space:]]*' w='[a-zA-Z0-9_]*' fs=$(echo @|tr @ '\034') | |
sed -ne "s|^\($s\)\($w\)$s:$s\"\(.*\)\"$s\$|\1$fs\2$fs\3|p" \ | |
-e "s|^\($s\)\($w\)$s:$s\(.*\)$s\$|\1$fs\2$fs\3|p" $1 | | |
awk -F$fs '{ | |
indent = length($1)/2; | |
vname[indent] = $2; | |
for (i in vname) {if (i > indent) {delete vname[i]}} |