A Preact PWA port of Eric Bidelman's Lighthouse Viewer app. Zero-config PWA build powered by preact-cli.
Try it out: lighthouse-viewer.surge.sh.
A Preact PWA port of Eric Bidelman's Lighthouse Viewer app. Zero-config PWA build powered by preact-cli.
Try it out: lighthouse-viewer.surge.sh.
const Annotation = require('ecmas-annotations').Annotation | |
const _ = require('lodash') | |
/** | |
* @module Auth | |
* @description Auth annotation | |
*/ | |
module.exports = class Auth extends Annotation { | |
constructor(data, filePath) { |
sudo apachectl stop | |
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null |
<?php | |
// Get the entry model. This could really be any element model, such as a category or Craft Commerce product. | |
$entry = craft()->entries->getEntryById(1234); | |
// Get the Neo field model and the field type model. | |
$field = craft()->fields->getFieldByHandle('neoFieldHandle'); | |
$fieldType = $field->getFieldType(); | |
$fieldType->setElement($entry); |
run.config: | |
engine: static | |
cache_dirs: | |
- .bin | |
extra_path_dirs: | |
- /app/.bin | |
extra_steps: |
.DS_Store | |
node_modules |
.git | |
.gitignore | |
README.md | |
# | |
# OS X | |
# | |
.DS_Store | |
.AppleDouble | |
.LSOverride |
.composite-title, .composite-title, .vs-dark .monaco-workbench>.activitybar>.content { | |
background-color: rgba(40, 44, 52, 1) !important; | |
} | |
.tabs-container, .tab, .tab.active, .title-actions, .tablist, .tabs-container, .tabs, .composite.title { | |
background-color: rgba(40, 44, 52, 1) !important; | |
} | |
.tab.active, .tab { | |
border-right: 0px !important; |
Ansible playbook to setup HTTPS using Let's encrypt on nginx. | |
The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS. | |
The server pass A rating on [SSL Labs](https://www.ssllabs.com/). | |
To use: | |
1. Install [Ansible](https://www.ansible.com/) | |
2. Setup an Ubuntu 16.04 server accessible over ssh | |
3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain | |
4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder) |
Sometimes you may want to undo a whole commit with all changes. Instead of going through all the changes manually, you can simply tell git to revert a commit, which does not even have to be the last one. Reverting a commit means to create a new commit that undoes all changes that were made in the bad commit. Just like above, the bad commit remains there, but it no longer affects the the current master and any future commits on top of it.
git revert {commit_id}
Deleting the last commit is the easiest case. Let's say we have a remote origin with branch master that currently points to commit dd61ab32. We want to remove the top commit. Translated to git terminology, we want to force the master branch of the origin remote repository to the parent of dd61ab32: