Skip to content

Instantly share code, notes, and snippets.

View psachin's full-sized avatar
🚀
Evolving

Sachin psachin

🚀
Evolving
View GitHub Profile
@jairojunior
jairojunior / cfme-rh-sso.yml
Created January 4, 2018 16:40
Playbook to configure CFME login with RH-SSO
---
- hosts: all
become: yes
become_user: root
vars:
appliance_file_name: "https_{{ appliance_name }}"
tasks:
- name: SAML configuration dir
@gbraad
gbraad / README.md
Created June 23, 2016 01:13
Install TripleO on baremetal using Quickstart

Install TripleO on baremetal using Quickstart

This gist contains the files and scripts used to deploy to baremetal. Be aware deploy.sh wasn't really used in this way. The steps were actually performed from an interactive session (due to issues with the overcloud loosing connectivity).

The undercloud image needs to be build or download and stored in /var/lib/oooq-images/.

@psachin
psachin / ceilo-gnocchi-aodh-notes.txt
Last active March 7, 2019 19:46
ceilo-gnocchi-aodh-notes
Gnocchi Archive policies
=========================
1. Capture data every 1 minute for 1 day
[heat-admin@overcloud-controller-2 ~]$ gnocchi archive-policy create 1min1day -d granularity:1m,timespan:1d
+---------------------+----------------------------------------------------------------+
| Field | Value |
+---------------------+----------------------------------------------------------------+
| aggregation_methods | std, count, 95pct, min, max, sum, median, mean |
| back_window | 0 |
@psachin
psachin / network
Created February 20, 2018 14:25
D-Link DIR-615 "shark" file: /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0'
option type 'bridge'
@dmgerman
dmgerman / directory-files-recursive.el
Last active May 1, 2022 09:55
Recursively list files in a given directory
;;;
;;; Recursively list files in a given directory
;;;
;;; Author: daniel m german dmg at uvic dot ca
;;; Copyright: daniel m german
;;; License: Same as Emacs
;;;
(defun directory-files-recursive (directory match maxdepth ignore)
"List files in DIRECTORY and in its sub-directories.
Return files that match the regular expression MATCH but ignore
@iAugur
iAugur / ansible-add-string-to-line.yml
Last active February 22, 2024 14:25
Ansible: Add a String to an existing line in a file
# Adapted from solution provided by http://stackoverflow.com/users/57719/chin-huang http://stackoverflow.com/a/31465939/348868
# Scenario: You want to add a group to the list of the AllowGroups in ssh_config
# before:
# AllowGroups Group1
# After:
# AllowGroups Group1 Group2
- name: Add Group to AllowGroups
replace:
backup: yes
@brenopolanski
brenopolanski / merge-pdf-ghostscript.md
Last active May 2, 2024 06:56
Merge multiple PDFs using Ghostscript

A simple Ghostscript command to merge two PDFs in a single file is shown below:

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combine.pdf -dBATCH 1.pdf 2.pdf

Install Ghostscript:

Type the command sudo apt-get install ghostscript to download and install the ghostscript package and all of the packages it depends on.