Skip to content

Instantly share code, notes, and snippets.

nextgen@1.0.1 /home/yuvilio/ws/apps/php/wordpress/nextgenamerica.org
├── (@bower_components/fitvids) invalid error: ENOENT: no such file or directory, open '/home/yuvilio/ws/apps/php/wordpress/nextgenamerica.org/node_modules/@bower_components/fitvids/package.json
├── animate-sass@0.6.6
├── bootstrap@4.1.1
├─┬ browser-sync@2.23.5
│ ├─┬ browser-sync-ui@1.0.1
│ │ ├── async-each-series@0.1.1
│ │ ├── connect-history-api-fallback@1.5.0 deduped
│ │ ├── immutable@3.8.2 deduped
│ │ ├── server-destroy@1.0.1 deduped
@yuvilio
yuvilio / ex-vhost.conf
Created November 8, 2015 01:19
nginx-fpm
server {
listen 80;
server_name www.example.dev;
root /home/yuvilio/ws/apps/php/wordpress/example;
index index.php index.html index.htm;
# serve static files more efficiently via caching. no need to log those requests
@yuvilio
yuvilio / gist:1d6bf530b721a5ffed92
Last active August 29, 2015 14:23
Triggering an event, confirming it happened with mutationobserver, triggering it again when ready.
var i = 3; //number of times you'll want to run task (three clicks, in this example)
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
//Was this an event that made the list grow?
if (mutation.type === 'childList') {
i--; //then count it as an iteration
}
@yuvilio
yuvilio / clocker-pom.sh
Last active August 29, 2015 14:14
A cross-platform pomodoro style script to chunk up and track my work
#!/usr/bin/env bash
#uses
# clocker (to store the work data)
# pomojs to visualize and notify about time passing
# player to play sound to indicate when time is up
#pomodoro + break command line script
#prerequisites: