To run Rust binaries:
-
Export
LD_LIBRARY_PATHenv varexport LD_LIBRARY_PATH="$(echo /nix/store/*-extra-utils/lib)"
| npx -p graphqurl gq http://localhost:3000/graphql --introspect > schema.graphql |
| SELECT 'hello' UNION SELECT 'world' EXCEPT SELECT 'world'; |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| // https://github.com/mysql/mysql-workbench/blob/f7a0175471d773ddbac671d9176b13d0c6243637/modules/db.mysql.sqlparser/src/mysql_sql_facade.cpp#L82-L244 | |
| #include <iostream> | |
| #include <vector> | |
| #include <list> | |
| std::string trim_right(const std::string &s, const std::string &t) { | |
| std::string d(s); | |
| std::string::size_type i(d.find_last_not_of(t)); | |
| if (i == std::string::npos) |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
| const { default: MySQLParser, MySQLParserListener } = require('ts-mysql-parser'); | |
| const getParseTree = (ctx) => { | |
| if (ctx._symbol) { | |
| return ctx._symbol.source.stream.data.slice(ctx._symbol.start, ctx._symbol.stop + 1); | |
| } | |
| const node = { | |
| type: null, | |
| children: [], |
It can be difficult to trace network traffic from a Node.js application. Typically, folks will just instrument some logging to check that everything is working as it is supposed to. Unfortunately, sometimes there are too many abstractions or possible race conditions to accurately get a good trace. To get the most objective possible trace of network traffic Wireshark can be used.
Wireshark is a network protocol analyzer that makes it extremely simple to capture and trace network activity from any source on your computer. It also has
| package main | |
| import ( | |
| "context" | |
| "database/sql" | |
| "fmt" | |
| "io" | |
| "log" | |
| "math/rand" | |
| "net/http" |