Skip to content

Instantly share code, notes, and snippets.

View patovala's full-sized avatar

Patricio Valarezo patovala

View GitHub Profile
<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>
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)
@patovala
patovala / create_vm.sh
Created September 12, 2016 23:55 — forked from mitsuji/create_vm.sh
VirtualBox create vm shell script
#!/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
@patovala
patovala / gist:4c6e86a63e258a771f5da7506747f2d8
Last active November 15, 2021 21:35
secret generator to share securely over an insecure place
# 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 / solution.sql
Created February 8, 2023 00:35
First Attempt for solution
/*
employees projects
+---------------+---------+ +---------------+---------+
| id | int |<----+ +->| id | int |
| first_name | varchar | | | | title | varchar |
| last_name | varchar | | | | start_date | date |
| salary | int | | | | end_date | date |
| department_id | int |--+ | | | budget | int |
+---------------+---------+ | | | +---------------+---------+