Skip to content

Instantly share code, notes, and snippets.

@therealkenc
therealkenc / fetch.py
Last active May 27, 2024 05:40
tv fetch events
import http.client
import json
import gzip
import io
import pandas as pd
from urllib.parse import urlencode
# Headers found experimentally to work from a web traffic trace
headers = {
"Accept": "application/json",
import sys
import http.client
import gzip
import io
import pandas as pd
from bs4 import BeautifulSoup
# Define the URL and headers
url = 'www.forexfactory.com'
if len(sys.argv) > 1:
@therealkenc
therealkenc / gist:7073c4a2e9cac380e079708c4ed1721c
Created September 23, 2023 07:32
jni-bind build with typedef long jint
In file included from src/main/c/com_coralblocks_javatocppandback_jni_bind_HelloWorld.cpp:1:
src/main/c/jni_bind_release.h:7749:15: warning: implicit capture of 'this' with a capture default of '=' is deprecated [-Wdeprecated-this-capture]
7749 | (*this)("loadClass", IdClassT::kNameUsingDots);
| ^
src/main/c/jni_bind_release.h:7745:56: note: add an explicit capture of 'this' to capture '*this' by reference
7745 | 0>>::PrimeJClassFromClassLoader([=]() {
| ^
| , this
src/main/c/jni_bind_release.h:507:19: error: static assertion failed due to requirement 'AllUnique_v<void, unsigned char, bool, signed char, short, long, float, long, long long, char, unsigned short, double, std::string, _jstring *, char *, const char *, std::string_view, jni::RefBaseTag<_jstring *>, _jobject *, jni::RefBaseTag<_jobject *>, jni::LoaderTag, jni::Object, jni
[ 0.000000] Linux version 5.10.16.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Apr 2 22:23:49 UTC 2021
[ 0.000000] Command line: initrd=\initrd.img panic=-1 nr_cpus=32 swiotlb=force console=ttyS0,115200 debug pty.legacy_count=0 memmap=4G!64M
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] Linux version 5.10.16.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Apr 2 22:23:49 UTC 2021
[ 0.000000] Command line: initrd=\initrd.img panic=-1 nr_cpus=32 swiotlb=force pty.legacy_count=0
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
HNS objects:
{
"ActivityId":"C402B2DF-8E9B-4AFC-9663-D5CBFADAA776",
"AdditionalParams":{
},
"CurrentEndpointCount":0,
"Extensions":[
{
"Id":"E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A",
[ 0.000000] Linux version 5.10.16.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Apr 2 22:23:49 UTC 2021
[ 0.000000] Command line: initrd=\initrd.img panic=-1 nr_cpus=32 swiotlb=force pty.legacy_count=0
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
5715 execve("./a.out", ["./a.out"], ["SHELL=/bin/bash", "NVM_RC_VERSION=", "WSL_DISTRO_NAME=Ubuntu", "WT_SESSION=ee9ff1ef-0e36-41c3-982f-1e56728f66bc", "NAME=DESKTOP-L23FLLG", "PWD=/home/ken/Devel/6763", "LOGNAME=ken", "HOME=/home/ken", "LANG=C.UTF-8", "WSL_INTEROP=/run/WSL/5163_interop", "LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.j
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
[ 2838.721141] rcu: INFO: rcu_sched detected stalls on CPUs/tasks:
[ 2838.721141] rcu: 1-...!: (3287 GPs behind) idle=74a/1/0x4000000000000002 softirq=320/320 fqs=732
[ 2838.721141] rcu: 2-...!: (1 GPs behind) idle=cfa/1/0x4000000000000000 softirq=869/4545 fqs=732
[ 2838.721141] rcu: 5-...!: (1 GPs behind) idle=ffa/1/0x4000000000000000 softirq=288/288 fqs=732
[ 2838.721141] rcu: 6-...!: (1 GPs behind) idle=48e/1/0x4000000000000000 softirq=475/475 fqs=732
[ 2838.721141] rcu: 8-...!: (1 GPs behind) idle=26e/1/0x4000000000000000 softirq=562/562 fqs=732
[ 2838.721141] rcu: 10-...!: (1 GPs behind) idle=f2a/1/0x4000000000000000 softirq=2795/2796 fqs=732
[ 2838.721141] rcu: 24-...!: (1 GPs behind) idle=31e/0/0x1 softirq=2217/2218 fqs=732
[ 2838.721141] rcu: 26-...!: (1 GPs behind) idle=966/0/0x1 softirq=2421/2421 fqs=732
[ 2838.721141] rcu: (detected by 26, t=1464 jiffies, g=25105, q=1072)