Install the OpenSSL on Debian based systems
sudo apt-get install openssl
#!/usr/bin/env bash | |
# Usage: bash uninstall_vmware.bash | |
remove() { | |
entry="$1" | |
echo -ne "Removing \e[1;34m$entry\e[0m... " | |
sudo rm -rf "$entry" &> /tmp/uninstall-vmware.log | |
if [[ ! -e "$entry" ]]; then | |
echo -e "\e[1;32mOK\e[0m" |
client | |
dev tun | |
remote example.com | |
resolv-retry infinite | |
nobind | |
persist-key | |
persist-tun | |
ca [inline] | |
cert [inline] | |
key [inline] |
param ( | |
[Parameter(Mandatory=$true)][string]$ip, | |
[Parameter(Mandatory=$true)][string]$port | |
) | |
$socket = new-object System.Net.Sockets.TcpListener("$ip", "$port"); | |
if($socket -eq $null){ | |
exit 1 | |
} | |
$socket.start() | |
$client = $socket.AcceptTcpClient() |
param ( | |
[Parameter(Mandatory=$true)][string]$ip, | |
[Parameter(Mandatory=$true)][string]$port | |
) | |
$socket = new-object System.Net.Sockets.TcpClient("$ip", "$port"); | |
if($socket -eq $null){exit 1} | |
$stream = $socket.GetStream(); | |
$writer = new-object System.IO.StreamWriter($stream); | |
$buffer = new-object System.Byte[] 1024; | |
$encoding = new-object System.Text.AsciiEncoding; |
#!/bin/bash -x | |
# | |
# Generates client and server certificates used to enable HTTPS | |
# remote authentication to a Docker daemon. | |
# | |
# See http://docs.docker.com/articles/https/ | |
# | |
# To start the Docker Daemon: | |
# | |
# sudo docker -d \ |
javascript:(function()%7Bvar%20selection%20%3D%20window.getSelection().toString()%3Bif%20(selection)%20%7Bwindow.open('https%3A%2F%2Fstore.steampowered.com%2Faccount%2Fregisterkey%3Fkey%3D'%20%2B%20selection%2C%20'_blank')%3B%7D%20else%20%7Bresult%20%3D%20prompt('Insert%20Steam%20Key')%3Bif(result%20!%3D%20null)%7Bwindow.open('https%3A%2F%2Fstore.steampowered.com%2Faccount%2Fregisterkey%3Fkey%3D'%20%2B%20result%2C%20'_blank')%3B%7D%20else%20%7Bwindow.open('https%3A%2F%2Fstore.steampowered.com%2Faccount%2Fregisterkey'%2C%20'_blank')%3B%7D%7D%7D)() |
# apt install fuse open-vm-tools open-vm-tools-desktop | |
# use /usr/bin/vmware-hgfsclient for display shared folders | |
# as root (uid/gid 0): | |
.host:/vmshared /mnt/vmshared fuse.vmhgfs-fuse allow_root,uid=0,gid=0,auto_unmount,defaults 0 0 | |
# as user (uid/gid 1000): | |
.host:/vmshared /mnt/vmshared fuse.vmhgfs-fuse user,uid=1000,gid=1000,auto_unmount,defaults 0 0 |