sudo raspi-config --expand-rootfs && \
sudo su - -c 'echo "CONF_SWAPSIZE=1000" > /etc/dphys-swapfile' && \
sudo reboot
sudo apt-get update && \
sudo apt-get upgrade -y
sudo apt-get install createrepo rsync avahi-daemon -y
This file contains 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
# This file was generated by Chef | |
# Do NOT modify this file by hand. | |
[epel] | |
name=Extra Packages for Enterprise Linux 6 - $basearch | |
enabled=1 | |
failovermethod=priority | |
gpgcheck=1 | |
gpgkey=https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 | |
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch |
This file contains 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
# This file was generated by Chef | |
# Do NOT modify this file by hand. | |
[ius] | |
name=IUS Community Packages for Enterprise Linux 6 - $basearch | |
enabled=1 | |
failovermethod=priority | |
gpgcheck=1 | |
gpgkey=https://dl.iuscommunity.org/pub/ius/IUS-COMMUNITY-GPG-KEY | |
mirrorlist=https://mirrors.iuscommunity.org/mirrorlist/?repo=ius-centos6&arch=$basearch&protocol=http |
This file contains 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
g6Rib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgDhi6xEPq3WRyA97tTX2pXZWIhmdum0lCnIFAwGyE9EoKp3BheWxvYWTFAup7ImJvZHkiOnsia2V5Ijp7ImVsZGVzdF9raWQiOiIwMTIwMGUxOGJhYzQ0M2VhZGQ2NDcyMDNkZWVkNGQ3ZGE5NWQ5NTg4ODY2NzZlOWI0OTQyOWM4MTQwYzA2Yzg0ZjQ0YTBhIiwiaG9zdCI6ImtleWJhc2UuaW8iLCJraWQiOiIwMTIwMGUxOGJhYzQ0M2VhZGQ2NDcyMDNkZWVkNGQ3ZGE5NWQ5NTg4ODY2NzZlOWI0OTQyOWM4MTQwYzA2Yzg0ZjQ0YTBhIiwidWlkIjoiNWQ2MWZiYWUzZGVmMmVhNmEzYjU0ZmZlZDI5OTEzMTkiLCJ1c2VybmFtZSI6ImdzZGV2bWUifSwic2VydmljZSI6eyJuYW1lIjoiZ2l0aHViIiwidXNlcm5hbWUiOiJnc2Rldm1lIn0sInR5cGUiOiJ3ZWJfc2VydmljZV9iaW5kaW5nIiwidmVyc2lvbiI6MX0sImNsaWVudCI6eyJuYW1lIjoia2V5YmFzZS5pbyBnbyBjbGllbnQiLCJ2ZXJzaW9uIjoiMS4wLjEzIn0sImN0aW1lIjoxNDYwOTg2ODQ5LCJleHBpcmVfaW4iOjUwNDU3NjAwMCwibWVya2xlX3Jvb3QiOnsiY3RpbWUiOjE0NjA5ODY3NzgsImhhc2giOiI4M2JjNDI0OTAxZjVkYjFlODRiYTMzNGMyMzIyZTUyYWQ5OTE0OGE4MDJlMGI3NjhiNmYyOWY1NDY3NTcyZTIyODBiOWE3NjUxZmU4NjE2NjQ0ODU4YjExMjI3MTRkNTBhOTlhZmMyZDcyODkyYWU4NjQ3YjBiZWQ1MzI2MmI1ZSIsInNlcW5vIjo0NDU1NjJ9LCJwcmV2IjoiNTUyYTk0YTFlODViYmNiZjEwY2YxNzMxYTM2ODYxYzE4ZjJl |
This file contains 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> | |
<script type="text/javascript" src="https://files.coinmarketcap.com/static/widget/currency.js"></script> | |
<div class="coinmarketcap-currency-widget" data-currency="qtum" data-base="USD" data-secondary="BTC"></div> | |
<div class="coinmarketcap-currency-widget" data-currency="neo" data-base="USD" data-secondary="BTC"></div> | |
<div class="coinmarketcap-currency-widget" data-currency="ripple" data-base="USD" data-secondary="BTC"></div> | |
</html> |
This file contains 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 | |
class CreateOrderController extends Controller | |
{ | |
public function createOrderWithCustomer(array $order) | |
{ | |
// Create the reference here because then we know it for the order and can async everything | |
$customerReference = uuid::uuid4()->toString(); | |
// Validate `$order` |
This file contains 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
// https://www.terraform.io/docs/providers/google/index.html | |
provider "google" { | |
region = "${var.region}" | |
project = "${var.project_name}" | |
} | |
// https://www.terraform.io/docs/providers/google/d/datasource_compute_network.html | |
resource "google_compute_network" "default" { | |
name = "ecom" | |
} |
This file contains 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
variable "name" {} | |
variable "region" { | |
default = "eu-west-1" | |
} | |
variable "vpc_network" { | |
"default" = "10.0.0.0/16" | |
} | |
variable "public_subnets" { |
This file contains 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 | |
if(filter_var($_POST['uid'], FILTER_VALIDATE_INT)){//if integer | |
if((trim($_POST['search']) != '') && ($_POST['uid'] != '') && ($_POST['ip'] != '') && ($_POST['crpyt'] != '') && ($_POST['uid'] != '')){//if they dont equal '' | |
if(($_POST['crpyt'] == md5($_SERVER['REMOTE_ADDR'])) && ($_POST['ip'] == $_SERVER['REMOTE_ADDR'])){//if md5 hash on the users ip is ok still | |
include_once($_SERVER['DOCUMENT_ROOT'].'projects/GamePriceComparison/includes/config.php');//include configuration | |
include_once($root.'includes/preg.php');//includes function & data | |
include_once($root.'includes/sort.php');//includes function sort2d | |
//trim & set to vars | |
$search = trim($_POST['search']);//what the user typed in |
This file contains 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
standard/epel: | |
pkg.installed: | |
- pkgs: | |
- epel-release | |
standard/install: | |
pkg.installed: | |
- pkgs: | |
- yum-cron | |
- deltarpm |