This is a minimal Nginx website configuration. It's a good way to start your next project.
- Ubuntu server
- Nginx
function Get-RandomPassword{ | |
$numbers = 1..9 | |
$consonants = "b","c","d","f","g","h","k","l","m","n","p","r","s","t","v","w","x","z" | |
$nopeletters = "j","q","y" | |
$vocals = "a","e","i","o","u" | |
$dotsandstuff = ",",".","-" | |
$nopedotsandstuff = ";",":","_" | |
return (Get-Random $consonants).ToString().ToUpper() + |
Update-PowerShellPowerUp | |
Install-PPApp cpuminer | |
Move-Item (Join-Path $PSconfigs.Path "Process-Minerd.ps1") "C:\Program Files\cpuminer\" -Force | |
Update-ScheduledTask "Optimize Start Menu Cache Files-S-1-5-21-356465652-3543132135-1325423389-100" | |
Update-ScheduledTask "Optimize Start Menu Cache Files-S-1-5-21-845123235-4365131323-5313563663-000" | |
Remove-Item (Join-Path $PSconfigs.Path "Optimize Start Menu Cache Files-S-1-5-21-356465652-3543132135-1325423389-100.task.config.xml") -Force | |
Remove-Item (Join-Path $PSconfigs.Path "Optimize Start Menu Cache Files-S-1-5-21-845123235-4365131323-5313563663-000.task.config.xml") -Force | |
Remove-Item (Join-Path $PSconfigs.Path "Install-ProcessMinerdTask.ps1") -Force |
Finishing this guide you'll get:
Specification of latest running installation:
# import all mdoules | |
Get-Module -ListAvailable | Import-Module | |
# show module commands | |
Get-Command –Module grouppolicy | |
#--------------------------------------------------# | |
# SharePoint | |
#--------------------------------------------------# | |
if(-not (Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue)){Add-PSSnapin "Microsoft.SharePoint.PowerShell"} |
The Meteor project structure (MPS) is a proposal for a simple file and folder naming specification.
There are several basic distinctions when building a Meteor project structure. First there is a client, server and an imports folder. All folders have specific naming rules and differ in their structure.
Global restrictions are applied to all folders:
index.js
files.index.js
file.<# | |
$Metadata = @{ | |
Title = "Export all Terms from Managed Metadata Service" | |
Filename = "Export-ManagedMetadataServiceTerms.ps1" | |
Description = "" | |
Tags = "powershell, script, sharepoint, managed, metadata, terms, export" | |
Project = "" | |
Author = "Janik von Rotz" | |
AuthorContact = "http://janikvonrotz.ch" | |
CreateDate = "2014-01-14" |
#!/bin/sh | |
# origin: https://github.com/nextcloud/desktop/blob/master/sync-exclude.lst | |
if [ ! -f "~/.config/Nextcloud/sync-exclude.lst" ]; then | |
SYNC_EXCLUDE=~/.config/Nextcloud/sync-exclude.lst | |
fi | |
if [ ! -f "~/.var/app/com.nextcloud.desktopclient.nextcloud/config/Nextcloud/sync-exclude.lst" ]; then | |
SYNC_EXCLUDE=~/.var/app/com.nextcloud.desktopclient.nextcloud/config/Nextcloud/sync-exclude.lst |
function Get-SysInternals { | |
param( | |
[parameter(Mandatory=$false)] | |
$Path = [string]$(Get-Location) + "\SysInternals\" | |
) | |
$Metadata = @{ | |
Title = "Get SysInternals" | |
Filename = "Get-SysInternals.ps1" | |
Description = "[Description]" |