Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| module Jekyll | |
| class ArchiveGenerator < Generator | |
| safe true | |
| def generate(site) | |
| collate_by_month(site.posts).each do |month, posts| | |
| page = ArchivePage.new(site, month, posts) | |
| site.pages << page | |
| end | |
| end |
| # | |
| # Jekyll Dev Only Tag | |
| # | |
| # Author : Colin Kennedy | |
| # Usage : | |
| # | |
| # The markup/script/css included within the `devonly` tags | |
| # is included in the rendered page when either: | |
| # | |
| # * `server` mode is used |
| # | |
| # File compressor plugin for jekyll | |
| # ================================= | |
| # | |
| # By [mytharcher](https://github.com/mytharcher) | |
| # 2012-05-20 | |
| # | |
| # Updated by [nicoespeon](https://github.com/nicoespeon) | |
| # 2013-04-12 | |
| # |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| #!/usr/bin/env python | |
| ''' | |
| Send an multipart email with HTML and plain text alternatives. The message | |
| should be constructed as a plain-text file of the following format: | |
| From: Your Name <your@email.com> | |
| To: Recipient One <recipient@to.com> | |
| Subject: Your subject line | |
| --- |
| ## | |
| # The MIT License (MIT) | |
| # | |
| # Copyright (c) 2014 Ryan Morrissey | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is |
| #!/bin/sh | |
| # Use this shell script in combination with ControlPlane (http://www.controlplaneapp.com) to detect | |
| # and automatize when the battery percentage is lower or equal than 10 percent. | |
| # For example: let ControlPlane close for you all Cloud applications when you to low battery life. | |
| batteryPercentage=`pmset -g batt | egrep -ow '([0-9]{1,3})[^%]'` | |
| lowbatPercentage=10 | |
| if [ ${batteryPercentage} -le ${lowbatPercentage} ]; then |
| # See also https://trac.ffmpeg.org/wiki/Encode/AAC | |
| # direct copy | |
| ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4 | |
| # direct copy video, but convert audio to AAC with default variable bit rate | |
| ffmpeg -i input.mkv -c:v copy -c:a aac -strict experimental output.mp4 | |
| # direct copy video, but convert audio to AAC with constant bit rate | |
| ffmpeg -i input.mkv -c:v copy -c:a aac -strict experimental -b:a 320k output.mp4 |
| /* | |
| If your package.json file contains "start": "node ./bin/www" | |
| Use the following command to bring up your app with forever | |
| */ | |
| forever start --minUptime 1000 --spinSleepTime 1000 ./bin/www | |
| /* Check list of forever process using the command */ | |
| forever list |
| export const refreshFrequency = 1000; | |
| export const command = `ps axro \"%cpu,ucomm,pid\" \ | |
| | sed -e 's/^[ \\t]*//g' -e 's/\\([0-9][0-9]*\\.[0-9][0-9]*\\)\\ /\\1\\%\\,/g' -e 's/\\ \\ *\\([0-9][0-9]*$\\)/\\,\\1/g' -e's/\\ \\ */\\_/g' \ | |
| | awk 'FNR>1' \ | |
| | head -n 3 \ | |
| | awk -F',' '{ printf \"%s,%s,%d\\n\", $1, $2, $3}' \ | |
| | sed -e 's/\\_/\\ /g'`; | |
| const style = { |