This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while kubectl delete pod $(kubectl get pods -nkube-system | awk '/kube-/ {print $1;exit}') -nkube-system; do done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "NRWgov/NRWgov", | |
"description": "Drupal 8 for Government (Drupal 8 für die öffentliche Verwaltung)", | |
"type": "project", | |
"license": "GPL-2.0+", | |
"minimum-stability": "dev", | |
"prefer-stable": true, | |
"require-dev": { | |
"drupal/drupal-extension": "^3.2", | |
"behat/mink": "~1.7", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {EventEmitter} from 'fbemitter'; | |
const CHANGE_EVENT = 'change'; | |
export default class Translation extends EventEmitter { | |
constructor(eventEmitter = null, storage = null) { | |
super(); | |
this.eventEmitter = eventEmitter || new EventEmitter(); | |
this.localeStorage = storage || localStorage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// encode(decode) html text into html entity (assuming entity is hex) | |
var HtmlEntity = { | |
decode : function(str) { | |
return str.replace(/&#x([0-9A-F]+);/gi, function(match, dec) { | |
return String.fromCharCode(parseInt(dec, 16)); | |
}); | |
}, | |
encode : function(str) { | |
var buf = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Search: \$this->Session->setFlash(.*)\), 'alert_success'\); # (.*) Denotes a group with any text in the | |
Replace: \$this->flashSuccess$1\)\); # $1 is the back reference to replace the group |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
current_datetime: | |
class: \DateTime | |
arguments: ["now"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
access_control: | |
# Would I need to write such rules for all urls? | |
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, ips: [1.1.1.0/24]} | |
- { path: ^/reset-password, roles: IS_AUTHENTICATED_ANONYMOUSLY, ips: [1.1.1.0/24]} | |
- { path: ^/, roles: IS_AUTHENTICATED_ANONYMOUSLY} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
access_control: | |
- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, ips: [127.0.0.1]} | |
- { path: ^/login, roles: ROLE_NO_ACCESS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Herzlich Willkomen bei Präventionsatlas | Präventionsatlas</title> | |
<link href="/css/bootstrap.css" rel="stylesheet" media="screen"> | |
<link href="/assets/vendor/bootstrap-material-design/dist/css/bootstrap-material-design.css" rel="stylesheet" media="screen"> | |
<link href="/assets/vendor/bootstrap-material-design/dist/css/ripples.css" rel="stylesheet" media="screen"> | |
<link href="/css/jquery-ui-theme/jquery-ui.css" rel="stylesheet" media="screen"> | |
<link href="/assets/vendor/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css" rel="stylesheet" media="screen"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'base.html.twig' %} | |
{% set pageHeader = 'Welcome' %} | |
{% set title = pageHeader %} | |
{% block body %} | |
{% if error %} | |
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div> | |
{% endif %} | |
<form action="{{ path('login') }}" method="post" class="form-horizontal" novalidate="novalidate" accept-charset="utf-8"> | |
<div class="form-group required"> | |
<label for="username" class="col-md-2 control-label">Email:</label> |
NewerOlder