This file contains hidden or 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
#!/usr/bin/env python | |
# Calculate rough distance of the balloon trip from WSPR data | |
# | |
# Run `pip install maidenhead psycopg2-binary pyproj simplekml` for prereqs | |
# | |
# Simonas Kareiva <[email protected]> | |
import maidenhead as mh | |
import simplekml |
This file contains hidden or 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
alias updike='/usr/bin/uptime | perl -ne "/(\d+) d/;print 8,q(=)x\$1,\"D\n\""' |
This file contains hidden or 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
{ | |
��������������������������ͻ | |
�Simonas Kareiva � | |
� 2000 12 22 6:30 AM � | |
� PinGPonG v0.01 � | |
� questions:[email protected] � | |
��������������������������ͼ | |
} | |
program pingpong; | |
uses Crt, ptcgraph; |
This file contains hidden or 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
#!/usr/bin/env python | |
# Connect to APRS-IS to scan for a specific callsign | |
from datetime import date | |
import aprslib | |
import smtplib | |
import logging | |
callsign_filter = 'LY1BWB-12' |
This file contains hidden or 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
import meshtastic | |
from pubsub import pub | |
def onReceive(packet): | |
print(f"Received: {packet}") | |
if ( packet['hopLimit'] > 0 and "decoded" in packet and | |
packet['decoded']['data']['typ'] == 'CLEAR_TEXT' ): | |
interface.sendText( | |
'SNR ' + str(packet['rxSnr']) + ': ' + packet['decoded']['data']['text']) |
This file contains hidden or 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
; Load colors to the stack | |
LDA #$00 | |
PHA | |
LDA #$08 | |
PHA | |
LDA #$05 | |
PHA | |
LDA #$07 | |
PHA |
This file contains hidden or 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
#!/usr/bin/env python3 | |
import sys | |
import random | |
import string | |
from urllib.parse import quote | |
letters = 'eistmohanrkuwdgvflpjbxcyzq?/.,' | |
numbers = '1234567890' | |
lectures = [3, 3, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2] | |
out = 'vvv ' |
This file contains hidden or 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
provider "openstack" { | |
user_name = "admin" | |
tenant_name = "containers" | |
} | |
data "openstack_networking_floatingip_v2" "fip_jump" { | |
address = "193.219.144.110" | |
} | |
data "openstack_networking_floatingip_v2" "fip_master1" { |
This file contains hidden or 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
#!/bin/bash | |
sed -i 's/GRUB_CMDLINE_LINUX="/GRUB_CMDLINE_LINUX="ipv6.disable=1 /' /etc/default/grub | |
grub2-mkconfig -o /boot/grub2/grub.cfg |
This file contains hidden or 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
#include <sys/ioctl.h> | |
main() { | |
int fd; | |
fd = open("/dev/ttyUSB0",O_RDWR | O_NOCTTY );//Open Serial Port | |
int RTS_flag; | |
RTS_flag = TIOCM_RTS; | |
ioctl(fd,TIOCMBIS,&RTS_flag);//Set RTS pin | |
getchar(); | |
ioctl(fd,TIOCMBIC,&RTS_flag);//Clear RTS pin |