This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 4.9.10-gentoo Kernel Configuration | |
# | |
# | |
# Gentoo Linux | |
# | |
CONFIG_GENTOO_LINUX=y | |
CONFIG_GENTOO_LINUX_UDEV=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM wordpress:4.6.1-php5.6-apache | |
RUN yes | pecl install xdebug \ | |
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.remote_autostart=on" >> /usr/local/etc/php/conf.d/xdebug.ini \ | |
&& echo "xdebug.idekey=bonkers" >> /usr/local/etc/php/conf.d/xdebug.ini |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo passwd pirate | |
sudo apt-get remove -y docker-hypriot docker-compose hypriot-cluster-lab | |
sudo apt-get update && sudo apt-get upgrade -y | |
sudo apt-get install -y nfs-client make | |
echo "10.0.0.4:/var/nfs /var/nfs nfs auto,noatime,nolock,bg,nfsvers=4 0 0" | sudo tee -a /etc/fstab | |
sudo mkdir /var/nfs | |
sudo mount -a | |
sudo fallocate -l 2G /swapfile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "hello world" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------- | |
# Leadbox Meteor deployment script for Azure | |
# by [email protected] | |
# Version: 0.3 | |
# -------------------------- | |
# Please run this script on root folder of your meteor app | |
# --------------------------- | |
# Prerequisites: | |
# --- Visual Studio with C++ installed | |
# --- Node 0.12.7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getAgents() { | |
getIp "nginx" | |
echo "$dockerip www.thecassinagroup.dev" >> /etc/hosts | |
retry=10 | |
while [ true ] | |
do | |
retry=$(expr $retry - 1) | |
if [ "$retry" == "0" ] | |
then | |
echo "Unable to get agent subdomains, this might be a missing or incorrect hosts entry" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
while (count($standby) > 0) { | |
if (count($running) < $threads_per_second - 1) { | |
$item = array_shift($standby); | |
if ($item['attempts'] < $item_attempts) { | |
array_unshift($running, $item); | |
$spawned++; | |
echo "Processing " . ++$this->total_count . ": " . $running[0]['code'] . "\n"; | |
//spawn off a child |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
.lg { | |
background-color: blue; | |
height: 20px; | |
display: inline-block; | |
border: 1px solid black; | |
} | |
.sm { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var items = []; | |
window.inventory = []; | |
window.errors = []; | |
Array.prototype.clean = function(deleteValue) { | |
for (var i = 0; i < this.length; i++) { | |
if (this[i] == deleteValue) { | |
this.splice(i, 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var checkBid = true; | |
// run a function if the bid button is | |
var isButtonEnabled = function(callback) { | |
console.log('checking for new bids'); | |
// if the place bid button is not disabled and we are ok to check a bid | |
if (!$('.place-bid').hasClass('disabled') && checkBid) { | |
// make it so we won't place a bid twice | |
checkBid = false; |