Skip to content

Instantly share code, notes, and snippets.

import base64
from cryptography.hazmat.primitives.asymmetric.x25519 import X25519PrivateKey
private_key = X25519PrivateKey.generate()
public_key = private_key.public_key()
def base64it(the_key):
return base64.urlsafe_b64encode(the_key).decode().rstrip("=")
print("private: ", base64it(private_key.private_bytes_raw()))
http://dfwk.ru/index.php?title=Astronomer
{| class = "wikitable sortable" style="width: 80%"
! scope="col" style="width: 16%;" | Тема
! scope="col" style="width: 16%;" | Перевод
! scope="col" style="width: 33%;" | Описание
! scope="col" style="width: 16%;" | Статья в Википедии
! scope="col" style="width: 9%;" | Категория
! scope="col" style="width: 9%;" | Навык исследователя
|-
|Empirical observation
Beer man missed {{Creatures}} template
tml-orig: {{Creaturelookup/0
|wiki=no
|bone=11
|meat=13
|fat=13
|skull=1
|skin=hide
|eye=2
|lung=2
comp = require("component")
trans = comp.transposer
function sort_chest(side)
local chest_size = trans.getInventorySize(side)
for i = chest_size, 2, -1 do
local item = trans.getStackInSlot(side,i)
if item ~= nil and item.size < item.maxSize then
robot = component.proxy(component.list("robot")())
inv_c = component.proxy(component.list("inventory_controller")())
crafting = component.proxy(component.list("crafting")())
bottom = 0 -- направления
top = 1
back = 2
front = 3
right = 4
left = 5
trans = component.proxy(component.list("transposer")())
--[[
Bottom (bottom), Number: 0 -z
Top (top), Number: 1 +y
Back (back), Number: 2 -z
Front (front), Number: 3 +z
Right (right), Number: 4 -x
Left (left), Number: 5 +x
]]
reactor_side, chest_side = 3, 1
trans = component.proxy(component.list("transposer")())
--[[
Bottom (bottom), Number: 0 -z
Top (top), Number: 1 +y
Back (back), Number: 2 -z
Front (front), Number: 3 +z
Right (right), Number: 4 -x
Left (left), Number: 5 +x
]]
input, centrifuge, nullifier, pile = 1,0,4,2 --стороны
local scan = require("scan")
local comp = require("component")
local serialization = require("serialization")
local tun = comp.tunnel
function main()
local scan_array = scan.scan(-8,-8,-8,16,16,16,3,2.5,3.5,false)
local prepared_array = serialization.serialize(scan_array)
if #prepared_array > tun.maxPacketSize() then
print("#prepared_array > tun.maxPacketSize() NIY")
local event = require("event")
local comp = require("component")
local serialization = require("serialization")
local glasses = comp.glasses
local lastX,lastZ,lastY
local ore_widgets = {}
glasses.removeAll()
function msg_process(_,_,_,_,_, ...)
local type, payload = ...
local comp = require("component")
local geolyzer = comp.geolyzer
--[[
-1.0 корпорода
0.0 воздух, нефть, бамбук, факел
0.4 кактус
0.5 земля, провод ic2
0.6 гравий
1.0 гевея, верстак
1.5 камень(гранит и адчетотам входят в одну группу)