Skip to content

Instantly share code, notes, and snippets.

View 0x46616c6b's full-sized avatar

0x46616c6b 0x46616c6b

  • Dresden
  • 08:34 (UTC +02:00)
View GitHub Profile
@matyix
matyix / Hoya-exception
Created March 17, 2014 09:59
Hoya exception - Application doesn't exist in cache
2014-03-17 10:41:31,833 [AMRM Callback Handler Thread] INFO HoyaAppMaster.yarn - Shutdown Request received
2014-03-17 10:41:31,841 [AMRM Callback Handler Thread] INFO impl.AMRMClientAsyncImpl - Shutdown requested. Stopping callback.
2014-03-17 10:41:32,841 [main] INFO appmaster.HoyaAppMaster - Triggering shutdown of the AM: Shutdown requested from RM
2014-03-17 10:41:32,842 [main] INFO appmaster.HoyaAppMaster - Process has exited with exit code 0 mapped to 0 -ignoring
2014-03-17 10:41:32,843 [main] INFO state.AppState - Releasing 1 containers
2014-03-17 10:41:32,843 [main] INFO appmaster.HoyaAppMaster - Application completed. Signalling finish to RM
2014-03-17 10:41:32,843 [main] INFO appmaster.HoyaAppMaster - Unregistering AM status=FAILED message=Shutdown requested from RM
2014-03-17 10:41:32,855 [main] INFO appmaster.HoyaAppMaster - Failed to unregister application: org.apache.hadoop.yarn.exceptions.InvalidApplicationMasterRequestException: Application doesn't exist in cache appattempt_139504910217
@wowo
wowo / build.xml
Last active October 3, 2015 08:58
<?xml version="1.0" encoding="UTF-8"?>
<project name="Symfony2 project" default="build">
<target name="build" depends="pull, vendors, cache, assetic, assets">
<echo message="Symfony2 project"/>
</target>
<macrodef name="git">
<attribute name="command" />
<attribute name="dir" default="" />
<element name="args" optional="true" />
@trooney
trooney / dev.yml
Last active December 28, 2015 07:49
Ansible | Dev Environment
---
- hosts: all
sudo: True
pre_tasks:
- name: APT | Check cache update time
stat: path=/var/cache/apt
register: apt_cache_stat
- name: APT | Update stale cache
apt: update_cache=yes
id alias url
790669100971515 pegida https://www.facebook.com/pegidaevdresden
507642806040134 siegfried-daebritz https://www.facebook.com/pegida.daebritz
636833049762948 klotzsche-sagt-nein https://www.facebook.com/DRESDEN-Klotzsche-sagt-NEIN-zum-Heim-636833049762948/
1561506014089157 heimatschutz-meissen https://www.facebook.com/Ini.Heimatschutz/
594316897372117 orakel-debakel https://www.facebook.com/OrakelDebakel
880728778665642 widerstand-dresden https://www.facebook.com/Widerstand-Dresden-880728778665642/
603436016461261 nein-zu-johannstadt https://www.facebook.com/NEIN-zur-ZeltstadtContainerdorf-in-Johannstadt-603436016461261/
1701421860086089 freie-kameradschaft-dresden https://www.facebook.com/Freie-Kameradschaft-Dresden-1701421860086089/
1691946287705666 freie-aktivisten-dresden https://www.facebook.com/FreieAktivistenDresden/
@Dynom
Dynom / gist:5866837
Last active December 5, 2017 14:05
Creating ISO 8601-extended in PHP, using DateTime. This includes milliseconds (and if you want, microseconds). Based on the work mentioned here: http://stackoverflow.com/a/4414060/1061927
<?php
// Our input
$time = microtime(true);
// Determining the microsecond fraction
$microSeconds = sprintf("%06d", ($time - floor($time)) * 1000000);
// Creating our DT object
$tz = new DateTimeZone("Etc/UTC"); // NOT using a TZ yields the same result, and is actually quite a bit faster. This serves just as an example.
@everzet
everzet / FeatureContext.php
Created January 26, 2012 16:28
Describing your Symfony2 console commands with BehatBundle
<?php
namespace Acme\DemoBundle\Features\Context;
use Behat\BehatBundle\Context\BehatContext,
Behat\Behat\Context\TranslatedContextInterface,
Behat\Behat\Exception\PendingException;
use Behat\Gherkin\Node\PyStringNode,
Behat\Gherkin\Node\TableNode;
@analytically
analytically / gist:5760207
Created June 11, 2013 20:13
Ansible /etc/network/interfaces template
# {{ ansible_managed }}
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
{% if ansible_interfaces|length > 2 %}
@Rarst
Rarst / deprecated.md
Last active February 21, 2023 11:21
WordPress coding standards configuration for PhpStorm

Now Native

PhpStorm now bundles WordPress coding style natively, starting from version 8.

  1. Go to Project Settings > Code Style > PHP.
  2. Select Set From... (top right of window) > Predefined Style > WordPress.

No longer need to muck with this import! :)

@tPl0ch
tPl0ch / CommandContext.php
Last active August 18, 2023 11:18
A CommandContext for Behat tests of Symfony Console Commands
<?php
namespace MFB\Behat\Subcontext;
use Behat\Gherkin\Node\PyStringNode;
use Behat\MinkExtension\Context\RawMinkContext;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\EventDispatcher\EventDispatcher;
/**
@coderanger
coderanger / README.md
Last active August 18, 2023 18:33
How to patch Ubuntu for Heartbleed

How to patch Ubuntu for Heartbleed

  1. sudo apt-get update
  2. sudo apt-get install -y libssl1.0.0 openssl
  3. openssl version -a and confirm the "built on" date is >= 2014-04-07
  4. sudo lsof -n | grep ssl | grep DEL and restart all listed services.

Repeat #4 until no results are returned.