View values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: | |
persistentVolume: | |
mountPath: /opt/ibm/data | |
storagePath: /home/cfgstore/icn/data | |
nodeExporter: | |
podAnnotations: { | |
prometheus.io/scrape: "true" # delete to disable Sysdig auto discovery service. | |
} | |
# helm install prometheus prometheus-community/prometheus -n prometheus -f values.yaml |
View prometheus.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# edit via `kubectl edit configmap sysdig-agent -n monitoring` | |
apiVersion: v1 | |
data: | |
dragent.yaml: | | |
new_k8s: true | |
k8s_cluster_name: XXXXXX # i.e: foo-cluster | |
security: | |
enabled: true | |
commandlines_capture: |
View prometheus.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
scrape_interval: 10s # Set the scrape interval to every 15 seconds. Default is every 1 minute. | |
remote_write: | |
- url: "https://api.sysdigcloud.com/prometheus/remote/write" | |
bearer_token: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | |
scrape_configs: | |
- job_name: "windows_exporter" | |
# metrics_path defaults to '/metrics' |
View config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration and more info | |
# https://github.com/prometheus-community/windows_exporter | |
collectors: | |
enabled: cpu,cs,logical_disk,os,system,textfile,net,service,process | |
collector: | |
textfile: | |
directory: C:\Users\Administrator.WINDOWS-VM-MONI\Desktop\metrics\ | |
# service: | |
# services-where: "Name='windows_exporter'" |
View slack.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use this script to recursively delete all the files present on the authorized workspace. | |
# The aim of this script it continues using the free Slack tier. | |
# WARNING: This will delete ALL your files | |
import requests | |
import json | |
file_list = "https://slack.com/api/files.list" | |
file_delete = "https://slack.com/api/files.delete" | |
headers = {"Authorization": "Bearer SLACK API KEY"} |
View PrestashopValetDriver.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Valet\Drivers\Custom; | |
use Valet\Drivers\ValetDriver; | |
class PrestaShopValetDriver extends ValetDriver | |
{ | |
public static $ps_exclusions = ['ajax.php', 'dialog.php', 'ajax_products_list.php', 'autoupgrade/', 'filemanager/']; |
View team.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Team Member | |
* | |
* Display a team members image with additional information | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly | |
if ( !class_exists( 'avia_sc_team' ) ) |
View team.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Team Member | |
* | |
* Display a team members image with additional information | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly | |
if ( !class_exists( 'avia_sc_team' ) ) |
View install.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
apt update | |
apt get install supervisor -y | |
echo "[program:redis] | |
command=/usr/bin/redis-server /etc/redis/redis.conf | |
autostart=true | |
autorestart=true | |
user=root |
View Custom sorin theme for zprecto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Screenshot: https://i.imgur.com/yUplymA.png | |
# Git it's integrated | |
# Author: vguerrero | |
# WS: https://vguerrero.com | |
# @: v @ vguerrero.com | |
# Code | |
# Load dependencies. |
NewerOlder