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 | |
$output = `ls -al`; | |
echo "<pre>$output</pre>"; | |
?> |
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
exec("mysqldump -u user -p passwod database > outputfile.sql 2> error.log"); |
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 | |
require_once(__DIR__.'/../libs/Render.php'); | |
error_reporting(E_ALL); | |
//Initialize and Run Command, with a little trick to avoid certain issues | |
$target='cd ../../your/relative/path && ./CustomScript.sh'; | |
$outbuf=exec($target,$stdoutbuf, $returnbuf); | |
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 | |
/* Don't remove this line. */ | |
require('wp-config.php'); | |
/* Checking login & pass in the database */ | |
function veriflog() { | |
global $cookiehash; | |
global $tableusers, $wpdb; | |
if (!empty($_COOKIE['wordpressuser_' . $cookiehash])) { | |
$user_login = $_COOKIE['wordpressuser_' . $cookiehash]; |
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
<audio controls> | |
<source src="/path/to/example.ogg" type="audio/ogg"> | |
<source src="/path/to/example.mp3" type="audio/mpeg"> | |
Your browser does not support the audio tag. | |
</audio> |
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
function feed_subscribers(){ | |
$feed_url = 'http://feeds.feedburner.com/yourname'; | |
$count = get_transient('feed_count'); | |
if ($count != false) return $count; | |
$count = 0; | |
$data = wp_remote_get('http://feedburner.google.com/api/awareness/1.0/GetFeedData?uri='.$feed_url.''); | |
if (is_wp_error($data)) { | |
return 'error'; | |
}else{ | |
$body = wp_remote_retrieve_body($data); |
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
<? feed_subscribers(); ?> |
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
#!/usr/bin/env sh | |
echo "add lines to .bashrc or .zshrc first" | |
brew update && brew upgrade | |
brew install go | |
brew install git | |
brew install mercurial | |
mkdir $HOME/go |
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
worker_processes 2 | |
worker_connections 1024 | |
server_tokens off; | |
# Timeout Settings | |
client_body_timeout 10; | |
client_header_timeout 10; | |
keepalive_timeout 5 5; | |
send_timeout 10; |
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
server { | |
# This redirects the non-www version of the domain name to the www version | |
server_name domain.com; | |
rewrite ^ $scheme://www.domain.com$request_uri? permanent; | |
} | |
server { | |
server_name www.domain.com; | |
root /var/www/domain/httpdocs; | |
index index.html index.htm index.php; | |
OlderNewer