Type | Spec | Notes |
---|---|---|
CPU | 4-core Realtek 8198d | arch: mips (interAptiv, 1, 16, 32r2) |
RAM | 256 MiB | |
Storage | 128 MiB | MTD layout |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import mariadb | |
from os import environ | |
from pathlib import Path | |
from shutil import copyfile | |
LIBRARY_PATH = Path.cwd().joinpath('library') | |
RESOURCES_PATH = Path.cwd().joinpath('resources') | |
EXPORT_PATH = Path.cwd().joinpath('anbernic') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# python -m pip install pyreadpartitions | |
# Update the volume_id to a volume with one or more snapshots you have access to | |
# Run the script! | |
from pyreadpartitions import get_disk_partitions_info | |
def main(): | |
ebs = EbsDirectIO(volume_id='vol-0ec018d77cf9af4dd') | |
print(f''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module MSOnline | |
Connect-MsolService | |
$upn = "[email protected]" | |
Set-MsolUserPrincipalName -UserPrincipalName $upn -NewUserPrincipalName $upn.Replace("geniuscentral","geniuscentral.onmicrosoft") | |
add to | |
https://aad.portal.azure.com/#blade/Microsoft_AAD_IAM/GroupDetailsMenuBlade/Members/groupId/d3992f53-022d-4e63-84a7-0d38b0731011 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requires python3.9 and | |
# pip3.9 install --user requests pyodbc threading | |
# Outputs results.csv | |
import requests | |
import pyodbc | |
import threading | |
import queue | |
from time import sleep |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
WORKDIR /root | |
ADD system.tar.gz /root | |
RUN apk add --update qemu-system-x86_64 qemu-img spice-server qemu-hw-display-qxl | |
EXPOSE 80 | |
EXPOSE 3001 | |
ENTRYPOINT ["qemu-system-x86_64", \ | |
"-m", "512", \ | |
"-drive", "file=/root/system.qcow2", \ | |
"--spice", "disable-ticketing=on,addr=0.0.0.0,port=3001", \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sample deployment command | |
# aws cloudformation deploy --template-file template.yaml --capabilities CAPABILITY_NAMED_IAM --stack-name ws-test --profile dev | |
# sample testing uri | |
# aws cloudformation describe-stacks --query "Stacks[?contains(@.StackName,'ws-test')].Outputs[0][?OutputKey=='WebSocketURI'].OutputValue" --profile dev | ConvertFrom-Json | |
# You can test with the test.html produced by the TestHtmlPage output | |
# or | |
# npm install -g wscat | |
# wscat -c $(aws cloudformation describe-stacks --query "Stacks[?contains(@.StackName,'ws-test')].Outputs[0][?OutputKey=='WebSocketURI'].OutputValue" --profile dev | ConvertFrom-Json) | |
# and paste this test message: | |
# {"action":"message","message":"Hello, world!"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"sync" | |
"sync/atomic" | |
"time" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# escape=` | |
FROM mcr.microsoft.com/windows/servercore:20H2 | |
# Windows Features | |
RUN powershell -Command ` | |
Add-WindowsFeature Web-Server; ` | |
Add-WindowsFeature NET-Framework-45-ASPNET; ` | |
Add-WindowsFeature Web-Asp-Net45; ` | |
Add-WindowsFeature NET-WCF-TCP-Activation45; ` | |
Add-WindowsFeature NET-WCF-HTTP-Activation45; | |
# Chocolatey |
NewerOlder