Skip to content

Instantly share code, notes, and snippets.

Marc Neuhaus mneuhaus

Block or report user

Report or block mneuhaus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Makefile
# ----------------------------------------------------------------------#
# Live environment #
# ----------------------------------------------------------------------#
production/host = foo.com
production/user = bar
production/port = 22
production/path = /var/www/foo.com/
define production/shell
ssh $(production/user)@$(production/host) -p$(production/port) 'cd $(production/path) &&$1'
View PimMapping.php
<?php
class ProductMapping extends AbstractMapping {
/**
* Type/Name of the coremedia content
*
* @var string
*/
protected $sourceType = 'pim_product';
View ApiController.php
<?php
class ApiController {
/**
* @Route("/api/search")
*/
public function searchAction(Request $request){
$request->get('value');
...do a search...
}
View AMAZING.php
<?php
class BEAUTIFUL {
public function __call($action, $arguments) {
switch($action) {
case: 'terrificMethod':
return 'build a wall and ' . $arguments[0] . '!';
default:
die('FAKE METHOD');
}
View BrowserWindow.log
{
"constants": {
"activeFieldTrialGroups": [],
"addressFamily": {
"ADDRESS_FAMILY_IPV4": 1,
"ADDRESS_FAMILY_IPV6": 2,
"ADDRESS_FAMILY_UNSPECIFIED": 0
},
"certStatusFlag": {
"AUTHORITY_INVALID": 4,
View foo.php
<?php
$structure = [
'type' => 'Form',
'id' => 'test',
'label' => 'Some form',
'children' => [
'default' => [
'type' => 'Sheet',
'label' => 'Sheet label',
'description' => 'Sheet description',
View foo.sql
SELECT
*,
(
CASE
WHEN title LIKE "%keyword%" AND crdate > 1400000090 THEN 1
WHEN textmodules LIKE "%keyword%" AND crdate > 1400000090 THEN 2
WHEN title LIKE "%keyword%" THEN 3
WHEN textmodules LIKE "%keyword%" THEN 4
ELSE 10
END
View EventRegistration.html
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
{namespace t=Famelo\Template\ViewHelpers}
<f:layout name="Content" />
<f:section name="Configuration">
<flux:form id="event-registration" options="{group: 'forms'}" label="Registrierungsformular für Veranstaltung">
<flux:field.input name="title" label="Veranstaltungsname" required="1" />
<flux:field.text name="introduction" label="Einleitung" rows="3" enableRichText="1" />
<flux:field.text name="information" label="Veranstaltungsinformationen" rows="3" enableRichText="1" />
View proxy.php
<?php
if( ! isset($curl_maxredirs))
$curl_maxredirs = 10;
if( ! isset($curl_timeout))
$curl_timeout = 30;
function sentry_log($message, $logLevel = 'info', $context = array()) {
$sentryUrl = 'http://docker.mia3.com:9000/api/10/store/?sentry_version=7&sentry_client=raven-js%2F3.0.4&sentry_key=80e40c062a184525b2ab66b88f64b4f5&sentry_secret=0394c79e57784c5f841788699c74bf54';
View gist:5f6e477c2955eaf35ddef49a1dba0ed1
npm install -g monaca
->
└─┬ monaca@2.1.3
├── colors@0.6.2
├─┬ cordova@5.4.1
│ ├── ansi@0.3.1
│ ├─┬ cordova-lib@5.4.1
│ │ ├─┬ aliasify@1.9.0
You can’t perform that action at this time.