Clone Mastodon's repository.
# Clone mastodon to ~/live directory
git clone https://github.com/tootsuite/mastodon.git live
# Change directory to ~/live
cd ~/live
#!/usr/bin/env python | |
import datetime | |
from dateutil import parser | |
import subprocess | |
import json | |
from influxdb import InfluxDBClient | |
# influx configuration - edit these | |
ifuser = "telegraf" |
// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. | |
// | |
// 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 | |
// furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in |
# Sample toolchain file for building for Windows from an Ubuntu Linux system. | |
# | |
# Typical usage: | |
# *) install cross compiler: `sudo apt-get install mingw-w64` or `brew install mingw-w64` on macOS | |
# *) cmake -DCMAKE_TOOLCHAIN_FILE=~/mingw-w64-x86_64.cmake -G Ninja -B build -S . | |
# *) ninja -C build | |
set(CMAKE_SYSTEM_NAME Windows) | |
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32) |
<?php | |
add_filter( 'wp_resource_hints', 'your_add_resource_hints', 10, 2 ); | |
/** | |
* Try to improve performance with resource hints. | |
* | |
* WP will output protocol-relative 'dns-prefetch' for all scripts and styles which are enqueued | |
* from external hosts. | |
* WP will not do 'preconnect', 'prefetch', or 'prerender' automatically. |
A guide for getting started and best practices for teams new to, or improving their interactions with, GitHub
GitHub's features and capabilities
This document is meant to help new teams to GitHub familiarize themselves with the features and platform, as well as start to explore some of the best practices. While not a complete exploration, it's meant as a introduction to the key tenets of using GitHub for your business. For teams and organizations that desire more one on one support, GitHub Professional Services has many different options available to customize tools, training, and process to best meet your needs. The GitHub offerings listed in the diagram above are just a sampling of the various capabilities and we'd love to create a customized offering to meet your specific organizational needs.
# Enable request logging in Odoo using one of the following: | |
# * pass --log-level=debug_rpc | |
# * or pass --log-handler=odoo.http.rpc.request:DEBUG (to only debug request times) | |
# * or set the equivalent config option in the Odoo config file | |
# Then save the following as a munin plugin to monitor the last 5 minutes of your Odoo config file | |
# Be sure to set the correct path for the Odoo log file, and adjust the variables as needed | |
#!/bin/bash |
#!/bin/bash | |
# Save this file as /usr/bin/apt-pac and chmod +x it. | |
case "$1" in | |
autoremove) | |
pacman -Rns $(pacman -Qdtq); | |
;; |
apt-get install wkhtmltopdf | |
apt-get install xvfb | |
echo -e '#!/bin/bash\nxvfb-run -a --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf -q $*' > /usr/bin/wkhtmltopdf.sh | |
chmod a+x /usr/bin/wkhtmltopdf.sh | |
ln -s /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf | |
wkhtmltopdf http://www.google.com output.pdf |