$ docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import time | |
import select | |
HOST = '0.0.0.0' | |
PORT = 8000 | |
PING_RATE = 5 | |
CHANNEL = 'timing' | |
BUFFER_SIZE_10_MB = 10 * 1024 * 1024 # 10 MB buffer | |
LOGIN_MSG = 'LOGIN:::{"user":"my_user","password":"my_pass","app":"Manual Test", "app_ver":"1.0.0","protocol":" AKS V2 Protocol", "protocol_ver":"1.0.0"}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull dataplatform/docker-vertica | |
docker build -t dataplatform/docker-vertica . | |
docker run -p 5433:5433 -d -v /data/vertica/vertica_data:/home/dbadmin/docker dataplatform/docker-vertica | |
vsql -hlocalhost -Udbadmin | |
#vertica: access via cli local | |
/opt/vertica/bin/vsql -Udbadmin -p5433 -hlocalhost | |
#vertica: check structure of table | |
select EXPORT_OBJECTS('','schema.table_name'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::=============================================================== | |
:: Download and install cli from https://awscli.amazonaws.com/AWSCLIV2.msi OR https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html | |
::=============================================================== | |
aws configure | |
ACCESS-KEY:key | |
SECRET:secret | |
aws s3 ls s3://bucket-name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//CHANGE STARTS FROM LINE NO 60, you could replace the file if you're using xampp (pls backup existing one just in case) | |
/* | |
* This is needed for cookie based authentication to encrypt password in | |
* cookie | |
*/ | |
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */ | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery("a").click(function(e) { | |
var leave = confirm("Whoa ! 😮 I dare you press ok"); | |
if(leave){ | |
var really = confirm("Ok is for losers ! Cancel is FTW 😎"); | |
if(really){ | |
window.close(); | |
}else{ | |
event.preventDefault(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var waitForEl = function(id, callback) { | |
//if ($('#widget_main_div').length != 0) { | |
// callback(); | |
//} else { | |
// setTimeout(function() { | |
// waitForEl($("#" + id).is(":visible"), callback); | |
// }, 1000); | |
//} | |
if(content.length !=0){ | |
callback() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="foo"> | |
<input type="text" name="name"> | |
<!-- | |
.... | |
--> | |
</form> | |
<script> | |
//callback doesn't run if HTML validation fails | |
$('form').submit(function(event) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.grid-container-portfolio-home { | |
padding-top: 1em; | |
display: grid; | |
grid-template-columns: 1fr 1fr 1fr 1fr; | |
grid-template-rows: 1fr 1fr 1fr; | |
grid-gap:1em; | |
grid-template-areas: "main-img main-img sec-img-1 sec-img-2" "main-img main-img sec-img-3 sec-img-4" ". . . ."; | |
} |
NewerOlder