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 build -t dueto-reports . | |
docker run -it -d dueto-reports /bin/bash | |
docker run -v ~/Downloads/data/:/home -it -d dueto-reports |
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
python -m tensorboard.main --logdir=04/logs |
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
singularity run --bind $PWD/data:/data/db mongo.img --auth # run mongo db, instead of --auth insert port to prevent restriction | |
singularity run --bind /home/ccreanga/gatk,/illumina/sync/igenomes/Homo_sapiens/NCBI/GRCh38Decoy/Sequence/WholeGenomeFasta/:/home/ccreanga/gatk_data/data /illumina/development/singularity/gatk.simg | |
docker login docker-cgri.dockerhub.illumina.com | |
docker tag e4ae643c9055 docker-cgri.dockerhub.illumina.com/claudiu/gatk | |
docker push docker-cgri.dockerhub.illumina.com/claudiu/gatk | |
singularity pull docker://docker-cgri.dockerhub.illumina.com/claudiu/gatk | |
singularity shell /illumina/development/singularity/claudiu/gatk | |
singularity run --bind /home/ccreanga/singularity_test/:/home/ /illumina/development/singularity/dueto-reports.simg -d /home/build -i /home/demo_3.v2.sqlite |
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
SELECT | |
files.repo_name, | |
REGEXP_EXTRACT(contents.content,r'(.*"php".*)') AS version | |
FROM | |
[bigquery-public-data:github_repos.contents] AS contents | |
JOIN ( | |
SELECT | |
path, | |
repo_name, | |
id |
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 | |
use Magento\Framework\App\Bootstrap; | |
require '../app/bootstrap.php'; | |
$bootstrap = Bootstrap::create(BP, $_SERVER); | |
$obj = $bootstrap->getObjectManager(); | |
$state = $obj->get('Magento\Framework\App\State'); | |
$state->setAreaCode('frontend'); |
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
use Magento\Framework\App\Bootstrap; | |
require __DIR__ . '/app/bootstrap.php'; | |
$bootstrap = Bootstrap::create(BP, $_SERVER); | |
$obj = $bootstrap->getObjectManager(); | |
$state = $obj->get('Magento\Framework\App\State'); | |
$state->setAreaCode('frontend'); |
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 | |
use Magento\Framework\App\Bootstrap; | |
require __DIR__ . '/app/bootstrap.php'; | |
$bootstrap = Bootstrap::create(BP, $_SERVER); | |
$obj = $bootstrap->getObjectManager(); | |
$state = $obj->get('Magento\Framework\App\State'); |
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
setInterval() <-issues because sometimes it doesn’t finish before the next function starts. To solve it make setTimeout call itself: | |
(function(){ | |
doStuff(); | |
setTimeout(arguments.callee,100) | |
}() | |
arguments.callee to refer to the currently executing function | |
or better: | |
(function names(){ | |
doStuff(); |
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
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
// ---------------------------------------------------------------------------------------------------- | |
// - Display Errors | |
// ---------------------------------------------------------------------------------------------------- | |
ini_set('display_errors', 'On'); | |
ini_set('html_errors', 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
==== remove title of the page ==== | |
<cms_page translate="label"> | |
<reference name="content"> | |
<remove name="page_content_heading"/> | |
</reference> | |
</cms_page> | |
==== call title of cms pages ==== | |
<?php | |
$prefix = Mage::getStoreConfig('design/head/title_prefix'); |