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
# Load dependencies. | |
pmodload 'helper' | |
function prompt_sorin_pwd { | |
local pwd="${PWD/#$HOME/~}" | |
if [[ "$pwd" == (#m)[/~] ]]; then | |
_prompt_sorin_pwd="$MATCH" | |
unset MATCH | |
else |
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. |
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 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 recipe.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
# Install Dev Package | |
sudo apt install php7.2-dev | |
# CD Home | |
cd ~ | |
# Get CLI | |
wget -q -O CLI.tar.gz https://iwm.dhe.ibm.com/sdfdl/v2/regs2/smkane/IDSOC/Xa.2/Xb.bL-snMrfTDtX6PgwwuXqAdeiFX6UY09DUuicweVTRlk/Xc.ibm_data_server_driver_for_odbc_cli_linuxx64_v11.1.tar.gz/Xd./Xf.LPr.D1vk/Xg.9810279/Xi.swg-idsoc97/XY.regsrvs/XZ.42v0ODLDocGa6RjgsAKBjJobG6U/ibm_data_server_driver_for_odbc_cli_linuxx64_v11.1.tar.gz | |
# Get PDO | |
wget -q -O PDO.tar.gz https://pecl.php.net/get/PDO_IBM-1.3.5.tgz | |
# Unpack Files & Cleanup | |
tar -zxf CLI.tar.gz |
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 | |
/** | |
* Class PrestaShopValetDriver | |
* @author Paolo Falomo @user https://gitlab.com/paolofalomo | |
* @source https://gitlab.com/snippets/1717590 | |
* @version 1.5 | |
*/ | |
class PrestaShopValetDriver extends ValetDriver | |
{ |
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 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 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' |
OlderNewer