The commands below assume a build plate of 235 x 235 mm.
M211 S0
alias nginx.start='sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist' | |
alias nginx.stop='sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist' | |
alias nginx.restart='nginx.stop && nginx.start' | |
alias php-fpm.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist" | |
alias php-fpm.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist" | |
alias php-fpm.restart='php-fpm.stop && php-fpm.start' | |
alias mysql.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist" | |
alias mysql.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist" | |
alias mysql.restart='mysql.stop && mysql.start' | |
alias nginx.logs.error='tail -250f /usr/local/etc/nginx/logs/error.log' |
The guide below describes how to connect a Raspberry Pi 4B to the Prusa i3 MK3s main board (Einsy RAMBo) board with its builtin RPi headers and an additional step-down / buck converter. The buck converter is necessary, since the Einsy headers do not provide enough amps to power anything bigger than a Raspberry Pi Zero W.
vi /usr/lib/systemd/system/wifi_disable_powersave.service
[Unit]
Description=Disable WiFi power save mode
After=sys-subsystem-net-devices-wlan0.device
[Service]
Download the client-information
and move it to /usr/local/bin/client-information
:
wget https://gist.githubusercontent.com/frdmn/5eeebc05c61c7a00450aee8b81be824c/raw/520d3e9ae9ec80710344119e1780939fa843130b/client-information -O /usr/local/bin/client-information
bash +x /usr/local/bin/client-information
Configure the scheduler to periodically run the script:
# | |
# Home Assistant Automation Blueprint | |
# | |
# Sends two notifications to close a window or door after opening it, | |
# if the temperature outside is below a certain degree. | |
# | |
# Revision 3 | |
# Roozbeh Farahbod, Jan. 2021 | |
# Jonas Friedmann, Nov. 2021 | |
# |
Due to the high usage of this guide and the lack of comfort in Gist's commenting area, I decided to make a blog post out of this which you can find here:
http://blog.frd.mn/install-os-x-10-10-yosemite-in-virtualbox/
#!/usr/bin/env bash | |
# MySQL / MariaDB Dump Helper | |
# =========================== | |
# FEATURES: Progress bar with ETA, support multiple databases (dump into separated files) and password as argument | |
# REQUIREMENTS: | |
# ============= | |
# GNU Core Utilities, mysql, mysqldump, pv (https://github.com/icetee/pv) |
BEGIN MESSAGE. | |
EEGErlKyZxOo4VB kevDbZUEJAKrBDB R20P7l03WuMQcBL YELNpEd6pHSK0Ng | |
rELQG5zby40L7QO FwKs4uB8e83TCKq 6Xr2MZHgg6oYWic lco69PQeA8YqJel | |
dc4vyMPo8DNbKMT IfoxAFXppc4Frfl 8OE60qwf1IcLNGn gAHSdzQRYfjwayL | |
bgm5HNUb0f7EJJV DvyzY9wmIdIvIMx mGPQj. | |
END MESSAGE. |
// ==UserScript== | |
// @name Reddit outage refresher | |
// @version 0.1 | |
// @author frdmn | |
// @match http://www.reddit.com/* | |
// ==/UserScript== | |
var xpathResult = document.evaluate("(//text()[contains(., 'try again and hopefully we will be fast enough this time.')])[1]", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null); | |
var node=xpathResult.singleNodeValue; | |
if (node!=null) { |