Forked from Addy Osmani's Pen Polymer CodePen starter.
A Pen by Captain Anonymous on CodePen.
Forked from Addy Osmani's Pen Polymer CodePen starter.
A Pen by Captain Anonymous on CodePen.
| #!/usr/bin/env bash | |
| # -*- tab-width:4;indent-tabs-mode:nil -*- | |
| # ex: ts=4 sw=4 et | |
| #====================================================================== | |
| # | |
| # LeoFS | |
| # | |
| # Copyright (c) 2012-2014 Rakuten, Inc. | |
| # | |
| # This file is provided to you under the Apache License, |
| # /etc/nginx/geoblocker | |
| # This will block anything but the defined countries and the networks defined in the $localnet variable | |
| set $geoblock 0; | |
| if ($geoip_country_code !~ (DK|NO|SE)) { set $geoblock 1; } | |
| if ($localnet = 1){ set $geoblock 0; } | |
| if ($geoblock = 1){ return 403; } |
| #!/bin/sh | |
| # -*- tab-width:4;indent-tabs-mode:nil -*- | |
| # ex: ts=4 sw=4 et | |
| RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd) | |
| RUNNER_BASE_DIR=${RUNNER_SCRIPT_DIR%/*} | |
| RUNNER_ETC_DIR=$RUNNER_BASE_DIR/etc | |
| RUNNER_LOG_DIR={{log_path}} | |
| # Note the trailing slash on $PIPE_DIR/ |
| ## bitcask data root | |
| bitcask.data_root = /var/db/sniffle | |
| ## Configure how Bitcask writes data to disk. | |
| ## erlang: Erlang's built-in file API | |
| ## nif: Direct calls to the POSIX C API | |
| ## The NIF mode provides higher throughput for certain | |
| ## workloads, but has the potential to negatively impact | |
| ## the Erlang VM, leading to higher worst-case latencies | |
| ## and possible throughput collapse. |
| diff --git a/apps/wiggle/src/wiggle_wsproxy.erl b/apps/wiggle/src/wiggle_wsproxy.erl | |
| index 86da16d..0049aad 100644 | |
| --- a/apps/wiggle/src/wiggle_wsproxy.erl | |
| +++ b/apps/wiggle/src/wiggle_wsproxy.erl | |
| @@ -24,13 +24,24 @@ terminate(_Req, _State) -> | |
| ok. | |
| websocket_init(_Any, Req, []) -> | |
| + Req1 = case cowboy_req:parse_header(<<"sec-websocket-protocol">>, Req) of | |
| + {undefined, _, ReqR} -> ReqR; |
| #!/bin/bash | |
| # Use this to send and receive files | |
| # Dependencies: | |
| # SSH-Keys setup for root users. I recommend using agent forwarding for this. | |
| # mbuffer installed in /opt/local/bin/mbuffer. Adjust to reality. | |
| # | |
| # This script presumes: | |
| # zsnapper is installed. Comment out the two lines where it is referenced if you don't use it | |
| DATE=$(date +%Y%m%d%H%M) |
| # Wanelo Universal Bootstrap Script (W.U.B.S.) | |
| bash -c ' | |
| # Linux Distros: | |
| if [ $(uname -s | grep Linux) ]; then | |
| true && curl -s -L https://www.opscode.com/chef/install.sh | bash | |
| # Illumos Distros: | |
| elif [ $(uname -s | grep SunOS) ]; then |
| <?php | |
| /** | |
| * Template Name: Testimonial Archives | |
| * Description: Used as a page template to show page contents, followed by a loop through a CPT archive | |
| */ | |
| remove_action ('genesis_loop', 'genesis_do_loop'); // Remove the standard loop | |
| add_action( 'genesis_loop', 'custom_do_grid_loop' ); // Add custom loop |
| #!/bin/bash | |
| cd /opt/local/minecraft | |
| java -d64 -Xms1G -Xmx6G -XX:-UseVMInterruptibleIO -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=4 -XX:+AggressiveOpts -jar craftbukkit.jar nogui |