Skip to content

Instantly share code, notes, and snippets.

@cilf
cilf / Dockerfile
Last active April 29, 2023 16:44
Adminer MongoDB docker image
FROM adminer:4.7.1
# WATCH OUT WHEN UPGRADING, THE SED BELOW MIGHT STOP WORKING
MAINTAINER [email protected]
USER root
RUN apk add autoconf gcc g++ make libffi-dev openssl-dev
RUN pecl install mongodb
RUN echo "extension=mongodb.so" > /usr/local/etc/php/conf.d/docker-php-ext-mongodb.ini
@cilf
cilf / post-receive
Created November 27, 2014 23:17
vps git deploy hook
#!/bin/sh
#and don't forget to make this file executable chmod +x post-receive
# set up
GIT_REPO=~/prod.git
PROJECT_DIR=~/prod
WILDFLY_HOME=/opt/wildfly
USER="admin"
PASSWORD="***"
@cilf
cilf / wildfly-install.sh
Last active May 26, 2022 19:11 — forked from sukharevd/wildfly-install.sh
Install Wildfly 8.2.0.Final @ CentOS 7
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 8.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Marek Polcar, Dmitriy Sukharev
#date :20140601
#usage :/bin/bash wildfly-install.sh
WILDFLY_VERSION=8.2.0.Final
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION
@cilf
cilf / how-to-utep-sso.php
Last active December 17, 2015 03:48
Example of how to use UTEP Single Sign On Service in PHP.
<?php
/**
* Example of how to use UTEP Single Sign On Service.
*
* The only restriction for this to use is that the application
* must run under .utep.edu domain.
* (UTEP SSO page sets cookie which is valid only for .utep.edu)
*
* This code is published under WTFPL.

Nette PHP Framework

Why would you even consider looking into $this PHP framework?

Because there's no other like Nette!


Have a look at this

Two-way routing

You start working on a project. Even in these early stages you should know how the URLs going to look like because you simply need to put something in that href.

Not with Nette!