Skip to content

Instantly share code, notes, and snippets.

location ~* /wp-login\.php|/wp-admin/.*$ {
set_real_ip_from 173.245.48.0/20;
set_real_ip_from 103.21.244.0/22;
set_real_ip_from 103.22.200.0/22;
set_real_ip_from 103.31.4.0/22;
set_real_ip_from 141.101.64.0/18;
set_real_ip_from 108.162.192.0/18;
set_real_ip_from 190.93.240.0/20;
set_real_ip_from 188.114.96.0/20;
set_real_ip_from 197.234.240.0/22;
- access_log "/opt/bitnami/nginx/logs/access.log";
+ access_log /var/log/nginx_access.log;
+ error_log /var/log/nginx_error.log info;
+ define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/');
+ define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST'] . '/');
- define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
- define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/');
- post_max_size = 40M
+ post_max_size = 10G
- upload_max_filesize = 40M
+ upload_max_filesize = 10G
client_max_body_size 10g;
@ini_set( 'upload_max_filesize' , '10G' );
@ini_set( 'post_max_size', '10G');
@ini_set( 'memory_limit', '256M' );
@ini_set( 'max_execution_time', '300' );
@ini_set( 'max_input_time', '300' );
rpcrawtransaction.cpp:299:77: required from here
/usr/include/boost/variant/get.hpp:178:5: error: invalid application of 'sizeof' to incomplete type 'boost::STATIC_ASSERTION_FAILURE<false>'
BOOST_STATIC_ASSERT_MSG(
^
Makefile:879: recipe for target 'rpcrawtransaction.o' failed
make[3]: *** [rpcrawtransaction.o] Error 1
diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp
index 1039518..b6f0726 100644
--- a/src/rpcrawtransaction.cpp
+++ b/src/rpcrawtransaction.cpp
@@ -296,7 +296,7 @@ Value listunspent(const Array& params, bool fHelp)
CTxDestination address;
if (ExtractDestination(pk, address))
{
- const CScriptID& hash = boost::get<const CScriptID&>(address);
+ const CScriptID& hash = boost::get<CScriptID>(address);
#!/bin/bash
if [ $# -ne 2 ]; then
echo "usege: $0 input_image_path output_image_path"
exit 1
fi
INPUT_PATH=$1
OUTPUT_PATH=$2
#include<algorithm>
#include<iostream>
using namespace std;
int main()
{
int n,a,b;
cin>>n>>a>>b;
int now=0;
for (int i=0; i < n; i++) {
string s;