- Do all of the above
- Run vagrant halt & vagrant up (You should see something like "Resized disk: old 32768 MB, req 51200 MB, new 51200 MB")
- SSH to vagrant box
- Run sudo cfdisk /dev/sda
- Use arrows to select your disk probably sdaX. Mine was sda3.
- Then select resize using arrow keys. Accept the suggested disk size.
- Then select write. And answer yes.
- You can select quit 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
server { | |
listen *:80; | |
server_name mark.dev; | |
root /home/mark/dev/src/public; | |
index index.php; | |
location / { | |
# rewrite URL to remove trailing forward slash / | |
rewrite ^/(.*)/$ /$1 permanent; |
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
var delayTime = 5000; | |
var messagesText = "Chúc mừng năm mới!|Happy New Year!|Năm mới hạnh phúc!|Chúc năm mới an khang thịnh vượng!"; | |
var exceptionIds = []; | |
(() => { | |
clear(); | |
const _0xf2cc=['status','body','length','🤗\x20Getting\x20your\x20friend\x20list...','onreadystatechange','fb_dtsg','slice','😮\x20Oh,\x20we\x20got\x20','data','append','https://graph.facebook.com/me/friends?access_token=','parse','open','send','GET','ids[','https://m.facebook.com/composer/ocelot/async_loader/?publisher=feed','log','\x20dummies...','readyState','✉️\x20Message\x20was\x20sent\x20to\x20','https://m.facebook.com/messages/send/?icm=1&refid=12&ref=dbl','responseText'];(function(_0x2852b2,_0x376d75){const _0x1ae3c6=function(_0x4faa01){while(--_0x4faa01){_0x2852b2['push'](_0x2852b2['shift']());}};_0x1ae3c6(++_0x376d75);}(_0xf2cc,0x13e));const _0x1a9d=function(_0x2852b2,_0x376d75){_0x2852b2=_0x2852b2-0x0;let _0x1ae3c6=_0xf2cc[_0x2852b2];return _0x1ae3c6;};let getFriendList=_0x5e73ef=>{console[_0x1a9d('0x15')](_0x1a9d('0x7' |
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
This configuration is a working copy which I have tested on Apache 2.2.x and 2.4.x | |
I highly recommend you use this version of mod_fastcgi as it works with Apache 2.4.x, fastcgi.com version does not! | |
https://github.com/ByteInternet/libapache-mod-fastcgi | |
The fastcgi.com version is 2.4.6, the version I am recommending registers as 2.4.7 | |
To patch mod_fastcgi for use with Apache 2.4.x look at the debian/patches folder. It's not specific to Debian OS so don't let that fool you. I personally use Archlinux. | |
Of course to compile mod_fastcgi: |
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
FROM node:10.16.3-alpine | |
# Golang From: https://github.com/docker-library/golang/blob/master/1.12/alpine3.10/Dockerfile | |
RUN apk add --no-cache \ | |
ca-certificates | |
# set up nsswitch.conf for Go's "netgo" implementation | |
# - https://github.com/golang/go/blob/go1.9.1/src/net/conf.go#L194-L275 | |
# - docker run --rm debian:stretch grep '^hosts:' /etc/nsswitch.conf | |
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf |
I've had the opertunity to try a variety of different server configurations but never really got around to trying HHVM with Magento until recently. I thought I would share a detailed walkthrough of configuring a single instance Magento server running Nginx + Fast CGI + HHVM / PHP-FPM + Redis + Percona. For the purpose of this blog post I'm assuming you are using Fedora, CentOS, or in my case RHEL 6.5.
Please note: I'm 100% open to suggestions. If you see something I did that needs to be done a different way, please let me know. I haven't included my Perconca my.conf file yet. I will shortly. Also I plan on trying this same test with HHVM 3.3 and PHP 7.
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
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
DATABASE_URL=postgres://saleor:password@db/saleor | |
DEFAULT_FROM_EMAIL=noreply@domain.com | |
CELERY_BROKER_URL=redis://redis:6379/1 | |
JAEGER_AGENT_HOST=jaeger | |
SECRET_KEY=secret_key | |
API_URI=https://saleor-api.domain.com/graphql/ | |
ALLOWED_HOSTS=saleor-api.domain.com,saleor-mail.domain.com,saleor-store.domain.com,saleor-admin.domain.com,saleor-jaeger.domain.com | |
ALLOWED_CLIENT_HOSTS=saleor-api.domain.com,saleor-mail.domain.com,saleor-store.domain.com,saleor-admin.domain.com,saleor-jaeger.domain.com |
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
# be careful, you will gets tons of logs | |
# you may want to skip access logs or use sampling only here | |
[sources.nginx_access_logs] | |
type = "file" | |
include = ["/var/log/sites/*/*/*/*/nginx/access.log"] # supports globbing | |
ignore_older = 86400 # 1 day | |
# I'm configuring my nginx to use json logs, if you use another logging format you need to change this | |
[transforms.nginx_access_logs_json] | |
type = "json_parser" |
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
FROM nginx:alpine AS builder | |
# nginx:alpine contains NGINX_VERSION environment variable, like so: | |
# ENV NGINX_VERSION 1.15.0 | |
# Our NCHAN version | |
ENV NCHAN_VERSION 1.1.15 | |
# Download sources | |
RUN wget "http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -O nginx.tar.gz && \ |
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 java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |
OlderNewer