Skip to content

Instantly share code, notes, and snippets.

View petabyt's full-sized avatar

Daniel C petabyt

View GitHub Profile
@petabyt
petabyt / _main.py
Created October 21, 2021 14:46
Trading script for ftx.us/ccxt
import ccxt
main_account_api_key = ''
main_account_secret = ''
exchange = ccxt.ftx({
'apiKey': main_account_api_key,
'secret': main_account_secret,
'hostname': 'ftx.us',
'headers': {

Keybase proof

I hereby claim:

  • I am petabyt on github.
  • I am petabyte (https://keybase.io/petabyte) on keybase.
  • I have a public key whose fingerprint is 5EC0 73FF F729 1EE8 88DA 251B 8937 CFD3 6733 8838

To claim this, I am signing this object:

@petabyt
petabyt / README.md
Created November 5, 2021 14:54
Python to Skript

Functions

Python:

def foobar(pl, p):
	send(pl, p)

Skript: An underscore is used before the variable name in order to
reference a local variable.

@petabyt
petabyt / bf.sk
Last active July 12, 2022 16:30
BrainFuck Interpreter in Skript
# bf.sk, GPL3.0 License
# By Daniel C, danielc.dev
# Try to parse out capitalized ASCII
function ascii(char: number) :: text:
if {_char} >= 65:
set {_chars::*} to "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"
return {_chars::%{_char} - 65 + 1%}
return "%{_char}%"
@petabyt
petabyt / skript.yaml
Last active December 5, 2021 18:50
micro editor skript syntax file yaml
# Skript micro yaml
filetype: sk
detect:
filename: "\\.sk$"
rules:
# clashes with execute command...
- identifier: ":"
@petabyt
petabyt / README.md
Created November 7, 2021 16:50
Magic Lantern Repositories/Forks

Magic Lantern Repositories

A list of the different Magic Lantern forks and codebases.

Name Description Link
Unified HG Official repository, containing all 150+ branches https://foss.heptapod.net/magic-lantern/magic-lantern
Simplified Git Simplified Git branch, used for Digic 6+, 5D IV, EOS R, RP https://github.com/reticulatedpines/magiclantern_simplified
Critix 1300D Main 1300D Port, maintained by critix https://bitbucket.org/ccritix/magic-lantern-git/src/234e117aba5a0b0147e9327656dc359d54e9ed04/?at=branches%2F1300D
Unofficial Nightly Magic Lantern Unofficial nightly builds https://github.com/wanghurui/magic-lantern
@petabyt
petabyt / micro.yaml
Last active January 1, 2022 22:27
Micro ARM Assembly
# ARM assembly language
# https://github.com/zyedidia/micro/issues/1562
filetype: arm_asm
detect:
filename: "\\.(S)$"
rules:
## Instructions
REG ADD "hklm\software\policies\microsoft\windows defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
@petabyt
petabyt / arm.yaml
Last active January 19, 2022 22:01
correct micro arm assembly highlighting
# ARM assembly language
filetype: arm_asm
detect:
filename: "\\.(S)$"
rules:
## Instructions
# Load/store instructions
@petabyt
petabyt / README.md
Created December 10, 2021 15:45
JSedit

I made this for editing JS in middle school, since there wasn't any text editor or desktop.

data:text/html, <!-- JS Version 0.1 - Nov 2019 - GNU Public License v3.0 --> <html> <head> <title>JSedit</title> </head> <body style='margin:0px; width: 100%; height: 100%; background: grey;'> <div class='toolbar'> <div class='button' onclick='popup("about")'><b>JSedit</b></div> <div class='button' onclick='preview()'>Exec</div> <div class='button' onclick='exportCode()'>Export</div> </div> <textarea onkeydown="if(event.keyCode===9){var v=this.value,s=this.selectionStart,e=this.selectionEnd;this.value=v.substring(0, s)+'\t'+v.substring(e);this.selectionStart=this.selectionEnd=s+1;return false;}" id='code' class='code' placeholder='Enter text here...'></textarea> <style> .toolbar { width: 100%: height: 35px; background: grey; padding: 1.5px 1.5px;%20 position: absolute; top: 0px; left: 0px; } .button { float: left; margin-right: 2px;%20 border: 2px solid black; width:100px;%20 height:31px; font-size:15px;%20 backgr