In the apps config/puma.rb
file:
Change to match your CPU core count
# Check using this on the server => grep -c processor /proc/cpuinfo
workers 4
# Min and Max threads per worker
threads 1, 6
app_dir = File.expand_path('../..', FILE)
In the apps config/puma.rb
file:
Change to match your CPU core count
# Check using this on the server => grep -c processor /proc/cpuinfo
workers 4
# Min and Max threads per worker
threads 1, 6
app_dir = File.expand_path('../..', FILE)
selfhosting-guide
in the support server)#!/usr/bin/env bash | |
# Abort sign off on any error | |
set -e | |
# Start the benchmark timer | |
SECONDS=0 | |
# Repository introspection | |
OWNER=$(gh repo view --json owner --jq .owner.login) |
#initialize the Outlook application | |
[Microsoft.Office.Interop.Outlook.Application] $outlook = New-Object -ComObject Outlook.Application | |
#store all values from the default GAL to $entries | |
$entries = $outlook.Session.GetGlobalAddressList().AddressEntries | |
#declare array outside of the loop | |
$object = @() | |
#loop through all entries retrieved |
// wiring example for ripping a PMW3360 SROM: https://i.imgur.com/EspAlvz.jpeg | |
// set the board to 240mhz or higher for best results (WARNING: higher than 240mhz only works with USB if you overvolt the MCU) | |
// this implements reading SPI mode 3. if you want a different mode, you need to edit these two lines: | |
// uint32_t clockval = (1 << pin_clock); | |
// if (newclock && !clockval && buff_i < buffsize) | |
#include <pico/stdlib.h> | |
#define buffsize 50000 |
https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/
Make sure the following options are off:
Disable pre-fetching
Please see the most up-to-date version of this protocol on my blog at https://darencard.net/blog/.
inotify-tools
is installed (https://github.com/rvoicilas/inotify-tools)const timer = ms => new Promise(res => setTimeout(res, ms)); | |
// Unretweet normally | |
const unretweetTweet = async (tweet) => { | |
await tweet.querySelector('div[data-testid="unretweet"]').click(); | |
await timer(250); | |
await document.querySelector('div[data-testid="unretweetConfirm"]').click(); | |
console.log('****// Unretweeted Successfully //****') | |
} |
private extension MyTests { | |
private func setLocaleAsJP() { | |
let original = class_getClassMethod(NSLocale.self, #selector(getter: NSLocale.current))! | |
let swizzled = class_getClassMethod(NSLocale.self, #selector(NSLocale.myCurrentLocale))! | |
method_exchangeImplementations(original, swizzled) | |
} | |
} | |
// https://stackoverflow.com/questions/31065859/how-can-i-change-the-locale-on-the-xcode-playground | |
fileprivate extension NSLocale { |