Skip to content

Instantly share code, notes, and snippets.

View OdinsHat's full-sized avatar
💭
Open to job offers

Doug OdinsHat

💭
Open to job offers
View GitHub Profile
@OdinsHat
OdinsHat / telephone-microdata.html
Created May 2, 2017 16:36
Terlephone number microdata example.
<div itemscope itemtype="http://schema.org/LocalBusiness">
<h1 itemprop="name">Beach Bunny Swimwear</h1>
Phone: <span itemprop="telephone"><a href="tel:+18506484200">
850-648-4200</a></span>
</div>
@OdinsHat
OdinsHat / full-error-installing teensyduino Arch Linux (Aug 2017)
Last active August 26, 2017 14:51
Can't install teensyduino on Arch Linux
```
[...]
Cloning into 'teensy_loader_cli'...
done.
Switched to a new branch 'makepkg'
-> Extracting arduino-1.8.2-linux64.tar.xz with bsdtar
==> Starting build()...
-> Running Teensyduino installer (takes around 50 seconds)
==> ERROR: A failure occurred in build().
Aborting...
SELECT ?item ?dt ?date (COUNT(distinct ?sitelink) as ?count)
WHERE { values ?offsetmin { "1920-02-27T00:00:00"^^xsd:dateTime }. values ?offset0 { "1920-02-17T00:00:00"^^xsd:dateTime }. values ?offsetmax { "1920-02-07T00:00:00"^^xsd:dateTime }.
VALUES ?filmtype {wd:Q11424 wd:Q24862 wd:Q506240 wd:Q336144} .
Bind((NOW() - ?offsetmin) as ?mintime).
Bind((NOW() - ?offsetmax) as ?maxtime).
?item wdt:P31 ?filmtype .
?item p:P577/psv:P577 ?date node .
?date node wikibase:timeValue ?date .
FILTER (?date > "2015-12-31T00:00:00Z"^^xsd:dateTime) ?date node wikibase:timePrecision "11"^^xsd:integer . Bind((?date - ?offset0) as ?datetime ). FILTER ( ?datetime > ?mintime ) . FILTER ( ?datetime < ?maxtime ) . BIND (SUBSTR(Str(?date),1,10) as ?dt) . OPTIONAL { ?sitelink <http://schema.org/about> ?item . } }
GROUP BY ?item ?dt ?date
@OdinsHat
OdinsHat / html_additions.html
Created September 10, 2017 15:48
Basic Recaptcha Implementation in PHP
<!-- Add htis to the <head> of the page -->
<script src='https://www.google.com/recaptcha/api.js'></script>
<!-- Add this to the location of wher eyou want the recaptcha to go -->
<div class="g-recaptcha" data-sitekey="SITEKKEY"></div>
@OdinsHat
OdinsHat / keybase.md
Created September 26, 2017 07:20
My keybase.io proof of ID

Keybase proof

I hereby claim:

  • I am odinshat on github.
  • I am lokisjaguar (https://keybase.io/lokisjaguar) on keybase.
  • I have a public key ASALKCZZw0r5JZiOrb0xPUnOrvGuRpVPw0RFWfBr_iU03go

To claim this, I am signing this object:

@OdinsHat
OdinsHat / web-servers.md
Created November 19, 2017 23:45 — forked from willurd/web-servers.md
Big list of http static server one-liners

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.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@OdinsHat
OdinsHat / setperm.sh
Last active December 8, 2017 10:44
Permissions settings for most frameworks
find ./ -type f -exec chmod 644 {} \;
find ./ -type d -exec chmod 755 {} \;
chown www-data:www-data * -R
@OdinsHat
OdinsHat / README-Template.md
Created July 28, 2018 09:53 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@OdinsHat
OdinsHat / .vimrc
Created January 11, 2019 23:05
.vimrc file for vire to find
set nocompatible
" Powerline configs
let g:powerline_pycmd = 'py3'
set laststatus=2
" Plugin 'python.vim'
" Plugin 'python.vim--Vasiliev'
" Plugin 'pyflakes.vim'
" Plugin 'pydoc.vim'
@OdinsHat
OdinsHat / .gitconfig
Last active September 11, 2022 12:49
[user]
email = [email protected]
name = Doug Bromley
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
[core]
editor = vim