Switch to the Python version you want to use:
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>exe</OutputType> | |
<TargetFrameworks>net472;net5.0-windows</TargetFrameworks> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="System.IO.Pipes.AccessControl" Version="5.0.0" /> | |
</ItemGroup> |
# Installing | |
qemu-system-x86_64 -bios /usr/share/ovmf/ovmf_x64.bin -enable-kvm -cpu host -smp 4 -m 2048 -cdrom ~/Downloads/Win10_English_x64.iso -net nic,model=virtio -net user -drive file=~/vm/win10.hd.img.raw,format=raw,if=virtio -vga qxl -drive file=~/Downloads/virtio-win-0.1.105.iso,index=1,media=cdrom | |
# Running | |
qemu-system-x86_64 -bios /usr/share/ovmf/ovmf_x64.bin -enable-kvm -cpu host -smp 4 -m 4096 -net nic,model=virtio -net user -drive file=~/vm/win10.hd.img.raw,format=raw,if=virtio -vga qxl -usbdevice tablet -rtc base=utc |
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Creates auto scaling Elastic Search Cluster", | |
"Parameters" : { | |
"InstanceType" : { | |
"Description" : "Elastic Search node instance type", | |
"Type" : "String", | |
"Default" : "t2.small", |
# first enable telnet, and connect | |
# then you will get a '>' prompt where you want to run the following commands | |
sh | |
pidstat -l -C pppd | |
# see -u (username) and -p (password) in the output |
This is code that was born while working on https://stackoverflow.com/questions/34504970/non-blocking-read-on-os-pipe-on-windows
It consists of ospipen.py
module with a sigle function:
def pipe_no_wait(pipefd):
""" pipefd is a integer as returned by os.pipe """
ossub.py
that tests the concept on subprocess.PIPE
, and Go program for that subprocess.
#!/bin/vbash | |
# If IPv6 is working - exit. | |
/bin/ping6 -c 2 -n google.com > /dev/null | |
if [ $? == 0 ]; then | |
echo "IPv6 working." | |
exit 0; | |
fi | |
# If we have no working IPv4 connection - exit. |
dash_id=xxxx | |
api_key=xxx | |
app_key=xxx | |
# 1. export | |
curl -X GET "https://app.datadoghq.com/api/v1/dash/${dash_id}?api_key=${api_key}&application_key=${app_key}" > dash.json | |
# 2. edit dash.json | |
move "graphs", "title", "description" up one level in the json hierarchy, from being beneath "dash" to being at the same level |
https://raw.github.com/wiki/user/repo/page.md?login=login&token=token |