Skip to content

Instantly share code, notes, and snippets.

View tyler-johnson's full-sized avatar

Tyler Johnson tyler-johnson

View GitHub Profile
BEGIN MESSAGE.
IyDvE5vOggS39Dt 1TgocuxIzx8meTr ugtH3jMTH00hvI3 k7fKf9tWJxLyhBF
Ac9Mhvsu3UM0Jwk Yt5qlr4plAPTCKq 6Xr2MZHgg6SXVft nRZlyspUwQMUOa3
971jE0ZSHRb8mLc CQlxkudSYRPuBnN YkhJCHkdcIqqAqQ khbmPjwRbtxQ1Bo
NCkeB8S01v4buXJ bADxZvw2FGlrjeF PCQew8sSTVh227E D.
END MESSAGE.
Verifying my Blockstack ID is secured with the address 1NkAZVnafDrxnh7KYg7bN6RcXgv4uCK5Dk https://explorer.blockstack.org/address/1NkAZVnafDrxnh7KYg7bN6RcXgv4uCK5Dk
@tyler-johnson
tyler-johnson / 0x199eD06793464a30ee3F3B2C6fB17e8dBBBE5d5f
Created October 16, 2017 06:41
0x199eD06793464a30ee3F3B2C6fB17e8dBBBE5d5f
0x199eD06793464a30ee3F3B2C6fB17e8dBBBE5d5f
@tyler-johnson
tyler-johnson / index.js
Last active October 9, 2017 22:22
Pagedip 5.2 Updated IIS Application Files
const pagedip = require('@pagedip/enterprise-edition/cli');
const config = require('./config.json');
pagedip(config);
@tyler-johnson
tyler-johnson / README.md
Last active July 19, 2017 18:38
setup gitlab runner for Ubuntu and Docker

Run this in Ubuntu:

bash -c "$(curl https://gist.githubusercontent.com/tyler-johnson/9edb36105861a3366812717f01e19d99/raw/gitlab-runner-setup.sh)"
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/7.10.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'i',
1 verbose cli '@beneaththeink/pagedip-couchdb-setup',
1 verbose cli '-g',
1 verbose cli '--loglevel',
1 verbose cli 'silly' ]
2 info using [email protected]
3 info using [email protected]
if (window.Selection && !Selection.prototype.extend) {
Selection.prototype.extend = function(el, offset) {
const range = document.createRange();
const anchor = document.createRange();
anchor.setStart(this.anchorNode, this.anchorOffset);
const focus = document.createRange();
focus.setStart(el, offset);
server {
listen 80;
server_name <%= domain.name %>;
location ~* ^/[a-z0-9]+/?$ {
proxy_pass <%= domain.upstream %>;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
{
"__v": 0,
"objectId": "56846e931645f4fa4cd7e06a",
"controlProvider": "NOOP",
"country": "US",
"deleted": false,
"enabled": true,
"phoneNumber": "8881234567"
}
@tyler-johnson
tyler-johnson / run.sh
Created May 31, 2015 21:06
Runs tar+gzip on current directory's files and streams data to s3.
find . -type f -mindepth 1 | awk -v base="./" "{ len=length(base); if (substr(\$1,1,len) == base) print substr(\$1,len+1); else print $1 }" | tar --files-from=- -cvf - | gzip -c | aws s3 cp - s3://bti-static/backup.tgz