- Sage doesn't come with Purgecss (or uncss, etc.)
- Say, we use Bulma -- suddenly
dist/main.css
grows by 400K! - Let's purge it!
- Oh dang, we need to whitelist
/\.wp-/
,/\.post-type/
,/myfancylightbox/
... - Wait we are whitelisting pretty much everything from
/resource/assets/styles
! - Isn't there an option to purge
/node_modules/**/*
only? - Nope.
purgecss start ignore
, strategically placed, to the rescue!
#!/usr/bin/env python | |
import subprocess as sp | |
import RPi.GPIO as g | |
import time | |
import os | |
# see http://cyfta.com/?p=8480 | |
# & listen to WFMU! http://wfmu.org |
#!/bin/bash | |
# Scans blade templates for WordPress's gettext functions | |
# so WPML will pick them up for its String Translation. | |
# (WPML doesn't see something like {{ __('Hello World', 'sage') }} | |
# Put me into THEME/resources/assets/build | |
# so $fn will point to THEME/resouces and WPML can see it | |
# (and it's out of sage's way) |
#!/bin/bash | |
# create a slideshow from images, with nice blending | |
# using MLT or ffmpeg | |
# adapted from https://superuser.com/a/834035 | |
# | |
# beware of the ffmpeg command, it eats memory quickly | |
# USAGE | |
# 1 pass images as arguments |
# Very simplistic, use at your own risk. I am using this on Raspbian. | |
# | |
# put me into /etc/systemd/system | |
# systemctl start iptables-nat | |
# systemctl stop iptables-nat | |
# systemctl enable iptables-nat | |
# | |
# see: https://wiki.archlinux.org/index.php/Internet_sharing | |
# adapted from: https://github.com/gronke/systemd-iptables/blob/master/etc/systemd/system/iptables.service |
Quasar supports SCSS
but the style variables won't be available.
Here's a possible workaround -- incomplete & untested, since I gave up, went ahead and used stylus.
(This is guide is primarily directed at future me, should this become more compelling in the future.)
Install stylus-converter
yarn add --dev stylus-converter
<?php | |
/* Not really recommended, very dangerous. Will change entities. | |
* Adjust the xpath query & sizes to your needs. | |
*/ | |
add_filter('the_content', function ($content) { | |
try { | |
$preamble = '<?xml encoding="utf-8" ? >'; | |
$doc = new DOMDocument(); | |
$doc->preserveWhiteSpace = true; |
The situation: we record a podcast over Skype. We both have USB audio interfaces (Behringer U-Phoria UMC202 and 404, respectively). We each record our respective audio inputs and mix those later, manually adjusting the delay. Skype is only used for communication and is not involved in the recording.
There might be a way to do this without ardour, pulse-only. But since we have ardour in our workflow already, we prefer this way, even if it seems needlessly complicated.
Tested on Arch Linux; all referenced programs refer to Arch packages.
# premade for copy&paste: :) ;) :( :D :P <3 | |
php -r "echo html_entity_decode(':‌)');" | xclip -selection clipboard |
#!/bin/bash | |
# see http://cyfta.com/band-name-y-3-word-combos-with-exactly-1-youtube-hit/ for what this is all about. | |
key="YOURYOUTUBEAPIKEY" | |
mkdir -v q | |
for s in {1..1000}; do | |
# generate "passwords" |