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 / composer.json
Last active October 27, 2018 07:08
laravel composer for specific php version
...
"config": {
"platform": {
"php": "7.0"
},
...
...
version: '2'
services:
# The Application
app:
build:
context: ./
dockerfile: app.dockerfile
working_dir: /var/www/html
volumes:
@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
FROM httpd:2.4.37
COPY ./public_html /var/www/html
COPY ./apache2.conf /etc/apache2/apache2.conf
@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
@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 / 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 / .block
Created March 19, 2020 03:03 — forked from tvalentius/.block
Provinces in Indonesia
border: no
license: MIT
@chrisk8er
chrisk8er / .htaccess
Last active August 19, 2020 04:38 — forked from alexsasharegan/.htaccess
Apache Config for React Router
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
@chrisk8er
chrisk8er / proxy_for_terminal.md
Created June 22, 2021 03:57 — forked from fearblackcat/proxy_for_terminal.md
Set proxy for terminal on mac

Shadowsocks Proxy

apt-get install python-pip
pip install shadowsocks

sudo ssserver -p 443 -k password -m aes-256-cfb --user nobody -d start