SSH into the primary clouds as the cXXXX user, then run the following commands:
> cd www
> sh -c "$(curl https://modx.co/scripts/install.sh)"
> source ~/.profile
// parse through each element in the document | |
// replace hyphens with non-breaking hyphens | |
var elements = document.getElementsByTagName('*'); | |
for (var i = 0; i < elements.length; i++) { | |
var element = elements[i]; | |
// ignore script and style elements | |
if (element.tagName === 'SCRIPT' || element.tagName === 'STYLE') { | |
continue; |
# Run on 2.x MODX | |
SELECT | |
id, | |
type, | |
pagetitle, | |
longtitle, | |
description, | |
alias, | |
link_attributes, |
{ | |
"name" : "gallery", | |
"caption": "Gallery", | |
"category": "Base", | |
"type" : "migx", | |
"input_properties" : { | |
"configs" : "", | |
"formtabs": [{ | |
"caption": "Image", | |
"fields": [{ |
# Alternative for `nvm use` on nvmrc | |
Function nvm-use | |
{ | |
if (Test-Path -Path .\.nvmrc -PathType Leaf) { | |
$version = Get-Content .\.nvmrc -Raw | |
nvm use $version.Trim().ToLower() | |
} | |
} |
#!/bin/bash | |
# This script will whitelist the IP address of the server in Sucuri's firewall. | |
# Variables | |
# The API key for the Sucuri API | |
API_KEY="" | |
# The API secret for the Sucuri API | |
API_SECRET="" |
mxmkjvgsdzfhseightonetwoeight7 | |
3five4s84four9rtbzllggz | |
75sevenzdrpkv1onetwo | |
3q7ctkghhqkpb5four | |
ccxpblrgrjxcgrhjxfmtwonine8eightzzrdn4 | |
6lqjrhbnxxcqlpnmjsthreesixxsxcgqsxmdx7 | |
35llbrhh | |
fivethreejcqpfqmcmvjlmhlbzpxlsmktzkmtmv8p | |
3369eightnine89 | |
onesix4qqnlzdsevennmmrcgkndlsgm3 |
import requests | |
import json | |
import os | |
from pipedream.script_helpers import (steps, export) | |
from datetime import timedelta, datetime | |
from dotenv import load_dotenv | |
load_dotenv() | |
# Zendesk API credentials | |
ZENDESK_SUBDOMAIN = os.getenv("ZENDESK_SUBDOMAIN") |
# Script rewritten for PipeDream.com | |
import requests | |
import datetime | |
import base64 | |
import os | |
# Wakatime API endpoint for getting time entries | |
WAKATIME_API_ENDPOINT = "https://wakatime.com/api/v1/users/current/summaries" | |
# Your Wakatime API Key |
SELECT | |
ID id, | |
'document' type, | |
post_title pagetitle, | |
post_excerpt description, | |
post_name alias, | |
1 published, | |
0 isfolder, | |
REGEXP_REPLACE(post_content, '<!-- (.*) -->', '') content, | |
1 richtext, |