I use the latest Puma v1.4.0 from rubygems.
Make sure you have nginx installed with these options:
>/opt/nginx/sbin/nginx -V
nginx version: nginx/1.0.15
built by gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
# If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer! | |
export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ " | |
# This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty! | |
# ~/code/web:beta_directory$ git checkout master | |
# Switched to branch "master" | |
# ~/code/web:master$ git checkout beta_directory | |
# Switched to branch "beta_directory" |
I use the latest Puma v1.4.0 from rubygems.
Make sure you have nginx installed with these options:
>/opt/nginx/sbin/nginx -V
nginx version: nginx/1.0.15
built by gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
I use the latest Puma v1.4.0 from rubygems.
Make sure you have nginx installed with these options:
>/opt/nginx/sbin/nginx -V
nginx version: nginx/1.0.15
built by gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
This gist is replaced by: https://github.com/bcremer/shopware-with-nginx
<? | |
// Gravity Form Hook to SQL Database for Today's Dishes // | |
// the ### in gform_pre_render_### locates the id of your form // | |
add_filter('gform_pre_render_5', 'todays_dishes'); | |
function todays_dishes($form){ | |
foreach($form['fields'] as &$field){ |
This assignment gives us a good understanding about the thought-process and the capabilities of the developer. This doesn’t have to be a rock-solid, highly scalable super fancy production-ready application, but just something that allows us to get an idea of the developer's skills and level.
Try to keep things simple. If frameworks, libraries or databases are needed to write the application, please mention them and the arguments why they were required in the documentation for this assignment.
NOTE: This is a sample code and will only be used for evaluation purposes
Requirements:
<body onLoad="resizeParent();"> | |
<script type="text/javascript"> | |
function resizeParent() { | |
var height = document.getElementsByTagName("html")[0].scrollHeight; | |
window.parent.postMessage(["setIframeHeight", height], "*"); | |
} | |
</script> | |
</body> |
#!/bin/bash | |
## Author: Jose Nilton >> www.linuxpro.com.br | |
## Install ISPConfig 3 on Debian 9 64Bits | |
## ISPConfig3 3 + Nginx + Debian 9 64Bits | |
## VM HD 50GB, swap 2GB, / 20GB, /var/www all | |
## Filesystem ext4 | |
## Run as root | |
## Link: https://www.howtoforge.com/tutorial/perfect-server-debian-jessie-nginx-bind-dovecot-ispconfig-3.1/ |
<?php | |
namespace FinalClass; | |
require_once __DIR__ . '/vendor/autoload.php'; | |
use PHPUnit\Framework\TestCase; | |
final class Foo | |
{ | |
protected $bar; |
#!/bin/bash | |
# letsencrypt-for-pure-ftpd.sh: compares the ssl certficate/key used by pure-ftpd | |
# with the current certificate/key issued by letsencrypt and copy the latter | |
# to the former if they differ. | |
# this can be run as a cronjob to propogate letsencrypt certificate changes | |
# to pure-ftpd | |
PUREFTPD_CERT=/etc/ssl/private/pure-ftpd.pem |