These are possible steps to reset a csync2 cluster that has been seriously fubared. This is an apocalyptic approach and should only be used when more surgical fixes (like correcting an individual conflict) aren't workable.
This file contains 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
<html> | |
<head> | |
<style type="text/css"> | |
body { | |
font-family: helvetica, sans-serif; | |
margin: 0; | |
} | |
p { | |
margin: 0 0 1em; | |
} |
This file contains 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 | |
class Foo extends Exception {} | |
class Bar extends Exception {} | |
class Baz extends Exception {} | |
try { | |
throw new Foo(); | |
} catch (Exception $e) { | |
switch (get_class($e)) { | |
case 'Foo': |
This file contains 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 | |
class Example { | |
protected $_defaultItemKey; | |
protected $_items; | |
// BUG: forces a zero-base reindex when default item is added to front of array | |
public function __construct($defaultItem) { | |
// Pretend these are loaded from the database | |
$this->_items = [ |
This file contains 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
javascript:open('https://www.google.com/webhp?#q=set+a+reminder','targetname','height=480,width=980'); |
This file contains 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/sh | |
# Execute git commands passed on command line as whatever user owns the current Git repository. | |
# Script can be substituted 1:1 for git in commands. | |
# Available under the MIT license. | |
sudo -u $(stat -c %U $(git rev-parse --git-dir)) git "$@" |
This file contains 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 | |
# --------------------------------------------------------- | |
# Customizable Settings | |
# --------------------------------------------------------- | |
MOUNT_POINT="${CASE_SAFE_MOUNT_POINT:-${HOME}/casesafe}" | |
VOLUME_PATH="${CASE_SAFE_VOLUME_PATH:-${HOME}/.casesafe.dmg.sparseimage}" | |
VOLUME_NAME="${CASE_SAFE_VOLUME_NAME:-casesafe}" | |
VOLUME_SIZE="${CASE_SAFE_VOLUME_SIZE:-60g}" |
This file contains 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 | |
# Settings | |
SUFFIX=alt | |
MAGERUNCMD=magerun | |
# Sanity Checks | |
type $MAGERUNCMD >/dev/null 2>&1 || { | |
echo "ERROR: This script requires the command '$MAGERUNCMD' to be executable in the current path." | |
exit |
- Credentials for site admin
- Credentials for hosting environment
- Credentials for domain registration & DNS
- Admin access to any site analytics platforms
- If the code is in version control, copy of full repository including metadata (so we can preserve commit history)
- Explanation of how code is currently deployed to the server, including a copy of any scripts used
- License keys & registration information for any platform third-party modules purchased
- Any code or architecture documentation
- List of any known outstanding defects or maintenance improvements needed
PayPal uses various prefixes to distinguish different types of unique IDs in their APIs, but these are not currently documented in a single place. This Gist seeks to bring that information together into a single place. If there is something missing, please reach out through one of the channels on my GitHub profile since GitHub doesn't send notifications on Gist comments.
OlderNewer