Skip to content

Instantly share code, notes, and snippets.

View klausi's full-sized avatar
🤓
<script>alert('XSS');</script>

Klaus Purer klausi

🤓
<script>alert('XSS');</script>
View GitHub Profile
test
<?xml version="1.0" encoding="UTF-8" ?>
<!--
This is the Solr schema file. This file should be named "schema.xml" and
should be in the conf directory under the solr home
(i.e. ./solr/solr-conf/schema.xml by default)
or located where the classloader for the Solr webapp can find it.
For more information, on how to customize this file, please see
http://wiki.apache.org/solr/SchemaXml
@klausi
klausi / drupal-full-decoupled.md
Last active February 28, 2019 10:26
Fully decoupled Drupal todo list

Git repository setup

https://github.com/drupal-graphql/drupal-decoupled-app might be useful.

  • We want frontend (React) and backend (Drupal) in one repository to have pull requests that can change both at a time.
  • Add a "frontend" folder for React
  • PHP vendor folder is committed (no composer runs on deployment)

URL domain setup

We need to run 2 domains:

@klausi
klausi / main.rs
Created February 24, 2018 13:31
Hyper tk-listen multi-threaded echo
extern crate futures;
extern crate hyper;
extern crate num_cpus;
extern crate tk_listen;
extern crate tokio_core;
use futures::Stream;
use hyper::header::{ContentLength, ContentType};
use hyper::server::{service_fn, Http, Response};
use std::time::Duration;
@klausi
klausi / main.rs
Created February 18, 2018 20:58
Resilient Rust echo server
extern crate futures;
extern crate hyper;
extern crate num_cpus;
extern crate service_fn;
extern crate tokio_core;
use std::io;
use std::net::{self, SocketAddr};
use std::thread;
use std::time;
#!/bin/bash
export SIMPLETEST_DB=mysql://drupal-8:drupal-8@localhost/drupal-8
export SIMPLETEST_BASE_URL=http://drupal-8.localhost
cd ../../core
../vendor/bin/phpunit ../modules/rules/$1 --verbose --debug --stop-on-failure