Skip to content

Instantly share code, notes, and snippets.

@MiLk
MiLk / AdminController.php
Last active August 29, 2015 03:17
CraftaShop fix
<?php
// controller/AdminController.php
function description($action=null) {
$this->loadModel("Configs");
$datas["configs"] = $this->Configs->listed("Presentation");
$datas["messages"] = $this->Configs->listed("Message");
$this->set($datas);
@MiLk
MiLk / .aeriscloud.yml
Last active August 29, 2015 13:58
Simple http server
game_name: echo-env
id: 2
I0417 02:43:52.922135 2018 master.cpp:784] Received registration request from scheduler(1)@172.16.0.180:49120
I0417 02:43:52.922379 2018 master.cpp:802] Registering framework 201404160134-3053457580-5050-1887-0001 at scheduler(1)@172.16.0.180:49120
I0417 02:43:52.923539 2018 hierarchical_allocator_process.hpp:332] Added framework 201404160134-3053457580-5050-1887-0001
I0417 02:43:52.924255 2018 master.cpp:1787] Sending 2 offers to framework 201404160134-3053457580-5050-1887-0001
I0417 02:43:53.262133 2020 master.cpp:2124] Processing reply for offer 201404160134-3053457580-5050-1887-59 on slave 201404160133-3036680364-5050-7214-2 (172.16.0.182) for framework 201404160134-3053457580-5050-1887-0001
I0417 02:43:53.262337 2020 master.hpp:406] Adding task sssp-201404107T024353.123Z-402531b0 with resources cpus(*):0.2; mem(*):256; ports(*):[31000-31000] on slave 201404160133-3036680364-5050-7214-2 (172.16.0.182)
I0417 02:43:53.262433 2020 master.cpp:2248] Launching task sssp-201404107T024353.123Z-402531b0 of
#!/bin/bash
conf_file=
disable_gpg_check=
disablerepo=
enablerepo=
name=
state="present"
changed=0
@MiLk
MiLk / Makefile
Created April 2, 2015 07:19
docker -> marathon
IMAGE_NAME = company/dev
REGISTRY = registry.company.tld
MARATHON_URL = http://marathon.company.tld:8080
.PHONY: build push
build:
docker build -t "${IMAGE_NAME}" .
docker tag \
-f $(shell docker inspect --format='{{.Id}}' ${IMAGE_NAME}) \
ALTER TABLE `arena_team` ADD INDEX ( `captainguid` );
ALTER TABLE `arena_team` ADD FOREIGN KEY ( `captainguid` ) REFERENCES `characters` (`guid`) ON DELETE NO ACTION ON UPDATE NO ACTION;
ALTER TABLE `arena_team_member` ADD FOREIGN KEY ( `arenateamid` ) REFERENCES `arena_team` (`arenateamid`) ON DELETE NO ACTION ON UPDATE NO ACTION ;
ALTER TABLE `arena_team_member` ADD FOREIGN KEY ( `guid` ) REFERENCES `characters` (`guid`) ON DELETE NO ACTION ON UPDATE NO ACTION ;
ALTER TABLE `arena_team_stats` ADD FOREIGN KEY ( `arenateamid` ) REFERENCES `arena_team` (`arenateamid`) ON DELETE NO ACTION ON UPDATE NO ACTION ;
ALTER TABLE `auction` ADD FOREIGN KEY ( `itemguid` ) REFERENCES item_instance` (`guid`) ON DELETE NO ACTION ON UPDATE NO ACTION ;
ALTER TABLE `auction` ADD INDEX ( `itemowner` );
ALTER TABLE `auction` ADD FOREIGN KEY ( `itemowner` ) REFERENCES `characters` (`guid`) ON DELETE NO ACTION ON UPDATE NO ACTION ;
ALTER TABLE `character_action` ADD FOREIGN KEY ( `guid` ) REFERENCES `characte
DELETE FROM `spell_bonus_data` WHERE `entry` IN ( 596, 2060, 2061, 13908, 32546, 10461, 10460, 6372, 6371, 5672);
INSERT INTO `spell_bonus_data`(`entry`,`direct_bonus`,`dot_bonus`,`ap_bonus`,`comments`) VALUES
( 596, 0.4285, 0, 0, 'Priest - Prayer of Healing'),
( 2060, 1.2353, 0, 0, 'Priest - Greater Heal'),
( 2061, 0.6177, 0, 0, 'Priest - Flash Heal'),
(13908, 0.4286, 0, 0, 'Priest - Desperate Prayer'),
(32546, 0.4286, 0, 0, 'Priest - Binding Heal'),
( 5672, 0.0450, 0, 0, 'Shaman - Healing Stream Totem Rank 1'),
( 6371, 0.0450, 0, 0, 'Shaman - Healing Stream Totem Rank 2'),
( 6372, 0.0450, 0, 0, 'Shaman - Healing Stream Totem Rank 3'),
page:
url: /:titre
class: sfDoctrineRoute
options: { model: Page, type: object }
param: { module: page, action: index }
homepage:
url: /
class: sfDoctrineRoute
options: { model: Page, type: object }
# mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building dynmap
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
@MiLk
MiLk / ScriptDev2_2224_to_MaNGOS_one.patch
Created June 21, 2011 19:35
Update ScriptDev2_2224_to_MaNGOS_one.patch
From 119469b62d86cf121adbe835d8ff33ba4f0f8b4b Mon Sep 17 00:00:00 2001
From: MiLk <hello@emilienkenler.com>
Date: Tue, 21 Jun 2011 21:33:12 +0200
Subject: [PATCH] Update TBC-patch
---
include/precompiled.h | 5 +
include/sc_instance.cpp | 22 --
include/sc_instance.h | 3 -
.../shadowfang_keep/shadowfang_keep.cpp | 8 +-