diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`
where XXXXX
is the size of the RAM disk in terms of memory blocks.
Notes:
sudo apt update | |
sudo apt install -y build-essential curl make git vim hub libssl-dev graphviz jq cmake clang pkg-config p7zip terminator gnome-tweaks fonts-firacode protobuf-compiler | |
# intune | |
sudo apt install libpam-pwquality | |
sudo nano /etc/pam.d/common-password | |
# password requisite pam_pwquality.so retry=3 dcredit=-1 ocredit=-1 ucredit=-1 lcredit=-1 minlen=12 | |
curl -sSl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc | |
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb |
#!/bin/sh | |
# Seems to only support RSA keys... | |
ykman piv export-certificate 9a public-cert.pem | |
openssl x509 -in public-cert.pem -noout -pubkey > public-key.pem | |
ssh-keygen -i -m pkcs8 -f ./public-key.pem > id_yubi_9a.pub |
from lxml import html | |
import requests | |
import re | |
import os | |
def createDir(path): | |
if not os.path.exists(path): os.makedirs(path) | |
# Settings | |
iosVersion = "12.1" |
# ssh-keyscan -p 8000 -t rsa rostam.cct.lsu.edu 2>/dev/null | awk '{ print $3 }' | base64 -d | md5sum | awk '{ print $1 }' | fold -w2 | paste -sd':' -
71:5a:1d:bb:1f:1e:fa:e6:34:98:3d:48:f5:ce:9d:68
# ssh-keygen -l -E md5 -f <(ssh-keyscan -p 8000 -t rsa rostam.cct.lsu.edu 2>/dev/null)
2048 MD5:71:5a:1d:bb:1f:1e:fa:e6:34:98:3d:48:f5:ce:9d:68 [rostam.cct.lsu.edu]:8000 (RSA)
We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!
... | |
using namespace winrt::Windows::Foundation; | |
using namespace winrt::Windows::Networking::Sockets; | |
using namespace winrt::Windows::Storage::Streams; | |
using namespace winrt::Windows::Security::Cryptography; | |
using namespace winrt::Windows::Security::Cryptography::Core; | |
StreamSocketListener websocket_; |
#include <string_view> | |
#include <exception> | |
#include <assert.h> | |
using namespace std::literals; | |
struct guid | |
{ | |
uint32_t Data1; | |
uint16_t Data2; |
openssl genrsa -out self-ssl.key
openssl req -new -key self-ssl.key -out self-ssl.csr -config csr.conf
openssl x509 -req -days 365 -in self-ssl.csr -signkey self-ssl.key -out self-ssl.crt -extensions req_ext -extfile csr.conf
Sign from Root CA:
openssl x509 -req -days 365 -extensions req_ext -extfile csr.conf -CA RootCA.crt -CAkey RootCA.key -in self-ssl.csr -out self-ssl.crt
public class ImageEx : Image | |
{ | |
public static readonly BindableProperty TrueAspectProperty = | |
BindableProperty.Create( | |
propertyName: nameof(TrueAspect), | |
returnType: typeof(AspectEx), | |
declaringType: typeof(AspectEx), | |
defaultValue: AspectEx.AspectFit, | |
defaultBindingMode: BindingMode.OneWay, | |
propertyChanged: OnAspectExPropertyChanged); |