Skip to content

Instantly share code, notes, and snippets.

yuvilio

Block or report user

Report or block yuvilio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View list.txt
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
View ex-vhost.conf
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 Aug 29, 2015
Triggering an event, confirming it happened with mutationobserver, triggering it again when ready.
View gist:1d6bf530b721a5ffed92
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 Aug 29, 2015
A cross-platform pomodoro style script to chunk up and track my work
View clocker-pom.sh
#!/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:
You can’t perform that action at this time.