Skip to content

Instantly share code, notes, and snippets.

Hunting bugs....

Alexander Garzon agarzon

Hunting bugs....
  • Zend Certified Engineer
  • Canada, Montreal
Block or report user

Report or block agarzon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
agarzon / winds.lua
Created May 2, 2019
lua script x-plane visual helper
View winds.lua
local window_x = 40 -- Display position from right edge of window
local window_y = 40 -- Display position from top edge of window
local show_wind = false
DataRef("WIND_DIR", "sim/cockpit2/gauges/indicators/wind_heading_deg_mag", "readonly")
DataRef("WIND_SPEED", "sim/cockpit2/gauges/indicators/wind_speed_kts", "readonly")
DataRef("HEADING", "sim/flightmodel/position/psi", "readonly")
agarzon / texture-selector.go
Created Nov 12, 2018
Zibo texture selector for x-plane
View texture-selector.go
// This command line program helps to install 4k or 2k textures in the Zibo's B738
// Author: Alexander Garzon
// Multi-platform. It should work with WIN, OS and Linux. Just be sure the file has execution permisstions.
// Tested with Zibo 3.31
package main
import (
agarzon / whmcs-export.sql
Created Nov 2, 2018
WHMCS export hosting services
View whmcs-export.sql
SELECT tblhosting.domain,, tblhosting.domainstatus, , CONCAT(tblclients.firstname, ' ', tblclients.lastname) AS Client, tblclients.status AS Clientstatus
FROM tblhosting
LEFT JOIN tblproducts ON tblhosting.packageid =
LEFT JOIN tblservers ON tblhosting.server =
LEFT JOIN tblclients ON tblhosting.userid =
WHERE tblhosting.domainstatus IN ('Active', 'Suspended')
INTO OUTFILE '/tmp/whmcs.csv';
agarzon /
Created Oct 4, 2017
Securely erasing all files in folders recursively
#If you want more "passes" change vzun0 for vzun1 or any other number (process will be slower!)
find /mnt/backup -type f -print0 | xargs -0 shred -vzun0
agarzon / docker-compose.yml
Last active Sep 8, 2019
My docker-compose.yml for development
View docker-compose.yml
image: 'gitlab/gitlab-ce:latest'
container_name: gitlab
restart: always
hostname: 'gitlab.mcu.dc'
external_url 'http://gitlab.mcu.dc:8090'
gitlab_rails['gitlab_shell_ssh_port'] = 2290
gitlab_rails['smtp_enable'] = true
agarzon /
Created Feb 10, 2017
Check Sender Score from IP using command line. bash script
#!/usr/bin/env bash │ject-with tcp-reset
# usage: ./
if [ -z "$1" ]
echo "IP is missing as arguemnt."
agarzon /
Last active Oct 4, 2017
Recursive PHP linting
find . -name "*.php" -print0 | xargs -0 -n1 -P $(nproc) php -l | grep -v '^No'
agarzon /
Last active May 6, 2019
Install globally popular PHP dev tools like composer, phpunit, phpcs, phpmd, phpcpd, deployer, robo, codeception, etc.
#To execute it directly: sudo bash <(curl -s
sudo curl -LsS -o ${BIN_PATH}composer
sudo chmod a+x ${BIN_PATH}composer
agarzon /
Created Jun 3, 2016 — forked from xgin/
Secure plesk clean installation with hostname certificate by Let's Encrypt
#!/bin/bash -e
### Copyright 1999-2015. Parallels IP Holdings GmbH. All Rights Reserved.
### Secure plesk clean installation with hostname certificate by Let's Encrypt
export PYTHONWARNINGS="ignore:Non-standard path"
# Use staging server for testing
# --server
agarzon /
Last active Feb 2, 2016
ubuntu remove old kernels (fish shell)
dpkg --list | grep linux-image | awk '{ print $2 }' | sort -V | sed -n '/'(uname -r)'/q;p' | xargs sudo apt-get -y purge
You can’t perform that action at this time.