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)
{config, pkgs, ...}: | |
{ | |
# Enable Nginx | |
services.nginx = { | |
enable = true; | |
# Use recommended settings | |
recommendedGzipSettings = true; | |
recommendedOptimisation = true; |
class CreateNoIdModels < ActiveRecord::Migration | |
def change | |
create_table :no_id_models, id: false do |t| | |
t.integer :pk1 | |
t.integer :pk2 | |
end | |
end | |
end |
#!/bin/sh | |
# | |
# Read-only Root-FS for Raspian | |
# | |
# Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with | |
# overlayfs integrated in Linux Kernel >= 3.18. | |
# | |
# Originally written by Axel Heider (Copyright 2012) for Ubuntu 11.10. | |
# This version can be found here: | |
# https://help.ubuntu.com/community/aufsRootFileSystemOnUsbFlash#Overlayfs |
<?xml version="1.0" encoding="utf-8"?> | |
<EntityDescriptor ID="_271f377f-78d8-4133-8c46-a73c4936bb1f" entityID="https://example.com" xmlns="urn:oasis:names:tc:SAML:2.0:metadata"> | |
<RoleDescriptor xsi:type="fed:ApplicationServiceType" xmlns:fed="http://docs.oasis-open.org/wsfed/federation/200706" protocolSupportEnumeration="http://docs.oasis-open.org/wsfed/federation/200706" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<fed:TargetScopes> | |
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing"> | |
<wsa:Address>https://example.com/</wsa:Address> | |
</wsa:EndpointReference> | |
</fed:TargetScopes> | |
<fed:PassiveRequestorEndpoint> | |
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing"> |
var WebSocketServer = require('ws').Server; | |
var wss = new WebSocketServer({port: 8080}); | |
var jwt = require('jsonwebtoken'); | |
/** | |
The way I like to work with 'ws' is to convert everything to an event if possible. | |
**/ | |
function toEvent (message) { | |
try { |
OBJ = genload.o | |
BINS = genload | |
CC=g++ | |
OPTIMIZATION?=-O3 | |
CFLAGS?=$(OPTIMIZATION) $(ARCH) $(PROF) -I ../hiredis | |
CCLINK?=-pthread | |
LDFLAGS?=-L../hiredis -lhiredis -lm | |
OBJ = example.o |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <openssl/x509.h> | |
#include <openssl/hmac.h> | |
void | |
hmac_sha256( | |
const unsigned char *text, /* pointer to data stream */ |