Skip to content

Instantly share code, notes, and snippets.


Patricio Valarezo patovala

View GitHub Profile
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 | 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 /
Created Sep 12, 2016 — forked from mitsuji/
VirtualBox create vm shell script
# ./ vm1 Debian_64 1024 20000 3393 Downloads/debian-7.1.0-amd64-netinst.iso
# VBoxManage startvm vm1 -type headless
# VBoxManage unregistervm vm1 --delete
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(){
var dataToShow = scope.parallelData.filter(removeDamageData);
var graph = d3.parcoords()(pgraph)
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>