Skip to content

Instantly share code, notes, and snippets.

View hatembentayeb's full-sized avatar
🏠
Working from home

hatem ben tayeb hatembentayeb

🏠
Working from home
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="TestRunnerService">
#!/usr/bin/env bash
if [[ $# -eq 1 ]]
then
(cat dd.txt | grep octets | cut -d' ' -f7 ;cat tt.txt | grep real | cut -d'm' -f2 | tr 's' ' ') 2> res.txt
fi
#!/usr/bin/env bash
if [[ $# -eq 1 ]]
then
(cat dd.txt | grep octets | cut -d' ' -f7 ;cat tt.txt | grep real | cut -d'm' -f2 | tr 's' ' ') 2> res.txt
fi
@hatembentayeb
hatembentayeb / installation_oracle_xe_archlinux.md
Created January 25, 2019 16:21 — forked from davidmaignan/installation_oracle_xe_archlinux.md
Basic installation for oracle-xe on archlinux

Clone git repository

git clone https://aur.archlinux.org/oracle-xe.git
cd oracle-xe

Download oracle-xe-rpm.zip

wget http://download.oracle.com/otn/linux/oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
<button id="get"> get post </button>
<button id ="post"> Create post </button>
@hatembentayeb
hatembentayeb / jenkinsfile-commons.groovy
Created May 21, 2019 22:07 — forked from aliok/jenkinsfile-commons.groovy
Sample advanced Jenkins pipeline
/**
* This file provides common stuff to be used in the pipelines.
* It is important to load it after repo checkout is done: see https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md#triggering-manual-loading
*
*/
/**
* Dumps some info about the environment.
* @return
*/
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.cluster import KMeans
from sklearn.metrics import adjusted_rand_score
import json
import os
from flask import Flask,jsonify,request,render_template
app = Flask(__name__)
@app.route('/')
@hatembentayeb
hatembentayeb / Dockerfile
Created November 5, 2019 23:16 — forked from orenitamar/Dockerfile
Installing numpy, scipy, pandas and matplotlib in Alpine (Docker)
# Below are the dependencies required for installing the common combination of numpy, scipy, pandas and matplotlib
# in an Alpine based Docker image.
FROM alpine:3.4
RUN echo "http://dl-8.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk --no-cache --update-cache add gcc gfortran python python-dev py-pip build-base wget freetype-dev libpng-dev openblas-dev
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
RUN pip install numpy scipy pandas matplotlib