Skip to content

Instantly share code, notes, and snippets.

View kosztkas's full-sized avatar

Sandor Kosztka kosztkas

  • Budapest, Hungary
View GitHub Profile
---
best series:
- Planet Earth 2
- Breaking Bad
- Planet Earth
- Band of Brothers
- Chernobyl
- The Expanse
- Game of thrones
@kosztkas
kosztkas / QuoteParserv2.ps1
Last active December 10, 2018 14:36
Parse XML quotes with UI
Function Get-FileName($initialDirectory)
{
[System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") | Out-Null
$OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog
$OpenFileDialog.initialDirectory = $initialDirectory
$OpenFileDialog.filter = "XML (*.xml)| *.xml"
$OpenFileDialog.ShowDialog() | Out-Null
$OpenFileDialog.filename
}
upstream php-handler {
server 127.0.0.1:9000;
# Depending on your used PHP version
#server unix:/var/run/php5-fpm.sock;
server unix:/var/run/php7-fpm.sock;
}
server {
listen 80;
server_name cloud.example.com;