Skip to content

Instantly share code, notes, and snippets.

@maranemil
maranemil / phpstorm64.vmoptions
Created June 21, 2018 09:01
PHPStorm 64 vm options
-Xms512m
-Xmx1024m
-Xss16m
-XX:ReservedCodeCacheSize=512m
-XX:SoftRefLRUPolicyMSPerMB=64
-XX:ParallelGCThreads=2
-XX:MaxPermSize=1024m
-XX:+DoEscapeAnalysis
-XX:+UseCodeCacheFlushing
-XX:MaxTenuringThreshold=2
@maranemil
maranemil / phpstorm64.vmoptions
Created June 14, 2018 09:39
Config PHP Storm to use 2 Threads - /home/user/.PhpStorm2018.1/config/phpstorm64.vmoptions
-Xms1024m
-Xmx2048m
-Xss32m
-XX:ReservedCodeCacheSize=1024M
-XX:SoftRefLRUPolicyMSPerMB=64
-XX:ParallelGCThreads=2
-XX:MaxPermSize=1024m
-XX:+DoEscapeAnalysis
-XX:+UseCodeCacheFlushing
-XX:MaxTenuringThreshold=2
@maranemil
maranemil / install_log.txt
Created June 13, 2018 20:58
Brother MFC-J265W Scanner Install in Bionic Beaver 18.04 (64 Bit)
############################################################################################
#
# Brother MFC-J265W Scanner Install in Bionic Beaver 18.04 (64 Bit)
#
############################################################################################
##############################################
# Download Following DEB Files
# http://support.brother.com/g/b/downloadlist.aspx?c=us&lang=en&prod=mfcj265w_all&os=128
@maranemil
maranemil / yolo34py_image_detection.py
Created June 1, 2018 13:33
Object Detection with yolo34
"""
#############################################
#
# https://pypi.org/project/yolo34py/
#
#############################################
https://github.com/madhawav/YOLO3-4-Py/blob/master/download_models.sh
http://www.erogol.com/object-detection-literature/
@maranemil
maranemil / video_object_detection_without_GPU.sh
Last active June 1, 2018 13:34
Video object detection without GPU wirth post-processing FFMPEG and DarkNet YoloV2
# create in yolo git folder a new one
mkdir jpg2
# extract images from video into folder, down scaling video from 1280x720 (1920x1080)
# start video from secind 26, run first 33 seconds of video
ffmpeg -ss 00:00:26.000 -i myvid.mp4 -s 640x360 -t 00:00:33 -r 6 jpg2/vid_%04d.jpg
# detect object in every image
# for f in jpg2/*.jpg; do echo "$f"; done
@maranemil
maranemil / object_detection_with_YoloV3_Darknet_ML.sh
Last active June 8, 2018 19:09
Object Detection with YoloV3 Darknet ML
# Install Yolo Package
git clone https://github.com/pjreddie/darknet.git
cd darknet
make
# Download weights files
wget https://pjreddie.com/media/files/yolov3.weights
wget https://pjreddie.com/media/files/yolo.weights
wget https://pjreddie.com/media/files/yolov2.weights
# Install Dependency Packages
sudo apt install python3-pip -y
pip3 install tensorflow
pip3 install numpy
pip3 install pandas
# Clone Models Repo
git clone https://github.com/tensorflow/models
@maranemil
maranemil / gist:bb7b98225ad8da2ce5cf
Last active August 29, 2015 14:26
Generate Random Date Beans with mySQL query sugarCRM
UPDATE `accounts` SET `date_entered`= CONCAT('2015-0',ROUND(1+RAND()*6),'-01 08:55:22') WHERE 1
OK rand accounts
---
UPDATE accounts SET date_entered= CONCAT('2015-0',ROUND(1+RAND()*7),'-0',ROUND(1+RAND()*8),' 0',ROUND(1+RAND()*4),':55:22') WHERE 1
UPDATE accounts SET date_modified = (SELECT CONCAT(date_entered + INTERVAL ROUND(1+RAND()*7) DAY,'') ) WHERE 1 LIMIT 1
OK rand calls
---
<?php
$app_list_strings['iso_country_code_phone_prefixes_list'] = array (
'' => '',
'AX' => 35818,
'DK' => 45,
'FO' => 298,
'FI' => 35,
'GL' => 299,
'IS' => 354,
<?php
$app_list_strings['phone_prefixes_list'] = array (
'' => '',
35818 => '+ 358 18',
45 => '+ 45',
298 => '+ 298',
35 => '+ 35',
299 => '+ 299',
354 => '+ 354',