Skip to content

Instantly share code, notes, and snippets.

@and-cesbo
and-cesbo / vscode-settings.json
Last active April 22, 2019 07:26
VisualStudio Code settings
{
"workbench.activityBar.visible": false,
"workbench.statusBar.visible": true,
"workbench.statusBar.feedback.visible": false,
"workbench.startupEditor": "newUntitledFile",
"workbench.editor.showIcons": false,
"editor.fontSize": 16,
"editor.renderWhitespace": "all",
"editor.copyWithSyntaxHighlighting": false,
"editor.find.seedSearchStringFromSelection": false,
@and-cesbo
and-cesbo / auth.lua
Created March 11, 2016 08:00
Astra Authentication for Stalker Middleware (Flussonic mode)
local stalker = parse_url("http://192.168.1.1:88/stalker_portal")
function auth_request(client_id, request, callback)
if not request then
return nil
end
local token = request.query.token or "0"
http_request({
@and-cesbo
and-cesbo / test.lua
Created January 15, 2014 14:01
Astra-4 Example Script. Playing TS-file from the directory
#!/usr/bin/astra
-- astra-4 script
source_path = "/Users/and/ts"
output_addr = "239.255.1.1"
output_port = 1234
playlist = {}