- Upload directory snapshots
- Publish & host static websites on a CDN
- Create code tutorials
- Create & Execute Apps in any of the supported languages
And view it from https://gist.cafe/<gist-id> and anyone you share it with can click on the "Edit" icon to download & open it locally in VS Code or their file manager.
If you don't know what gists are from the get-go then that's where I'd start. Gists are a separate feature of GitHub where you can share code like if it's pastebin or other similar services, but tied to your GitHub account. This enables you to execute code from gists, which can be written in dozens of languages.
I use gist personally from time to time to document things I've had to do, though I wish I did it more often. I keep discovering undocumented ways to resolve software problems.
I also didn't get what it does, just reading the homepage content and viewing the examples. And I know what Github gists are (I suppose, are the just text files?)
The x dotnet tool [1] is just used for publishing (+ downloading) your directory to a gist (and does things like handling binary files + directories + ignores build folders, etc), but you can manually create the Gist yourself from https://gist.github.com + all the language examples are gists you can access from https://gist.github.com/<gist-id>
Unfortunately it's now exceeded the GitHub API quota so Apps are going to start failing to execute until next hour when the servers IP is given a new API quota.
Nice work. Tabbed for further analysis. Where is the Gist code running, say for a console app? Could I use this to securely demo new concepts to long term clients using their privileged data without their in-house IT people raising valid infosec concerns? If so, I could see this being very useful. Is this the early stages of a new ServiceStack offering, or more of an interest driver? Certainly motivated me to click through to learn more about ServiceStack's products. Also tabbed for further analysis.
> Where is the Gist code running, say for a console app?
In a Docker Container under a restricted user.
> Could I use this to securely demo new concepts to long term clients using their privileged data without their in-house IT people raising valid infosec concerns?
Yep! you can download the same Docker Container gist.cafe uses to run a local instance: https://gist.cafe/#local
The code is running in a Docker container under a restricted user which their in-house IT can further isolate by running the local container instance in an isolated server.
> Is this the early stages of a new ServiceStack offering, or more of an interest driver?
Nope something created for fun which we needed to create to host Live examples in our own docs ourselves, which IMO others needing to do something similar would find useful. I basically had to do a rewrite of https://github.com/ServiceStack/Gistlyn which did something similar but was tied to .NET Framework and used App Domains which aren't available in the x-plat .NET 5.0 so as part of the redesign & rewrite to use separate processes it was easy to extend to add support for multiple other languages.
> Certainly motivated me to click through to learn more about ServiceStack's products
Barely-related, but I love the .cafe TLD, I own two of them myself. I know the new TLDs were kinda an unpopular move but honestly some of them do lend a certain connotation to your website/product, since your domain is frequently a key part of your brand. .cafe, I think, makes your product feel casual, approachable, semi-social (it's like one step louder than a library), and trendy. Since, yknow, coffee is always trendy.
Very cool! I maintain a VS Code extension that allows creating, editing and commenting on gists, directly within the editor: https://aka.ms/gistpad. I’d be interested to explore an integration here, since it would be cool to author gists in your existing dev tool, and then share/publish them to gist.cafe.
I also maintain a VS Code extension for building CodePen-like playgrounds, which can either be stored locally, or in gists: https://aka.codeswing. So it feels like there’s some pretty cool opportunities to work together :)
Cool, I have created codekeep to organize and store snippets like gist. its like google keep but for code snippets. , you can tag snippets with labels and organize snippets into folders. running gists is a great idea
BTW, I've been working on building a security framework for .NET web apps (site not yet launched so not linking here) – it comes with several enterprise-grade security mechanisms (like automatic record/property-level permit checks for request data, entity suspension etc.).
We're fully supporting ServiceStack (both .NET Core and Framework).
41 comments
[ 2.5 ms ] story [ 94.1 ms ] threadThe demo would probably work better if not for;
anybody know something similar that doesn't require .NET ? No offense, just not part of that ecosystem (yet).
But .NET 5 is also a quick & non-invasive install on macOS / Linux / Win https://dotnet.microsoft.com/download/dotnet/5.0
[1] https://docs.servicestack.net/dotnet-tool
Would probably cut down on executions by 90%.
In a Docker Container under a restricted user.
> Could I use this to securely demo new concepts to long term clients using their privileged data without their in-house IT people raising valid infosec concerns?
Yep! you can download the same Docker Container gist.cafe uses to run a local instance: https://gist.cafe/#local
The code is running in a Docker container under a restricted user which their in-house IT can further isolate by running the local container instance in an isolated server.
> Is this the early stages of a new ServiceStack offering, or more of an interest driver?
Nope something created for fun which we needed to create to host Live examples in our own docs ourselves, which IMO others needing to do something similar would find useful. I basically had to do a rewrite of https://github.com/ServiceStack/Gistlyn which did something similar but was tied to .NET Framework and used App Domains which aren't available in the x-plat .NET 5.0 so as part of the redesign & rewrite to use separate processes it was easy to extend to add support for multiple other languages.
> Certainly motivated me to click through to learn more about ServiceStack's products
Awesome!
I also maintain a VS Code extension for building CodePen-like playgrounds, which can either be stored locally, or in gists: https://aka.codeswing. So it feels like there’s some pretty cool opportunities to work together :)
An integration with gists and gist.cafe might be something to consider.
BTW, I've been working on building a security framework for .NET web apps (site not yet launched so not linking here) – it comes with several enterprise-grade security mechanisms (like automatic record/property-level permit checks for request data, entity suspension etc.).
We're fully supporting ServiceStack (both .NET Core and Framework).
Would you be open for some sort of collaboration?