- Get into grub menu, edit the normal boot option, add this to the .img line at the end: break=mount
- Wait for shit to load, press enter once to get into initramfs debug term
- make mount path
mkdir /mnt
- Mount your drive
mount /dev/sda1 /mnt
(if your lucky, /dev/sda5. Best bet here is tols /dev/sda*
and try each one in turn) - Figure shit out, maybe use
cat
,more
,grep
or otherwise. Help lists commands - Run a
sed
command umount /mnt
reboot
- profit
from schedule import schedule, run | |
@schedule(hours=1) | |
def my_task(): | |
print "Yolo Swag!" | |
run() |
def convert(id): | |
if len(id) == 17: | |
return int(id[3:]) - 61197960265728 | |
else: | |
return '765' + str(int(x) + 61197960265728) |
import sweg | |
def render_post(post, user): | |
return { | |
"name": post.name, | |
"author": user.username | |
} | |
def render_homepage(): | |
result = [] |
def endpoint(request): | |
# This will enqueue this database query in the background, if anything | |
# uses request.user later, it will hopefully have finished the query, | |
# otherwise it will block on that query | |
request.user = db.later(db.query("SELECT * FROM users WHERE id=?", ( | |
request.cookies.get("user"), ))) |
At some point I might actually post stuff here. Until then, this will just be a boring blog.
Given two nodes, Bob and Amy, Bob initiates a connection and authentication with Amy. | |
Bob sends a packet (id 1) containing json serialized data of: | |
{ | |
"ID": 1, | |
"PublicKey": (Bobs public key), | |
"NetworkHash": A 32 bit string representing the network ID Bob is on, | |
"Token": a 32-bit random integer | |
} |
Clio is an advanced P2P network protocol which represents a completely distributed and decentralized structure. It uses a variety of modern technologies and ideologies such as peer seeding, message passing, and segmented routing to keep a structurally simple and yet robust design. Clio was built with the intention of creating a modern social/sharing network, but was also explicitly designed as a application-agnostic protocol. It was written in Go, using OpenGPG as the encryption and identification layer.
Authentication in Clio is a two step processes with an assumed success structure, avaibile due to the use of encryption for all packets outside of the handshaking process. The following is an example of how two peers (Bob and Lucy) would authenticate with eachother:
Bob attempts to authenticate with Lucy:
HOLY SHIT EVERYTHING IS BLOCKED: | |
First up: python -m trace --trace yoloswag.py | |
Then: http://stackoverflow.com/questions/1032813/dump-stacktraces-of-all-active-threads |