Download the windows image you want.
AWS vmimport supported versions: Microsoft Windows 10 (Professional, Enterprise, Education) (US English) (64-bit only)
So Home wont work.
FROM debian:buster | |
ENV SHELL=/bin/bash | |
RUN apt-get update -y && apt-get install -y \ | |
bash-completion \ | |
build-essential \ | |
cmake \ | |
ctags \ | |
curl \ | |
git \ | |
git-extras \ |
F=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks | |
for d in $(ls -d $F/*.framework); | |
do | |
sudo ln -s $d /Library/Frameworks/; | |
done | |
for d in $(ls -d $F/ApplicationServices.framework/Versions/A/Frameworks/*.framework); | |
do | |
sudo ln -s $d /Library/Frameworks/; |
# general settings | |
Set-PSReadlineOption -EditMode Emacs | |
function Prompt | |
{ | |
$identity = [Security.Principal.WindowsIdentity]::GetCurrent() | |
$principal = [Security.Principal.WindowsPrincipal] $identity | |
if ($principal.IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
Write-Host "$(Get-Location)" -NoNewLine -ForegroundColor Red | |
return " # " |
I recently happened upon a very interesting implementation of popen()
(different API, same idea) called popen-noshell using clone(2)
, and so I opened an issue requesting use of vfork(2)
or posix_spawn()
for portability. It turns out that on Linux there's an important advantage to using clone(2)
. I think I should capture the things I wrote there in a better place. A gist, a blog, whatever.
This is not a paper. I assume reader familiarity with
fork()
in particular and Unix in general, though, of course, I link to relevant wiki pages, so if the unfamiliar reader is willing to go down the rabbit hole, they should be able to come ou
#!/bin/bash | |
modprobe -r ec_sys | |
modprobe ec_sys write_support=1 | |
on="\x8a" | |
off="\x0a" | |
led(){ | |
echo -n -e $1 | dd of="/sys/kernel/debug/ec/ec0/io" bs=1 seek=12 count=1 conv=notrunc 2> /dev/null |
#include <iostream> | |
#include <openssl/aes.h> | |
#include <openssl/evp.h> | |
#include <openssl/rsa.h> | |
#include <openssl/pem.h> | |
#include <openssl/ssl.h> | |
#include <openssl/bio.h> | |
#include <openssl/err.h> | |
#include <assert.h> |
package main | |
import ( | |
"log" | |
"syscall" | |
"unsafe" | |
) | |
var ( | |
kernel32 = syscall.NewLazyDLL("kernel32.dll") |
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### |