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 | |
mkdir wordpress-site && cd wordpress-site | |
touch docker-compose.yml | |
cat > docker-compose.yml <<EOL | |
version: "2" | |
services: | |
my-wpdb: |
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 | |
cd wordpress-site | |
cat >> docker-compose.yml <<EOL | |
my-wpcli: | |
image: tatemz/wp-cli | |
volumes_from: | |
- my-wp | |
links: |
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 | |
abstract class Multi_Singleton_Factory extends Singleton_Factory { | |
public static function get_singleton_key( $class, $args ) { | |
// Create a unique key based on instance-specific information (i.e. classname + args) | |
return md5( $class . '_' . serialize( $args ) ); | |
} | |
} |
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
import { encode } from "https://deno.land/std@0.109.0/encoding/base64url.ts"; | |
import { join } from "https://deno.land/std@0.109.0/path/mod.ts"; | |
import fs from "https://deno.land/std@0.109.0/node/fs.ts"; | |
import git from "http://esm.sh/isomorphic-git@1.10.0"; | |
import http from "http://esm.sh/isomorphic-git@1.10.0/http/web"; | |
import { QueryHandler } from "./QueryHandler.ts"; | |
const throwFSError = (e: Error) => { | |
if (e instanceof Deno.errors.AlreadyExists) { | |
throw { ...e, code: "EEXIST" }; |
OlderNewer