Skip to content

Instantly share code, notes, and snippets.

View jalemayehu's full-sized avatar

Jonathan Alemayehu jalemayehu

  • Ixxus Limited
  • United Kingdom
View GitHub Profile
@efoncubierta
efoncubierta / install_serverspec_amazon_linux_2.sh
Last active October 15, 2019 09:07
Script/instructions to install Serverspec in Amazon Linux 2
#!/usr/bin/env bash
SERVERSPEC_VERSION=2.41.5
RAKE_VERSION=13.0.0
# Install Ruby
sudo amazon-linux-extras enable ruby2.4
sudo yum -y install ruby rubygems ruby-devel
# Update gem
@ruanbekker
ruanbekker / cheatsheet-elasticsearch.md
Last active April 24, 2024 00:11
Elasticsearch Cheatsheet : Example API usage of using Elasticsearch with curl
@hassy
hassy / kms-vault
Last active December 29, 2023 04:11
Encrypt/decrypt files using AWS KMS
#!/usr/bin/env bash
# License: MIT - https://opensource.org/licenses/MIT
#
# Usage:
#
# Encrypt a file:
# kms-vault encrypt My-Key-Alias some-file-i-want-encrypted.txt > topsecret.asc
#
@apolloclark
apolloclark / postgres cheatsheet.md
Last active March 7, 2024 13:53
postgres cheatsheet

Postgres Cheatsheet

This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.

Setup

installation, Ubuntu

http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL