Skip to content

Instantly share code, notes, and snippets.

Avatar

Norbert Varga nonoo

View GitHub Profile
@nonoo
nonoo / VSCodeMCTerminalTheme.json
Created Nov 18, 2020
VS Code: Midnight Commander compatible terminal colors
View VSCodeMCTerminalTheme.json
{
"workbench.colorCustomizations": {
"terminal.background":"#000000",
"terminal.foreground":"#c5c5c5",
"terminalCursor.background":"#a5a2a2",
"terminalCursor.foreground":"#cacaca",
"terminal.ansiMagenta":"#ff00bf",
"terminal.ansiBrightMagenta":"#a16a94",
"terminal.ansiBlack":"#000000",
"terminal.ansiBrightBlack":"#555555",
View http-get-on-button-press.groovy
/**
* HTTP GET on button press
*
* Copyright 2018 Norbert Varga <nonoo@nonoo.hu>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@nonoo
nonoo / nweather-gerecse-add.php
Created Apr 26, 2016
PHP script for fetching weather data from OMSZ FTP and sending to the APRS-IS network.
View nweather-gerecse-add.php
#!/usr/bin/php5
<?php
// Puts weather data from OMSZ into the nweather database.
ini_set('display_errors','On');
error_reporting(E_ALL);
define('DB_NAME', 'ha5kdr.hu');
define('DB_USER', 'ha5kdr.hu');
define('DB_PASSWORD', '');
@nonoo
nonoo / .procmailrc
Created Apr 21, 2014
Procmail config and PHP script for sending email source address and subject to given callsigns through APRS-IS.
View .procmailrc
#LOGFILE=/home/nonoo/procmail.log
#VERBOSE=YES
:0
* ^List-ID: <aprs.nonoo.hu>$
| /home/nonoo/bin/mail2aprs.php
:0
* ^List-ID: <aprs.nonoo.hu>$
/dev/null
:0:
! nonoo@nonoo.hu
@nonoo
nonoo / aprslocsend.php
Created Apr 21, 2014
PHP script for sending location APRS message to APRS-IS.
View aprslocsend.php
#!/usr/bin/php5
<?php
$aprs_callsign = '';
$aprs_passcode = 0;
$aprs_altinfeet = 2080;
// W is the WX icon. See http://wa8lmf.net/aprs/APRS_symbols.htm
// Use GPS coordinate format, see http://www.csgnetwork.com/gpscoordconv.html
$aprs_coord = '4740.55N/01829.60EW';
$aprs_comment = 'Gerecse WX - www.ha5kdr.hu';