- Running Mac OS X on Apple M1 (arm64)
brew install kubernetes-cli| [ | |
| { | |
| "timestamp": "07/26/2021 10:40:00 AM", | |
| "direction": "short", | |
| "expectedExit": "07/26/2021 11:30:00 AM", | |
| "expectedOpenPrice": 439.59666666666664, | |
| "expectedExitPrice": 440.4116333333333, | |
| "expectedProfitLoss": -407.48333333334585 | |
| }, | |
| { |
| #![no_main] | |
| #![no_std] | |
| use panic_probe as _; | |
| use core::{cell::RefCell, ops::Deref}; | |
| use cortex_m::interrupt::{Mutex, free}; | |
| use cortex_m_rt::entry; | |
| use stm32f4xx_hal::{ | |
| gpio::{Alternate, PA8, PC6}, | |
| pac::{interrupt, Interrupt, Peripherals, TIM1, TIM8}, |
| import WebSocket from 'ws' | |
| const parseWsPacket = (str) => { | |
| const cleanerRgx = /~h~/g | |
| const splitterRgx = /~m~[0-9]{1,}~m~/g | |
| return str | |
| .replace(cleanerRgx, '') | |
| .split(splitterRgx) | |
| .map((p) => { | |
| if (!p) return false |
| <!doctype html> | |
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <script type="module"> | |
| import * as Preact from 'https://unpkg.com/[email protected]/dist/preact.module.js' | |
| import htm from 'https://unpkg.com/[email protected]/dist/htm.module.js' | |
| const html = htm.bind(Preact.createElement) |
| // 1. starting balance: $10000, add $1000 every 7 days | |
| // 2. first trade: buy $1000 worth of SPY on 2021-01-04 at the open price | |
| // 3. all subsequent trades: buy $1000 worth of SPY every 7 days | |
| // 4. include dividend revinesting | |
| // 5. what is account value as of 2021-12-23 using closing price | |
| const assert = require('assert') | |
| const rows = [ | |
| { |
| #/bin/sh | |
| # download from https://dl-cdn.alpinelinux.org/alpine/edge/releases/x86_64/netboot/ | |
| qemu-system-x86_64 \ | |
| -m 512 \ | |
| -kernel ~/Downloads/alpine-edge-x86_64/vmlinuz-lts \ | |
| -initrd ~/Downloads/alpine-edge-x86_64/initramfs-lts \ | |
| -append "console=ttyS0 ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/edge/main/" \ | |
| -nographic |
| #!/bin/sh | |
| # download from https://dl-cdn.alpinelinux.org/alpine/edge/releases/aarch64/netboot/ | |
| qemu-system-aarch64 \ | |
| -M virt,highmem=off \ | |
| -m 512M \ | |
| -cpu host \ | |
| -accel hvf \ | |
| -kernel ~/Downloads/alpine-edge-aarch64/vmlinuz-lts \ | |
| -initrd ~/Downloads/alpine-edge-aarch64/initramfs-lts \ | |
| -append "console=ttyAMA0 ip=dhcp alpine_repo=http://dl-cdn.alpinelinux.org/alpine/edge/main/" \ |
| from ghidra.program.model.data import PointerDataType | |
| def create_pointer(address): | |
| try: | |
| currentProgram.getListing().createData(toAddr(address), PointerDataType()) | |
| except: | |
| pass | |
| functionManager = currentProgram.getFunctionManager() | |
| f = askFile("Give me a file to open", "Go baby go!") |