Call this program with -s N
to set a specific CPU.
Without -s
, the thread will have the default affinity.
This program will print out the main threads CPU, the child threads CPU and the child threads affinity after optionally setting it.
0039.cf | |
0039.ga | |
0039.ml | |
00b2bcr51qv59xst2.cf | |
00b2bcr51qv59xst2.ga | |
00b2bcr51qv59xst2.ml | |
02466.cf | |
02466.ga | |
02466.ml | |
07819.cf |
################################################### | |
## | |
## Alertmanager YAML configuration for routing. | |
## | |
## Will route alerts with a code_owner label to the slack-code-owners receiver | |
## configured above, but will continue processing them to send to both a | |
## central Slack channel (slack-monitoring) and PagerDuty receivers | |
## (pd-warning and pd-critical) | |
## |
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
// Following code is a modified version of that found at https://blog.cloudflare.com/dronedeploy-and-cloudflare-workers/ | |
/** | |
* Fetch and log a request | |
* @param {Request} request | |
*/ |
Call this program with -s N
to set a specific CPU.
Without -s
, the thread will have the default affinity.
This program will print out the main threads CPU, the child threads CPU and the child threads affinity after optionally setting it.
var bigint = require( 'big-integer' ) | |
var lower = 'abcdefghijklmnopqrstuvwxyz'; | |
var upper = lower.toUpperCase(); | |
var numbers = '0123456789' | |
var ig_alphabet = upper + lower + numbers + '-_' | |
var bigint_alphabet = numbers + lower | |
function toShortcode( longid ) |
# base58_to_int and int_to_base58 loosely based on base58 gem by Douglas F. Shearer | |
# https://github.com/dougal/base58 | |
ALPHABET = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ".chars | |
BASE = ALPHABET.size | |
def base58_to_int(base58_val) | |
base58_val.chars | |
.reverse_each.with_index | |
.reduce(0) do |int_val, (char, index)| |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
One file for each domain, both www.example.com and example.com need separate files:
{
"applinks": {
"apps": [],
"details": {
"9JA89QQLNQ.com.apple.wwdc": {
Steps to get Rails 4 saving its output to Syslog via Rsyslog. This assumes you are on CentOS
, but should be pretty adaptable to any other distribution. Ruby 2.0+
is also required.
lograge
and logstash-event
to your Gemfile
. Feel free to remove from production
if you'd like to test it in development
as well or something.production.rb
with the lograge
settings and set the logger
to Syslog::Logger
.conf
files to /etc/rsyslog.d/
. /etc/rsyslog.conf
should have $IncludeConfig /etc/rsyslog.d/*.conf
enabled, so it will load any additional configs from /etc/rsyslog.conf
.