Skip to content

Instantly share code, notes, and snippets.

View gist:320e8034d58551d017939b3fba987d70
#!/usr/bin/env python3
import json
import os
import smtplib
import subprocess
import sys
import time
import xmpp
View stocker.py
#!/usr/bin/python3
import json
import os
import requests
import sys
import yfinance
s = sys.argv[1]
threshold = float(sys.argv[2])
View stocker.py
#!/usr/bin/python3
import json
import os
import requests
import sys
import yfinance
s = sys.argv[1]
threshold = float(sys.argv[2])
View NOK
20180801 - 9257681 vol - 2144410 shorted - 23.1636 % - xxxxxxxxxxxxxxxxxxxxxxx
20180802 - 6994840 vol - 4015548 shorted - 57.4073 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180803 - 2573313 vol - 1650000 shorted - 64.1197 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180806 - 3873116 vol - 2662773 shorted - 68.7501 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180807 - 4920197 vol - 2988243 shorted - 60.7342 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180808 - 2926780 vol - 1571509 shorted - 53.6941 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180809 - 2791380 vol - 1954642 shorted - 70.0242 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180810 - 4235145 vol - 2780932 shorted - 65.6632 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180813 - 2083391 vol - 1281780 shorted - 61.5237 % - xxxxxxx
View AMC
20180801 - 1773041 vol - 1157945 shorted - 65.3084 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180802 - 1183567 vol - 779912 shorted - 65.8950 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180803 - 1200516 vol - 617646 shorted - 51.4484 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180806 - 732065 vol - 534456 shorted - 73.0066 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180807 - 810285 vol - 567587 shorted - 70.0478 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180808 - 966876 vol - 453079 shorted - 46.8601 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180809 - 1663298 vol - 669710 shorted - 40.2640 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180810 - 780358 vol - 400247 shorted - 51.2902 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180813 - 579643 vol - 216156 shorted - 37.2912 % - xxxxxx
View GME
20180801 - 467132 vol - 237675 shorted - 50.8796 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180802 - 402459 vol - 241347 shorted - 59.9681 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180803 - 1040830 vol - 725987 shorted - 69.7508 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180806 - 776460 vol - 508260 shorted - 65.4586 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180807 - 601481 vol - 285931 shorted - 47.5378 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180808 - 770788 vol - 530675 shorted - 68.8484 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180809 - 960008 vol - 613750 shorted - 63.9318 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180810 - 712716 vol - 459583 shorted - 64.4833 % - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
20180813 - 622044 vol - 370474 shor
View sonoff
compiled Sonoff-Tasmota from https://github.com/arendst/Sonoff-Tasmota.git (read directions there) and save the .bin somewhere easy to get to
rip the chip off your arduino, you're going to use that bish as an ftdi adapter
wire it up like this:
arduino sonoff pins
3.3v pin 1
RX pin 2
TX pin 3
View logcat.txt
This file has been truncated, but you can view the full file.
--------- beginning of main
01-01 00:04:07.969 219 219 W auditd : type=2000 audit(0.0:1): initialized
01-01 00:04:09.550 219 219 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
01-01 00:04:09.550 219 219 W auditd : type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
01-01 00:04:11.083 1 1 W init : type=1400 audit(0.0:4): avc: denied { write } for uid=0 name="tracing_on" dev="debugfs" ino=3401 scontext=u:r:init:s0 tcontext=u:object_r:debugfs:s0 tclass=file permissive=0
01-01 00:04:11.365 228 228 I : debuggerd: starting
--------- beginning of system
01-01 00:04:11.406 229 229 I vold : Vold 3.0 (the awakening) firing up
01-01 00:04:11.406 229 229 V vold : Detected support for: exfat ext4 f2fs ntfs vfat
View logcat.txt
--------- beginning of main
01-01 00:02:14.927 221 221 W auditd : type=2000 audit(0.0:1): initialized
01-01 00:02:16.550 221 221 I auditd : type=1403 audit(0.0:2): policy loaded auid=4294967295 ses=4294967295
01-01 00:02:16.550 221 221 W auditd : type=1404 audit(0.0:3): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295
01-01 00:02:18.066 1 1 W init : type=1400 audit(0.0:4): avc: denied { write } for uid=0 name="tracing_on" dev="debugfs" ino=3401 scontext=u:r:init:s0 tcontext=u:object_r:debugfs:s0 tclass=file permissive=0
01-01 00:02:18.348 230 230 I : debuggerd: starting
--------- beginning of system
01-01 00:02:18.392 231 231 I vold : Vold 3.0 (the awakening) firing up
01-01 00:02:18.392 231 231 V vold : Detected support for: exfat ext4 f2fs ntfs vfat
01-01 00:02:18.660 231 236 D vold : e4crypt_init_user0
View -
)]}'
[
{
"id": "LineageOS%2Fandroid_device_samsung_galaxys2-common",
"name": "LineageOS/android_device_samsung_galaxys2-common",
"parent": "PROJECT-Samsung-exynos4",
"state": "ACTIVE",
"web_links": [
{
"name": "GitHub",