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
| [Unit] | |
| Description=Job that runs the python SimpleHTTPServer daemon | |
| Documentation=man:SimpleHTTPServer(1) | |
| [Service] | |
| Type=simple | |
| WorkingDirectory=/tmp/letsencrypt | |
| ExecStart=/usr/bin/python -m SimpleHTTPServer 80 & | |
| ExecStop=/bin/kill `/bin/ps aux | /bin/grep SimpleHTTPServer | /bin/grep -v grep | /usr/bin/awk '{ print $2 }'` |
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/sh | |
| # The script configures simultaneous AP and Managed Mode Wifi on Raspberry Pi Zero W (should also work on Raspberry Pi 3) | |
| # Usage: curl https://gist.github.com/lukicdarkoo/6b92d182d37d0a10400060d8344f86e4/raw | sh -s WifiSSID WifiPass APSSID APPass | |
| # Licence: GPLv3 | |
| # Author: Darko Lukic <[email protected]> | |
| # Special thanks to: https://albeec13.github.io/2017/09/26/raspberry-pi-zero-w-simultaneous-ap-and-managed-mode-wifi/ | |
| MAC_ADDRESS="$(cat /sys/class/net/wlan0/address)" | |
| CLIENT_SSID="${1}" | |
| CLIENT_PASSPHRASE="${2}" |
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
| 'use strict'; | |
| var TrustManager; | |
| var manager; | |
| Java.perform(function () { | |
| var X509TrustManager = Java.use('javax.net.ssl.X509TrustManager'); | |
| TrustManager = Java.registerClass({ | |
| name: 'com.example.TrustManager', |
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 | |
| apt-get update # update list of available software | |
| apt-get -y install git cmake libusb-1.0-0-dev python python-pip python-dev | |
| apt-get -y install python-scipy python-numpy python-matplotlib | |
| # Remove other RTL-SDR driver, if it is loaded | |
| modprobe -r dvb_usb_rtl28xxu |
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 | |
| # | |
| # RTL FM Receiver - Python based realtime RF signal processing experiment | |
| # @edy555 2016 | |
| # requirement: numpy, scipy, pyaudio, pyrtlsdr | |
| import numpy as np | |
| import scipy.signal | |
| import array | |
| import rtlsdr |
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
| [Unit] | |
| Description=Job that runs the python SimpleHTTPServer daemon | |
| Documentation=man:SimpleHTTPServer(1) | |
| [Service] | |
| Type=simple | |
| WorkingDirectory=/tmp/letsencrypt | |
| ExecStart=/usr/bin/python -m SimpleHTTPServer 80 & | |
| ExecStop=/bin/kill `/bin/ps aux | /bin/grep SimpleHTTPServer | /bin/grep -v grep | /usr/bin/awk '{ print $2 }'` |