- 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!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
OlderNewer