Skip to content

Instantly share code, notes, and snippets.

Avatar

Víctor Guerrero vgsystems

View GitHub Profile
@vgsystems
vgsystems / slack.py
Created Apr 15, 2021
Pure Python script to delete all files on the Slack workspace.
View slack.py
# 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
<?php
/**
* Class PrestaShopValetDriver
* @author Paolo Falomo @user https://gitlab.com/paolofalomo
* @source https://gitlab.com/snippets/1717590
* @version 1.5
*/
class PrestaShopValetDriver extends ValetDriver
{
@vgsystems
vgsystems / team.php
Last active Jul 4, 2019
Enable hover image in team members component for Enfold WordPress theme
View team.php
<?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' ) )
@vgsystems
vgsystems / team.php
Created Jul 4, 2019
Enable hover image in team members component for Enfold WordPress theme
View team.php
<?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' ) )
@vgsystems
vgsystems / install.sh
Last active Feb 13, 2019 — forked from solar/install.sh
Install redis with supervisord
View install.sh
#!/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
@vgsystems
vgsystems / Custom sorin theme for zprecto
Last active Feb 9, 2019
This is a custom setup for Sorin theme for zprezto ZSH framwork
View Custom sorin theme for zprecto
# Screenshot: https://i.imgur.com/yUplymA.png
# Git it's integrated
# Author: vguerrero
# WS: https://vguerrero.com
# @: v @ vguerrero.com
# Code
# Load dependencies.
@vgsystems
vgsystems / Custom sorin theme for zprecto
Created Feb 9, 2019
This is a custom setup for Sorin theme por zprezto ZSH framwork
View Custom sorin theme for zprecto
# Load dependencies.
pmodload 'helper'
function prompt_sorin_pwd {
local pwd="${PWD/#$HOME/~}"
if [[ "$pwd" == (#m)[/~] ]]; then
_prompt_sorin_pwd="$MATCH"
unset MATCH
else
@vgsystems
vgsystems / recipe.sh
Created Oct 22, 2018 — forked from bironeaj/recipe.sh
Ubuntu IBM DB2 ODBC + CLI + PHP PDO Installation Instructions/Script - Tailored for Laravel Forge
View recipe.sh
# 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