Skip to content

Instantly share code, notes, and snippets.

@andiraduta
andiraduta / docker_wordpress.md
Created December 24, 2021 19:36 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@andiraduta
andiraduta / gist:7591955
Created November 21, 2013 23:37
Quicklink tool in caz ca site-ul 2Parale este nefunctional
<?php
session_start();
$user_2p = ''; // your 2parale user
$pass_2p = ''; // your 2parale pass
function get_page($link) {
global $user_2p, $pass_2p;
$ch = curl_init($link);
@andiraduta
andiraduta / gist:7493431
Created November 15, 2013 23:25
Ia lista de campanii cu lead-uri din 2Parale (ordonate crescator dupa valoarea lead-ului)
<?php
function recursive_campaigns($api_url, &$campaigns, &$page) {
global $url;
$response = file_get_contents($api_url);
$json_obj = json_decode($response);
if( count($json_obj) > 1 ) {
foreach($json_obj as $obj) {
if( $obj->campaign->default_lead_commission_rate != "" ) {