Skip to content

Instantly share code, notes, and snippets.

Avatar

Patricio Valarezo patovala

View GitHub Profile
@patovala
patovala / gist:4c6e86a63e258a771f5da7506747f2d8
Last active Nov 15, 2021
secret generator to share securely over an insecure place
View gist:4c6e86a63e258a771f5da7506747f2d8
# Generate the key
`gpg --generate-key`
# Print your public key in the terminal
`gpg --export -a geguez@ioet.com | base64`
# Copy and share the public key with the person you will send the message to (this has to be done just once)
# import the public key of the sender (once per sender)
`echo <the text of the public key> | base64 --decode | gpg --import`
@patovala
patovala / create_vm.sh
Created Sep 12, 2016 — forked from mitsuji/create_vm.sh
VirtualBox create vm shell script
View create_vm.sh
#!/bin/sh
# ./create_vm.sh vm1 Debian_64 1024 20000 3393 Downloads/debian-7.1.0-amd64-netinst.iso
# VBoxManage startvm vm1 -type headless
# VBoxManage unregistervm vm1 --delete
VM_NAME=$1
OS_TYPE=$2
MEMORY_SIZE=$3
View gist:abd31615dcd4d1f06832
var removeDamageData = function(i){
return (('sourceIP' in row) && ('destinationIP' in row) && ('appProtocol' in row) && ('destinationPort' in row) && ('contentBytesTotal' in row));
};
var pgraph = element.find('.parcoords')[0];
function renderMe(){
if(scope.parallelData){
var dataToShow = scope.parallelData.filter(removeDamageData);
var graph = d3.parcoords()(pgraph)
.data(dataToShow)
View gist:5054ef8543d3dc14667c
<div class="modal" data-backdrop="false">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body">
<div ng-transclude></div>
</div>
</div>
</div>
</div>