Skip to content

Instantly share code, notes, and snippets.

View tuaris's full-sized avatar

Daniel Morante tuaris

View GitHub Profile
@tuaris
tuaris / gist:b1659f02e3d233723edeac60bb8b6879
Created November 10, 2021 04:19
Saltstack Multiple roles
# Pillar Data
root@master:~# salt 'monitor.*' pillar.items
monitor.prod.domain.tld:
----------
role:
- collector
- metabase
- grafana
- prometheus
@tuaris
tuaris / composer-packages.awk
Last active December 28, 2020 02:12
Extract Github Tupples from a composer.json using AWK
BEGIN {
current_dimension = 0
gh_tuple_len = 0
gl_tuple_len = 0
packages_len = 0
gitlab_sites["https://gitlab.com"] = 1
gitlab_sites["https://gitlab.freedesktop.org"] = 1
gitlab_sites["https://gitlab.gnome.org"] = 1
Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.
Results
=======
- qownnotesapi
- EXCEPTION
@tuaris
tuaris / getmem.c
Last active July 17, 2020 05:59
Small C program to get total physical RAM in FreeBSD
#include <sys/types.h>
#include <sys/sysctl.h>
#include <stdio.h>
uint64_t
get_mem_size()
{
uint64_t memsize = -1;
size_t len = sizeof(memsize);
@tuaris
tuaris / kmskeys10.txt
Created March 23, 2019 23:39 — forked from CHEF-KOCH/kmskeys10.txt
Windows 10 KMS Keys
Windows.10.and.Office.2016.gVLK
#####################################################################
# Install/Uninstall keys #
#####################################################################
1.) Uninstall the current product by entering the “uninstall product key” extension:
slmgr.vbs /upk
2.) Install the key that you obtained above for “Windows Srv 2012R2 DataCtr/Std KMS for Windows 10”

Keybase proof

I hereby claim:

  • I am tuaris on github.
  • I am danielmorante (https://keybase.io/danielmorante) on keybase.
  • I have a public key whose fingerprint is 9F36 C00A 9DBC 9FDB 067A F58E F432 6C27 A7B6 9FF0

To claim this, I am signing this object: