Skip to content

Instantly share code, notes, and snippets.

@PEKTOP
PEKTOP / create_swap_1g.sh
Created August 15, 2014 19:57
Create SWAP 1Gb
#!/bin/bash
if [ ! -f /swapfile ]; then
sudo fallocate -l 1G /swapfile
echo -e "\e[32mSWAP file created.\e[39m"
else
echo -e "\e[33mSWAP file already exist.\e[39m"
fi
if ! [[ `swapon -s | grep /swapfile` ]]; then
<?php
$data_json = json_encode(array('one','two','three','four','five','six','seven','eight','nine'));
$data_with_delimiter = "one|two|three|four|five|six|seven|eight|nine";
/*
|------------------------------------------------------------------------------
| Performance test # 1
|------------------------------------------------------------------------------
*/