Skip to content

Instantly share code, notes, and snippets.

View ECartman's full-sized avatar

Eduardo VC ECartman

View GitHub Profile
@ECartman
ECartman / MountLuks2vialKeyfile.sh
Last active December 14, 2020 06:44
A Helper Script to Mount Encrypted into linux while using a Ecrypted "keyring" that contain the Encryption keys/ for ease of use.
#!/bin/bash
##############################################
# This script is a helper to Mount Encripted Volumes
# we use luks (2) and Cryptsetup
# we also use a Encrypted File that contain Files that are use as
# decryption keys. this key are "safe" stored within a file that is
# encrypted. we will ask it to be decripted (hence you will at least be ask ONCE
# for a password or whatever measure it was used with Cryptsetup to decript the file
# once Decripted it will be mounted to a location setup and use the Keyfiles to unlock
# the actual volumes. WE DO THIS, this way cuz in my experince is better to use keyfiles
@ECartman
ECartman / loadNArticlev2.js
Last active July 4, 2019 20:47
a script to load the Article content from Nacion.com post
document.getElementsByTagName("body")[0].style= 'overflow-y:scroll;';
document.getElementsByClassName("g-overlay")[0].parentNode.removeChild(document.getElementsByClassName("g-overlay")[0]);
document.getElementById("metered_overlay").parentNode.removeChild(document.getElementById("metered_overlay"));
var xhr = new XMLHttpRequest();
xhr.onload = function() {
document.getElementById("main-content").innerHTML = this.responseXML.getElementById("main-content").innerHTML ;
//alert("Que Gato");
}
xhr.open( 'GET', window.location.toString());
xhr.responseType = 'document';
@ECartman
ECartman / CsvParser.java
Last active November 22, 2018 06:37
a PoC on how to Read a CSV file on Java using some features from Java8
/*
*
* Copyright © 2018 Eduardo Vindas Cordoba. All rights reserved.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN