Skip to content

Instantly share code, notes, and snippets.

View wanderleihuttel's full-sized avatar

Wanderlei Hüttel wanderleihuttel

View GitHub Profile
@wanderleihuttel
wanderleihuttel / vba_advapi32_64-bit.vb
Created October 17, 2023 12:40 — forked from jrdmb/vba_advapi32_64-bit.vb
How to Use advapi32.dll Encryption Functions in 64-bit VBA
Option Compare Database
Option Explicit
'Reference: http://khoiriyyah.blogspot.com/2012/06/vb6-hash-class-md5-sha-1-sha-256-sha.html
'The above article is excellent but that code works for 32-bit Access/Excel only.
'This works on both 32-bit and 64-bit Access/Excel.
'Requires no dll References in the VB Editor. It uses advapi32.dll, which needs no Reference
' as these are Windows API calls only.
'I have not seen documented anywhere else on the Internet how to make these calls in 64-bit apps.
# Executado script direto
root@bacula:~# ./teste.sh
2022/04/05 13:53:52 ##### Rclone Copy Bacula Backup to Cloud ##### - start
2022/04/05 13:53:52 Command: /usr/bin/rclone sync /etc/bacula onedrive_fc:bacula-backup/etc/bacula --stats=1000m --rc --rc-web-gui --rc-addr 0.0.0.0:5572 --rc-user admin --rc-pass admin --rc-web-gui-no-open-browser --onedrive-no-versions --exclude="*.pid" --exclude="*.state" --exclude="*.conmsg" --exclude="*.trace" --log-file /tmp/wasabi.tmp --log-level INFO --dry-run
2022/04/05 13:53:52 Uploading: /etc/bacula
2022/04/05 13:53:52 NOTICE: Web GUI exists. Update skipped.
2022/04/05 13:53:52 NOTICE: Serving Web GUI
2022/04/05 13:53:52 INFO : Using --user admin --pass XXXX as authenticated user
2022/04/05 13:53:52 NOTICE: Serving remote control on http://0.0.0.0:5572/
#!/bin/bash
# Author: Wanderlei Hüttel
# Email: wanderlei.huttel@gmail.com
# Version: 2.0
# Date: April 05, 2022
#=============================================================================================================
# Copy Bacula Volumes to Onedrive/Wasabi S3 Cloud and notify by telegram
#=============================================================================================================
@wanderleihuttel
wanderleihuttel / links_uteis.md
Last active May 14, 2020 18:10
Links Úteis sobre Power BI
@wanderleihuttel
wanderleihuttel / README.md
Created February 27, 2019 19:35 — forked from magnetikonline/README.md
Enable LDAP over SSL (LDAPS) for Microsoft Active Directory servers.

Enable LDAP over SSL (LDAPS) for Microsoft Active Directory servers

By default Microsoft active directory servers will offer LDAP connections over unencrypted connections (boo!).

The steps below will create a new self signed certificate appropriate for use with and thus enabling LDAPS for an AD server. Of course the "self-signed" portion of this guide can be swapped out with a real vendor purchased certificate if required.

Steps have been tested successfully with Windows Server 2012R2, but should work with Windows Server 2008 without modification. Requires a working OpenSSL install (ideally Linux/OSX) and (obviously) a Windows Active Directory server.

@wanderleihuttel
wanderleihuttel / xampp_php7_xdebug.md
Created February 27, 2019 12:25 — forked from odan/xampp_php7_xdebug.md
Installing Xdebug for XAMPP

Installing Xdebug for XAMPP with PHP 7.x

Requirements

Setup

XAMPP - Replacing MariaDB with MySQL

As of XAMPP 5.5.30 and 5.6.14, XAMPP ships MariaDB instead of MySQL. MariaDB is not 100% compatible with MySQL and can be replaced with the "orginal" MySQL server.

Requirements

  • Windows
  • XAMPP for Windows
  • Administrator privileges to restart Windows services
@wanderleihuttel
wanderleihuttel / accessing-virtualbox.md
Created July 6, 2018 13:40
Accessing your Virtualbox Guest from your Host OS

Accessing your Virtualbox Guest from your Host OS

As a developer you want to ping and access the webserver on your virtual machine. This is a very simple solution to enable the bridge to the guest VM.

Requirements

  • VirtualBox (latest version)
  • A guest operation system (e.g. Ubuntu)
@wanderleihuttel
wanderleihuttel / build-tree-from-directory.php
Created November 25, 2017 00:55 — forked from jonataswalker/build-tree-from-directory.php
Build a tree (array or json) from any directory.
<?php
**
* Public Domain.
* @author Jonatas Walker
* Based in: http://kvz.io/blog/2007/10/03/convert-anything-to-tree-structures-in-php/
* Usage:
* $root = '/home/www/';
* $allow_ext = array('jpg','gif');
* $exclude_dir = array('tilemill');
* $prefix = 'small';
@wanderleihuttel
wanderleihuttel / sort-tabs.txt
Created October 7, 2017 01:13 — forked from bpmore/sort-tabs.txt
Sort Tabs in Google Spreadsheets
1. Copy/Paste the information below to the clipboard
2. Open the spreadsheet whose sheets need to be alphabetised
3. Choose Tools > Script editor > Blank (this opens a new tab in the browser)
4. Press Control+A followed by Control+V copy and paste the script in
5. Press Control+S to save the script
6. Choose Run > sortSheets
7. Go back to the spreadsheet tab to view the new sorted tab order
--Copy everything below this line--
function sortSheets () {