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
fastcgi_connect_timeout 60; | |
fastcgi_send_timeout 180; | |
fastcgi_read_timeout 180; | |
fastcgi_buffer_size 128k; | |
fastcgi_buffers 256 16k; | |
fastcgi_busy_buffers_size 256k; | |
fastcgi_temp_file_write_size 0; | |
fastcgi_intercept_errors on; | |
fastcgi_pass unix:/tmp/fpm.sock; |
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
WEBSITE=mywebsite.com | |
SUBJECT_DOWN="$WEBSITE DOWN!" | |
SUBJECT_UP="$WEBSITE ONLINE" | |
EMAILID="[email protected]" | |
STRING=$(curl -A "myshell.co.uk - Website Monitoring Script" -s myshell.co.uk | grep -o "myshell.co.uk") | |
VALUE="myshell.co.uk" | |
LOCKFILE="/tmp/webcheck.lock" | |
if [ "$STRING" != "$VALUE" ] && [ ! -f "$LOCKFILE" ]; then | |
START_TIME=$(date +%s) |
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
// Run these commands in Terminall | |
Stop mongodb service | |
sudo service mongodb stop | |
//Remove mongodb lock file | |
sudo rm /var/lib/mongodb/mongod.lock | |
//Change ownership from root to mongodb path |
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
//Install Macports. | |
//Install aircrack-ng: | |
sudo port install aircrack-ng | |
//Install the latest Xcode, with the Command Line Tools. | |
//Create the following symlink: | |
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport | |
//Figure out which channel you need to sniff: | |
sudo airport -s | |
sudo airport en1 sniff [CHANNEL] |
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
1) Rule | |
Event: on payment completed | |
Action: loop through the order line-items. Each line-item has an action to call the next component with parameters of order and the line-item. | |
2) Component | |
Parameters: order, line-item | |
Condition: data comparison line-item:type is Product (to expose line-item:commerce-product) | |
Action: call next component with parameters of order and line-item:commerce-product | |
3) Component | |
Parameters: order, product | |
Condition: data comparison product:type is Product (to expose the product:field-points-to-add) |
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
#include <iostream> | |
#include <vector> | |
#include <string> | |
#include <fstream> | |
int main(int argc, char ** agrv){ | |
using namepace std; /*Easier*/ | |
char std::vector input_STRUCT = ["S", "T", "O"]; | |
char std::vector input_STRUCT_1 = ["P", " "]; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |