Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
from __future__ import division | |
from numpy.fft import rfft | |
from numpy import argmax, mean, diff, log, nonzero | |
from scipy.signal import blackmanharris, correlate | |
from time import time | |
import sys | |
try: | |
import soundfile as sf | |
except ImportError: | |
from scikits.audiolab import flacread |
Free O'Reilly books and convenient script to just download them.
Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post
How to use:
download.sh
file and put it into a directory where you want the files to be saved.cd
into the directory and make sure that it has executable permissions (chmod +x download.sh
should do it)./download.sh
and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# | |
# Install Wifite2 WiFi pentest tool on RaspberryPi with external WiFi adapter | |
# Tested on [Raspberry Pi 3 Model B] & [Alfa UQ2AWUS036H WiFi adapter] | |
# | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# Install dependencies | |
sudo apt-get update && sudo apt-get install -y zsh git autoconf automake libtool pkg-config libnl-3-dev libnl-genl-3-dev libssl-dev ethtool shtool rfkill zlib1g-dev libpcap-dev libsqlite3-dev libpcre3-dev libhwloc-dev libcmocka-dev python-pip libpq-dev tshark macchanger |
""" | |
An implementation of TOTP as described in https://tools.ietf.org/html/rfc6238#section-4 aka Google Authenticator Style 2-factor Auth | |
""" | |
import base64 | |
import datetime | |
import hashlib | |
import hmac | |
import sys | |
import struct | |
import time |
#!/bin/sh | |
if [ "$#" -eq 1 ]; then stdinmsg=$(cat); fi | |
exec <"$0" || exit; read v; read v; read v; exec /usr/bin/osascript - "$@" "$stdinmsg"; exit | |
-- another way of waiting until an app is running | |
on waitUntilRunning(appname, delaytime) | |
repeat until my appIsRunning(appname) | |
tell application "Messages" to close window 1 | |
delay delaytime | |
end repeat |
// Resources | |
// https://burakkanber.com/blog/physics-in-javascript-car-suspension-part-1-spring-mass-damper/ | |
// https://gafferongames.com/post/spring_physics/ | |
// https://gafferongames.com/post/physics_in_3d/ | |
// http://digitalopus.ca/site/pd-controllers/ | |
// .. Has things about Torque | |
class QuaterionSpring{ | |
constructor( damping=5, stiffness=30 ){ | |
this.velocity = new Float32Array(4); |
{% extends 'admin/master.html' %} | |
{% import 'admin/lib.html' as lib with context %} | |
{% block body %} | |
{% call lib.form_tag() %} | |
{{ lib.render_form_fields(form) }} | |
<input type="submit" /> | |
{% endcall %} | |
{% endblock %} |