Skip to content

Instantly share code, notes, and snippets.

@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:
@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 / 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
[email protected] /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
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped