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
<small> | |
<a | |
href="/calendar" | |
class="float-end text-decoration-none" | |
title="Full calendar" | |
> | |
View full calendar | |
</a> | |
</small> |
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
add_action( 'wp', 'action_cookies' ); | |
function action_cookies() { | |
global $post; | |
// abort if not a page/post | |
if(! $post) | |
{ | |
return; |
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
#!/bin/bash | |
#---------------------------------------- | |
# OPTIONS | |
#---------------------------------------- | |
USER='XXXXXX' | |
PASSWORD='XXXXXX' | |
DAYS_TO_KEEP=7 | |
GZIP=0 | |
BACKUP_PATH='backups/mysql' | |
#---------------------------------------- |
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
FROM php:7.1-apache | |
# Get repository and install wget and vim | |
RUN apt-get update && apt-get install --no-install-recommends -y \ | |
wget \ | |
gnupg \ | |
git \ | |
unzip | |
# Install PHP extensions deps |
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
X-DocuSign-Authentication: {"Username":"YOUR_USER_NAME","Password":"YOUR_PASSWORD","IntegratorKey":"YOUR_INTEGRATOR_KEY"} | |
Content-Type: multipart/form-data; boundary=5cd3320a-5aac-4453-b3a4-cbb52a4cba5d | |
Accept: application/json | |
--5cd3320a-5aac-4453-b3a4-cbb52a4cba5d | |
Content-Type: application/json | |
Content-Disposition: form-data | |
{ | |
"status": "sent", |
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
# Task runs at 11pm every day | |
0 23 * * * curl --silent https://go.pingthis.link/D2C27002-7105-E321-441F-ADFB1D57FB1C/ > /dev/null 2>&1 |
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
curl https://go.pingthis.link/D2C27002-7105-E321-441F-ADFB1D57FB1C/ |
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
#!/bin/sh | |
apt-get -qq update | |
apt-get install -yy gcc | |
cat <<EOF > ghosttest.c | |
/* ghosttest.c: GHOST vulnerability tester */ | |
/* Credit: http://www.openwall.com/lists/oss-security/2015/01/27/9 */ | |
#include <netdb.h> |
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 run_background_process( $file ) | |
{ | |
if ( is_windows() ) | |
{ | |
// create command object | |
$objShell = new COM( 'WScript.Shell' ); | |
// run windows command | |
$objShell->Run( | |
$strCommand = sprintf( 'php %s.php', $file ), |
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 | |
$fp = @fopen( $file_path, 'rb' ); | |
$size = filesize( $file_path ); | |
$length = $size; | |
$start = 0; | |
$end = $size - 1; | |
header( "Accept-Ranges: 0-$length" ); |
NewerOlder