This file contains 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
// Templates inside SVG won't work in polymer-1.0 without some monkeypatching. | |
(function(){ | |
var doc = document.currentScript.ownerDocument; | |
var root = doc.querySelector('dom-module > template').content; | |
var templates = root.querySelectorAll('svg template'); | |
var el, template, attribs, attrib, count, child, content; | |
for (var i=0; i<templates.length; i++) { | |
el = templates[i]; | |
template = el.ownerDocument.createElement('template'); | |
el.parentNode.insertBefore(template, el); |
This file contains 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 | |
# for use with cron, eg: | |
# 0 3 * * * postgres /var/db/db_backup.sh foo_db | |
if [[ -z "$1" ]]; then | |
echo "Usage: $0 <db_name> [pg_dump args]" | |
exit 1 | |
fi |
(taken from: https://www.reddit.com/r/archlinux/comments/5r5ep8/make_your_arch_fonts_beautiful_easily/)
This is what I do when I install Arch Linux to improve the fonts.
You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality):
- Install some fonts, for example:
This file contains 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
[uwsgi] | |
plugins-dir = /usr/lib/uwsgi/plugins | |
emperor = /etc/uwsgi/vassals/*.ini | |
show-config = 1 | |
uid = http | |
gid = http | |
emperor-stats = /run/uwsgi/emperor-stats.sock | |
umask = 002 | |
logto = /var/log/uwsgi/emperor.log |
This file contains 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
[uwsgi] | |
module = hive.wsgi | |
workers = 6 | |
plugins = python3 | |
base = /srv/hive | |
virtualenv = /srv/hive | |
logto = /srv/hive/log/uwsgi.hive.log | |
socket = /run/uwsgi/hive.sock | |
touch-reload = /srv/hive/reload | |
buffer-size = 32768 |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<script src="load-pages.js"></script> | |
<script>window.PagedConfig = {auto: false};</script> | |
<script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script> | |
<style> | |
@media screen { | |
.pagedjs_sheet { | |
box-shadow: 1px 1px 4px 1px rgba(0,0,0,0.15); |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script> | |
<style> | |
@media screen { | |
.pagedjs_sheet { | |
box-shadow: 1px 1px 4px 1px rgba(0,0,0,0.15); | |
margin: 20px auto; | |
} |
This file contains 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
/** | |
* attiny85 pin map: | |
* +-\/-+ | |
* NC PB5 1|o |8 Vcc --- nRF24L01 3v3, pin2 | |
* nRF24L01 CE, pin3 --- PB3 2| |7 PB2 --- nRF24L01 SCK, pin5 | |
* nRF24L01 CSN, pin4 --- PB4 3| |6 PB1 --- nRF24L01 MOSI, pin6 | |
* nRF24L01 GND, pin1 --- GND 4| |5 PB0 --- nRF24L01 MISO, pin7 | |
* +----+ | |
*/ |