This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(non_snake_case)] | |
#![allow(dead_code)] | |
// port of: | |
// Creating and Printing a TypeScript AST | |
// https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#creating-and-printing-a-typescript-ast | |
extern crate typescript_ts as ts; | |
extern crate chakracore; | |
use chakracore::context::ContextGuard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Usage... | |
Vcxsrv [:<display>] [option] | |
:display-number | |
Vcxsrv runs as the given display-number, which defaults to 0. | |
To run multiple instances, use unique display-numbers. | |
-a # default pointer acceleration (factor) | |
-ac disable access control restrictions | |
-audit int set audit trail level |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl run myubuntu --image ubuntu --rm -ti --restart=Never --overrides=' | |
{ | |
"metadata": { | |
"labels": { | |
"diditwork": "itdid" | |
} | |
}, | |
"spec": { | |
"containers": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// some updates for https://rsmitty.github.io/Kubernetes-Events/ | |
// and http://blog.ctaggart.com/2016/09/accessing-kubernetes-api-on-google.html | |
import ( | |
"encoding/base64" | |
"fmt" | |
"log" | |
"net/http" | |
"time" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project> | |
<PropertyGroup> | |
<InstallUrl>https://ctaggart.github.io/minesweeper-rs/</InstallUrl> | |
<ManifestCertificateThumbprint>1A92BF20220B301077205787F406B1BCEE6DA97E</ManifestCertificateThumbprint> | |
</PropertyGroup> | |
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "cmdproxy" | |
version = "0.1.0" | |
authors = ["Cameron Taggart <cameron.taggart@gmail.com>"] | |
edition = "2018" | |
[dependencies] | |
# tokio = { version = "0.2", features = ["macros", "io-std", "io-util", "fs", "process"] } | |
tokio = { version = "0.2", features = ["full"] } | |
bytes = "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod logging; | |
use node::http::{create_server, IncomingMessage, RequestListener, ServerResponse}; | |
use wasm_bindgen::prelude::*; | |
#[wasm_bindgen] | |
pub fn run() { | |
// based on https://nodejs.org/en/docs/guides/getting-started-guide/ | |
let default_port = 3000.; | |
let port = match node::PROCESS.env().get("PORT") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
impl AsRef<OutgoingMessage> for ServerResponse { | |
fn as_ref(&self) -> &OutgoingMessage { | |
self.unchecked_ref() | |
} | |
} | |
impl From<ServerResponse> for OutgoingMessage { | |
fn from(child: ServerResponse) -> Self { | |
child.unchecked_into() | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod logging; | |
use js_sys::Array; | |
use wasm_bindgen::prelude::*; | |
#[wasm_bindgen] | |
pub fn run(argv: &Array) { | |
node::CONSOLE.log_va0(argv); | |
let args: Vec<String> = argv.iter().flat_map(|v| v.as_string()).collect(); | |
log!("args: {:?}", args); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { run } = require('./pkg/node_console_hello_world.js'); | |
run(process.argv); |
NewerOlder