Skip to content

Instantly share code, notes, and snippets.

View nidr0x's full-sized avatar
🎯
💭

Carlos nidr0x

🎯
💭
  • Job&talent
  • Valencia (Spain)
View GitHub Profile
@miguelmota
miguelmota / tmux.conf
Created November 24, 2018 07:40
Tmux fix reattach-to-user-namespace unsupported new OS error
# how to fix the error:
# warning: reattach-to-user-namespace: unsupported new OS, trying as if it were "10.10" Mojave
# replace
bind-key -T copy-mode-vi 'y' send -X copy-pipe "reattach-to-user-namespace pbcopy"
# with
bind-key -T copy-mode 'y' send -X copy-pipe-and-cancel "pbcopy"
@btomasini
btomasini / test_default.py
Created September 12, 2018 16:18
Comparison of testinfra versus goss infrastructure tests.
import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_bind9_installed(host):
@jlis
jlis / .gitlab-ci.yml
Created May 15, 2018 13:16
AWS ECS and ECR deployment via Docker and Gitlab CI
image: docker:latest
variables:
REPOSITORY_URL: <AWS ACCOUNT ID>.dkr.ecr.eu-central-1.amazonaws.com/<ECS REPOSITORY NAME>
REGION: eu-central-1
TASK_DEFINTION_NAME: <TASK DEFINITION NAME>
CLUSTER_NAME: <CLUSTER NAME>
SERVICE_NAME: <SERVICE NAME>
services:
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active May 12, 2025 09:18
crack activate Office on mac with license file
@firemanxbr
firemanxbr / minishift-addons-helm
Last active August 24, 2022 09:46
Step by step from scratch to run helm on Minishift
**NOTE** I'm using Minishift 13.0.1
$ cat ~/.bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
@ekreutz
ekreutz / ansible_variable_precedence.md
Last active February 3, 2025 10:55
Ansible variable precedence (order, hierarchy)
@irvingpop
irvingpop / ssh_key.tf
Last active January 23, 2025 09:07
Terraform external data source example - dynamic SSH key generation
# ssh key generator data source expects the below 3 inputs, and produces 3 outputs for use:
# "${data.external.ssh_key_generator.result.public_key}" (contents)
# "${data.external.ssh_key_generator.result.private_key}" (contents)
# "${data.external.ssh_key_generator.result.private_key_file}" (path)
data "external" "ssh_key_generator" {
program = ["bash", "${path.root}/../ssh_key_generator.sh"]
query = {
customer_name = "${var.customer_name}"
customer_group = "${var.customer_group}"
@nickytonline
nickytonline / tools-programs-for-osx.md
Last active May 12, 2021 19:58
Tools/Programs for devs on MacOS
  • Homebrew, run /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" from the command line to install it.
  • Homebrew Cask, run brew tap caskroom/cask from the command line to install it.
  • Alfred, buy the powerpack to get the full use of it.
  • Spectacle
  • Fish shell
  • VLC
  • Unarchiver
  • f.lux
  • n, run brew install n from the command line to install it.
  • Fisherman, run curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs https://git.io/fisher from the command line to install it.
@mhausenblas
mhausenblas / README.md
Created August 27, 2017 08:36
Doing Kubernetes The Hard Way, A Walkthrough
@yajra
yajra / install-wkhtmltopdf.sh
Last active April 15, 2025 09:34
Install wkhtmltopdf 0.12.4 (with patched qt)
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
mv wkhtmltox/bin/wkhtmlto* /usr/bin/
ln -nfs /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf