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 | |
$changed = false; | |
$hash = "5718fb07bde7a1c585c533d1b720cf8b"; | |
$filename = "index.php"; | |
while(true) { | |
$current_hash = md5(file_get_contents($filename)); | |
if($current_hash != $hash) { | |
if($changed == false) { |
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
ERROR: | |
++++++ | |
2021/07/03 08:20:10 [alert] 8744#8744: setrlimit(RLIMIT_NOFILE, 2165535) failed (1: Operation not permitted) | |
2021/07/03 08:20:10 [alert] 8743#8743: setrlimit(RLIMIT_NOFILE, 2165535) failed (1: Operation not permitted) | |
2021/07/03 08:20:22 [alert] 8814#8814: setrlimit(RLIMIT_NOFILE, 2165535) failed (1: Operation not permitted) | |
2021/07/03 08:20:22 [alert] 8815#8815: setrlimit(RLIMIT_NOFILE, 2165535) failed (1: Operation not permitted) | |
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
Workaround: |
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 | |
/* | |
Author: Vikas Singhal (@vikasprogrammer) | |
Pre-reqs: | |
Create plans on target account with same plan id. | |
Description: | |
It simply copies over the old subscription in source account to new account mapping the customer and plans. It spits out the new sub_id which you can copy to EDD or whatever billing system you are using. | |
It can also cancel plans in the old account. | |
/* |
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
class RetryCCXT { | |
public $ex; | |
public function __construct($ex) { | |
$this->ex = $ex; | |
} | |
public function __call($function, $params) { | |
try { | |
return call_user_func_array([$this->ex, "$function"], $params); |
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
#!/bin/bash -e | |
clear | |
echo "============================================" | |
echo "WordPress Install Script" | |
echo "============================================" | |
echo "Do you need to setup new MySQL database? (y/n)" | |
setupmysql=$1 | |
if [ "$setupmysql" == y ] ; then | |
echo "MySQL Admin User: " | |
mysqluser=$2 |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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
<link rel="import" href="../chart-js/chart-js.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
<link rel="import" href="../../salesforce/mobile-ui-elements/elements/force-ui-app/force-ui-app.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> |