This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# see the current limits | |
$ sysctl -a | grep maxproc | |
# increase it | |
$ sudo sysctl -w kern.maxproc=xxxx | |
$ sudo sysctl -w kern.maxprocperuid=xxx | |
# run at startup | |
$ sudo vim /etc/sysctl.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1) Create your private key (any password will do, we remove it below) | |
$ cd ~/.ssh | |
$ openssl genrsa -des3 -out server.orig.key 2048 | |
# 2) Remove the password | |
$ openssl rsa -in server.orig.key -out server.key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install FreeTDS on Codeship - http://www.freetds.org | |
TDS_DIR=${TDS_DIR:=$HOME/cache/freetds} | |
set -e | |
if [ ! -d "${TDS_DIR}" ]; then | |
mkdir -p "${HOME}/freetds" | |
wget "ftp://ftp.freetds.org/pub/freetds/stable/freetds-patched.tar.gz" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
client = Aws::CognitoIdentityProvider::Client.new( | |
access_key_id: "xxxx", | |
secret_access_key: "xxxx", | |
region: "us-east-1" | |
) | |
# Base64 ( HMAC_SHA256 ( "Client Secret Key", "Username" + "Client Id" ) ) | |
username = "[email protected]" | |
key = App_client_secret # (get this from amazon cognito console) | |
data = username + App_client_id # (get App_client_id from amazon console) |