This file contains hidden or 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
[ | |
{ | |
"AllowedHeaders": [], | |
"AllowedMethods": [ | |
"GET" | |
], | |
"AllowedOrigins": [ | |
"*" | |
], | |
"ExposeHeaders": [] |
This file contains hidden or 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Account Suspended</title> | |
<!-- Fonts --> |
This file contains hidden or 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Allow", | |
"Action": [ | |
"ec2:RevokeSecurityGroupIngress", | |
"ec2:AuthorizeSecurityGroupEgress", | |
"ec2:AuthorizeSecurityGroupIngress", |
This file contains hidden or 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/local/bin/php | |
<?php | |
// AbuseIPDB API v2 Key | |
$api_key = 'xxx'; | |
// AbuseIPDB API v2 Endpoint | |
$api_endpoint = 'https://api.abuseipdb.com/api/v2/'; | |
// AbuseIPDB User ID |
This file contains hidden or 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/local/bin/php | |
<?php | |
// get command line arguments | |
$args = $argv; | |
// AbuseIPDB API Key | |
$api_key = 'xxx'; | |
// your AbuseIPDB User ID |
This file contains hidden or 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
// parameters for ajax calls | |
var items = [ | |
{ 'gender': 'male', 'nat': 'US' }, | |
{ 'gender': 'female', 'nat': 'GB' } | |
]; | |
// function to trigger the ajax call | |
var ajax_request = function(item) { | |
var deferred = $.Deferred(); |
This file contains hidden or 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 "vendor/autoload.php"; | |
use setasign\Fpdi\Fpdi; | |
use setasign\Fpdi\PdfReader; | |
use setasign\FpdiProtection\FpdiProtection; | |
class PasswordProtectPDF | |
{ | |
protected $pdf = null; |
This file contains hidden or 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
# .htaccess file for root WordPress directory | |
# add this line if it's not already present in your .htaccess file | |
ErrorDocument 401 default | |
<Files "wp-login.php"> | |
AuthName "WordPress Admin" | |
AuthUserFile "/path/to/passwd" | |
AuthType Basic | |
require valid-user |
This file contains hidden or 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
# move to home directory | |
cd ~/ | |
# download svn source | |
wget https://archive.apache.org/dist/subversion/subversion-1.7.14.tar.bz2 | |
# extract source | |
tar -xzvf subversion-1.7.14.tar.bz2 | |
# enter extracted directory |
This file contains hidden or 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
<IfModule mod_ssl.c> | |
<VirtualHost *:443> | |
Include conf/vhosts/mydomain.vhost | |
SSLCertificateFile /etc/letsencrypt/live/mydomain.com/fullchain.pem | |
SSLCertificateKeyFile /etc/letsencrypt/live/mydomain.com/privkey.pem | |
Include /etc/letsencrypt/options-ssl-apache.conf | |
</VirtualHost> | |
</IfModule> |
NewerOlder