Skip to content

Instantly share code, notes, and snippets.

View chrisk8er's full-sized avatar
💭
I may be slow to respond.

Krestian Weken chrisk8er

💭
I may be slow to respond.
View GitHub Profile
@chrisk8er
chrisk8er / validator.js
Created September 3, 2019 09:22 — forked from msert29/validator.js
A simple validation method to validate given user inputs for address
export default class Delivery extends Component {
state = {
streetName: undefined,
postcode: undefined,
city: undefined
};
constructor(props) {
super(props);
@chrisk8er
chrisk8er / bootstrap-vertical-grid.css
Created April 16, 2019 10:52 — forked from metaist/bootstrap-vertical-grid.css
Bootstrap vertical grid. For laying out full-screen fixed height webapps.
.container-fixed {
bottom: 0;
position: fixed;
left: 0;
right: 0;
top: 0;
}
.container-fixed .col {
height: 100%;
@chrisk8er
chrisk8er / laravellocal.md
Created March 27, 2019 08:51 — forked from hootlex/laravellocal.md
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
FROM httpd:2.4.37
COPY ./public_html /var/www/html
COPY ./apache2.conf /etc/apache2/apache2.conf
@chrisk8er
chrisk8er / app.dockerfile
Created October 27, 2018 08:54
PHP cofiguration file for docker container
FROM php:7.0-apache
RUN apt-get update && apt-get install -y libmcrypt-dev \
mysql-client libmagickwand-dev --no-install-recommends \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& docker-php-ext-install mcrypt pdo_mysql
version: '2'
services:
# The Application
app:
build:
context: ./
dockerfile: app.dockerfile
working_dir: /var/www/html
volumes:
@chrisk8er
chrisk8er / composer.json
Last active October 27, 2018 07:08
laravel composer for specific php version
...
"config": {
"platform": {
"php": "7.0"
},
...
...