Skip to content

Instantly share code, notes, and snippets.

View andydvsn's full-sized avatar
😎
I may be slow to respond.

Andrew Davison andydvsn

😎
I may be slow to respond.
View GitHub Profile
@andydvsn
andydvsn / DisplayProductID-405b
Created April 23, 2015 09:50
Override a Dell display to become an Oculus Rift DK2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DisplayProductID</key>
<integer>3</integer>
<key>DisplayVendorID</key>
<integer>16082</integer>
<key>IODisplayEDID</key>
<data>
Verifying that +andydvsn is my blockchain ID. https://onename.com/andydvsn

Keybase proof

I hereby claim:

  • I am andydvsn on github.
  • I am andydvsn (https://keybase.io/andydvsn) on keybase.
  • I have a public key whose fingerprint is 91DB 0853 BADA 0664 BB7D 51A4 4614 0E19 8AAB 430B

To claim this, I am signing this object:

@andydvsn
andydvsn / nginx-mydefault
Last active September 4, 2016 00:26
Nginx Default
# We don't do a default. It's either configured, or you get nothing.
server {
listen 80 default_server;
listen [::]:80 default_server;
return 444;
}
@andydvsn
andydvsn / nginx-default
Last active September 4, 2016 00:26
Nginx Original Default
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts to this file
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
server {
listen 80;
listen [::]:80;
server_name YOUR.HOSTNAME.HERE;
root /srv/wiki;
index index.php
client_max_body_size 5m;
client_body_timeout 60;
@andydvsn
andydvsn / nginx-http
Last active October 31, 2016 23:12
Nginx HTTP
server {
listen 80;
listen [::]:80;
server_name YOUR.SERVER.NAME;
root /srv/www;
index index.php index.html index.htm;
location / {
}
@andydvsn
andydvsn / nginx-https
Last active October 31, 2016 23:13
Nginx HTTPS
server {
listen 80;
listen [::]:80;
server_name YOUR.SERVER;
root /srv/www;
location ~ (.well-known) {
# Nothing here - just to prevent the https redirect.
}
location / {
rewrite ^/(.*) https://YOUR.SERVER/$1 permanent;
@andydvsn
andydvsn / nginx-owncloud
Last active October 31, 2016 23:14
Nginx ownCloud
upstream php-handler {
server unix:/var/run/php5-fpm.sock;
}
server {
listen 80;
listen [::]:80;
server_name YOUR.SERVER.NAME;
root /var/www/owncloud;
location ~ (.well-known) {
@andydvsn
andydvsn / lotsoffs.txt
Created October 28, 2017 14:21
Unusual node IDs coming from AlertMe devices.
andys-macpro:andy andy$ ./combi-proofofconcept.py
Discovery Mode Started
Sending Discovery Request #1
Discovered New Device
New Device 00:0d:6f:00:00:c2:f1:5e Fully Associated
Discovered New Device
New Device 00:0d:6f:00:01:a4:90:5a Fully Associated
New Device 00:0d:6f:00:00:c2:f1:5e Fully Associated
Attribute Update [Node ID: 00:0d:6f:00:00:c2:f1:5e Field: manu Value: AlertMe.com]
Attribute Update [Node ID: 00:0d:6f:00:00:c2:f1:5e Field: type Value: SmartPlug]