PhpStorm Tips, ticks and standard setup
- Tips and Tracks for PHPStorm (PHPStorm Tips and Tricks.md)
- Standard setup for PHP projects (Standard.md)
[Unit] | |
Description=ServiceName | |
Documentation=https://example.com/doc.txt | |
After=network-online.target | |
Wants=network-online.target systemd-networkd-wait-online.service | |
[Service] | |
Restart=on-failure | |
PermissionsStartOnly=true | |
User=programusername |
# nginx reverse proxy configuration for hosting two websites on one server | |
# File has to be saved in /etc/nginx/sites-available/website | |
# Then link it and store that in ../sites-enabled | |
# Also this configuration can be used to enable https on a website, Remove the third server {} block. | |
server { | |
# Redirect from http to https | |
listen 80; | |
listen [::]:80 default_server; | |
return 301 https://$host$request_uri; |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
// Name of the struct tag used in examples | |
const tagName = "validate" |
package main | |
/** | |
* @website http://albulescu.ro | |
* @author Cosmin Albulescu <cosmin@albulescu.ro> | |
*/ | |
import ( | |
"bytes" | |
"fmt" |
package controllers | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"mime/multipart" | |
"net/http" | |
"os" | |
"path/filepath" |
With argument | |
"C:\Program Files\Git\git-bash.exe" "--cd=%1" | |
Direct | |
"C:\Program Files\Git\git-bash.exe" "--cd="C:\YOUR\FOLDER\" |