python3
and scrapy
(pip install scrapy
)
scrapy runspider -o items.csv -a site="https://yoursite.org" 1spider.py
python3 2format_results.py
#! /usr/bin/env bash | |
# Variables | |
APPENV=local | |
DBHOST=localhost | |
DBNAME=dbname | |
DBUSER=dbuser | |
DBPASSWD=test123 | |
echo -e "\n--- Mkay, installing now... ---\n" |
server { | |
listen 443; | |
server_name example.com; | |
error_log /var/log/nginx/example_com_error.log warn; | |
ssl on; | |
ssl_certificate /etc/nginx/ssl/your.crt; #certificate chains | |
ssl_certificate_key /etc/nginx/ssl/your.key; #private key | |
//This code is to be used with a MIDI controller I recently built. | |
//Pictures and info about the project: http://imgur.com/a/ngEN2 | |
//It's a Teensy LC arduino style microcontroller working inside an old guitar distortion effect foot pedal. | |
//The controller features four main potentiometers to send midi CC values in two different banks that can be changed by an spdt switch | |
//There's also one button to send a midi note and another potentiometer on the right side to send midi CC signals | |
//The code and project are heavily inspired by this awesome video tutorial series: https://youtu.be/JONIZdLZAVM (in German) | |
//The LED pulse effect I found somewhere on the internet |
import struct | |
import io | |
class WAVFile: | |
def __init__(self, filename): | |
self.filename = filename | |
def read(self): | |
with io.open(self.filename, 'rb') as fh: |
# wavfile.py (Enhanced) | |
# Date: 20190213_2328 Joseph Ernest | |
# | |
# URL: https://gist.github.com/josephernest/3f22c5ed5dabf1815f16efa8fa53d476 | |
# Source: scipy/io/wavfile.py | |
# | |
# Added: | |
# * read: also returns bitrate, cue markers + cue marker labels (sorted), loops, pitch | |
# See https://web.archive.org/web/20141226210234/http://www.sonicspot.com/guide/wavefiles.html#labl | |
# * read: 24 bit & 32 bit IEEE files support (inspired from wavio_weckesser.py from Warren Weckesser) |