This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
from fabric.api import cd, env, task, run | |
from fabric.contrib.project import rsync_project | |
from fabric.utils import puts | |
env.hosts = ['127.0.0.1'] | |
env.user = 'serverpilot' | |
env.app_dir = '~/apps/laravel/' | |
env.releases_dir = '~/.releases/laravel' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import yaml | |
from ansible_vault.api import Vault | |
from fabric.api import env, execute, get, local, put, run, task | |
env.user = 'root' | |
env.now = datetime.datetime.now().strftime('%Y-%m-%dT%H-%M-%S') | |
env.roledefs = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
def encode(secret): | |
binary = bin(int.from_bytes(secret.encode(), 'big')) | |
return binary[2:].replace('0', '❤️').replace('1', '💜') | |
def decode(code): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import WordPress from 'wpcom'; | |
import { css } from 'glamor' | |
import React from 'react'; | |
let PostStyle = css({ | |
borderBottomColor: '#ccc', | |
borderBottomStyle: 'solid', | |
borderBottomWidth: '1px', | |
margin: '1em 0', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head><title>Fuzzy Search</title> | |
<script id="algorithm"> | |
// YOUR CODE HERE ! | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A simple Makefile alternative to using Grunt for your static asset compilation | |
# | |
## Usage | |
# | |
# $ npm install | |
# | |
# And then you can run various commands: | |
# | |
# $ make # compile files that need compiling | |
# $ make clean all # remove target files and recompile from scratch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location /.well-known/acme-challenge { | |
root /usr/share/nginx/html; | |
} | |
# h5bp is from https://github.com/h5bp/server-configs-nginx | |
include h5bp/directive-only/ssl.conf; | |
ssl_certificate /etc/letsencrypt/live/bear.mylesbraithwaite.com/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/bear.mylesbraithwaite.com/privkey.pem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +mylesb is my blockchain ID. https://onename.com/mylesb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mylesb.ca@1.0.0 /Users/Myles/WebSites/ca_mylesb_www | |
├─┬ assemble@0.7.6 | |
│ ├─┬ ansi-colors@0.1.0 | |
│ │ ├─┬ ansi-bgblack@0.1.1 | |
│ │ │ └── ansi-wrap@0.1.0 | |
│ │ ├── ansi-bgblue@0.1.1 | |
│ │ ├── ansi-bgcyan@0.1.1 | |
│ │ ├── ansi-bggreen@0.1.1 | |
│ │ ├── ansi-bgmagenta@0.1.1 | |
│ │ ├── ansi-bgred@0.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: null | |
sitemap: false | |
permalink: twtxt.txt | |
--- | |
{% for post in site.posts limit:10 %}{{ post.date | date_to_xmlschema }} {{ post.title }} {% if post.shorturl %}{{ post.shorturl }}{% else %}{{ post.url | prepend: site.baseurl | prepend: site.url }}{% endif %} | |
{% endfor %} |