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
| <?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
| 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
| # -------------------------- | |
| # Leadbox Meteor deployment script for Azure | |
| # by kellerman@leadbox.ca | |
| # 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
| 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
| #!/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
| 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
| # | |
| # 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
| #!/bin/bash | |
| # Slack API token | |
| token="YOUR_TOKEN_HERE" | |
| postMessageUrl="https://slack.com/api/chat.postMessage" | |
| defaultChannel="#SOME_DEFAULT_CHANNEL" | |
| # Was last time "Yesterday"? | |
| echo "Yesterday? Or some other day? (Empty for yesterday)" | |
| read lastTime |
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
| using WordPress.Includes; | |
| namespace Example { | |
| class ExampleClass { | |
| public ExampleClass( WpHookManager hooks ) { | |
| hooks.AddAction( "example", Callback, priority: 10, acceptedArgs: 0 ); | |
| } | |
| private async Task<object> Callback(IEnumerable<object> args) { | |
| return true; |