This file contains 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/python | |
from PIL import Image | |
import struct | |
import qrcode | |
import sys | |
if len(sys.argv) == 4: | |
qr_data = sys.argv[1] | |
output_file = sys.argv[2] | |
page_no = sys.argv[3] |
This file contains 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/python3 | |
from sense_hat import * | |
EN_DIRECTION_UP = 'up' | |
EN_DIRECTION_DOWN = 'down' | |
EN_DIRECTION_LEFT = 'left' | |
EN_DIRECTION_RIGHT = 'right' | |
EN_DIRECTION_MIDDLE = 'middle' |
This file contains 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/python3 | |
import sys | |
import os | |
import glob | |
import time | |
import random | |
import datetime | |
from sense_hat import SenseHat | |
This file contains 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/python3 | |
import ephem | |
import picamera | |
import time | |
import datetime as dt | |
from math import degrees, radians, cos, sin, asin, sqrt | |
time_format = "%d/%m/%Y %H:%M:%S" | |
name = "ISS (ZARYA)" |
This file contains 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 | |
if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi | |
apt-get update | |
apt-get install realvnc-vnc-server dnsmasq -y | |
cd /usr/local/share/ | |
wget https://github.com/novnc/noVNC/archive/v1.2.0.zip | |
unzip v1.2.0.zip | |
rm v1.2.0.zip | |
mv noVNC-1.2.0 noVNC | |
cd noVNC |
This file contains 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 | |
echo 0 > /sys/devices/platform/soc/*.usb/usb1/1-1/1-1\:1.0/1-1-port2/power/pm_qos_no_power_off | |
sleep 10 | |
echo 1 > /sys/devices/platform/soc/*.usb/usb1/1-1/1-1\:1.0/1-1-port2/power/pm_qos_no_power_off |
This file contains 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
network={ | |
ssid="ssid" | |
scan_ssid=1 | |
key_mgmt=WPA-EAP | |
group=CCMP TKIP | |
eap=PEAP | |
identity="username" | |
password=hash:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
phase1="peapver=0" | |
phase2="MSCHAPV2" |
This file contains 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
from __future__ import division | |
from pysstv.sstv import SSTV | |
from pysstv.color import PD120 | |
from itertools import islice | |
from PIL import Image | |
from shapely.geometry import Polygon, Point | |
import struct | |
import serial | |
import pyaudio | |
import glob |
This file contains 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/python3 | |
import serial | |
import socket | |
import time | |
import subprocess | |
""" | |
DC0;SQ0000;FA00137100000;MD4;FA00137102450;FA00137102440;FA00137102436;... |
OlderNewer