Skip to content

Instantly share code, notes, and snippets.

View jonasduerto's full-sized avatar

JonásD jonasduerto

View GitHub Profile
@jonasduerto
jonasduerto / class-cloudflare.php
Created January 30, 2025 17:14 — forked from NTShop/class-cloudflare.php
Cloudflare API v4
<?php
/**
* User: Luke Hardiman
* Date: 06/08/2016
* Cloudflare Module for blesta
*
* @author Luke Hardiman, fb.com/lukes.servers
* @copyright Copyright (c) 2016, Luke Hardiman
* @license https://raw.githubusercontent.com/lukesUbuntu/cloudflare-api/master/license
* @link https://github.com/lukesUbuntu | https://fb.com/lukes.servers
@jonasduerto
jonasduerto / iw-lve-gid-fix
Created June 11, 2023 07:26 — forked from asyndesis/iw-lve-gid-fix
InterWorx LVE GID fix
gid=`id -gr iworx`
if [ -e /proc/sys/fs/proc_super_gid ]; then
/bin/grep -q "fs.proc_super_gid=" /etc/sysctl.conf || echo "fs.proc_super_gid=${gid}" >> /etc/sysctl.conf
sysctl -p || :
fi
@jonasduerto
jonasduerto / iw-qmail-clear
Created June 11, 2023 07:25 — forked from asyndesis/iw-qmail-clear
InterWorx Clear qmail queue
cd /var/qmail;service smtp stop;mv queue queue.bad;yum reinstall qmail -y;service smtp start;
@jonasduerto
jonasduerto / iw-install-maldet
Created June 11, 2023 07:25 — forked from asyndesis/iw-install-maldet
InterWorx Maldet Installation
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz;tar -zxvf maldetect-current.tar.gz;rm -rf maldetect-current.tar.gz;
@jonasduerto
jonasduerto / iw-global-perms-fix
Created June 11, 2023 07:25 — forked from asyndesis/iw-global-perms-fix
InterWorx global var perms fix
~iworx/bin/listaccounts.pex --domain | xargs -n1 ~iworx/bin/varpermsfix.pex --siteworx
@jonasduerto
jonasduerto / duplicate-wp-post.php
Created April 18, 2023 20:45
Create a post into and Send via AJAX to another WordPress and insert it
<?php
// This code should be added to functions.php or a custom plugin
/**
* Send post via AJAX to another WordPress and insert it
*/
function cwpai_send_post_to_other_wordpress() {
// Check if it's a post being created
if ( isset( $_POST['post_id'] ) ) {
@jonasduerto
jonasduerto / .htaccess
Created July 26, 2021 17:13 — forked from cabans/.htaccess
.htaccess WordPress securize and optimization
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
@jonasduerto
jonasduerto / windows10activation
Created June 23, 2021 22:12
Activate Windows 10 without Any Activator
1. Open CMD as Administrator
2. Paste the following commands into the Cmd: One by one, follow the order.
cscript slmgr.vbs /ipk "SERIAL NUMBER HERE"
Replace SERIAL NUMBER HER with any of these, according your Windows 10 installation type.
Home/Core TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Home/Core (Country Specific) PVMJN-6DFY6-9CCP6-7BKTT-D3WVR
Home/Core (Single Language) 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
@jonasduerto
jonasduerto / .htaccess
Last active March 15, 2021 15:54 — forked from phillip-boombox/.htaccess
Force SSL in .htaccess for WordPress
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Force SSL
RewriteCond %{HTTPS} off
@jonasduerto
jonasduerto / meta-tags.md
Created November 25, 2020 18:40 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags