Install the OpenSSL on Debian based systems
sudo apt-get install openssl| version: '3' | |
| services: | |
| postgres10: | |
| environment: | |
| - POSTGRES_USER=dtrack | |
| - POSTGRES_PASSWORD=changeme | |
| image: 'postgres:10.5' | |
| volumes: | |
| - './postgres-data:/var/lib/postgresql/data' | |
| dtrack: |
| # Vars | |
| $msiPath = 'C:\Users\arush\Downloads\sqlncli.msi' | |
| # Definition | |
| $sig = @' | |
| [DllImport("msi.dll", CharSet = CharSet.Unicode, PreserveSig = true, SetLastError = true, ExactSpelling = true)] | |
| private static extern UInt32 MsiOpenPackageW(string szPackagePath, out IntPtr hProduct); | |
| [DllImport("msi.dll", CharSet = CharSet.Unicode, PreserveSig = true, SetLastError = true, ExactSpelling = true)] | |
| private static extern uint MsiCloseHandle(IntPtr hAny); | |
| [DllImport("msi.dll", CharSet = CharSet.Unicode, PreserveSig = true, SetLastError = true, ExactSpelling = true)] |
To remove a submodule you need to:
I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.
What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.
Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.
PLEASE SCROLL DOWN AND READ THE COMMENTS FOR A MORE UP TO DATE WAY (AND EASIER) TO DO THIS
When using Homebrew (http://brew.sh) and searching formulas or pull requests you may get the dreaded error message: Github API Rate limit exceeded
Let's fix that! (yeah!)
PLEASE SCROLL DOWN AND READ THE COMMENTS FOR A MORE UP TO DATE WAY (AND EASIER) TO DO THIS
| Step 1: Upgrade Packages | |
| # yum update | |
| # yum groupinstall "Development Tools" | |
| Step 2: Installing Recommended Packages | |
| # yum install gcc-c++ patch readline readline-devel zlib zlib-devel | |
| # yum install libyaml-devel libffi-devel openssl-devel make | |
| # yum install bzip2 autoconf automake libtool bison iconv-devel | |
| Step 3: Install RVM ( Ruby Version Manager ) |
This is not intended to be comprehensive or authoritative, just free online resources I've found valuable while learning more about Erlang.
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |