Skip to content

Instantly share code, notes, and snippets.

Houssem Fathallah houssemFat

Block or report user

Report or block houssemFat

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@houssemFat
houssemFat / process.py
Created Oct 24, 2016
Image tools processing
View process.py
from PIL import Image
from math import floor
from PIL import ImageFilter
def cin():
pil_im = Image.open('test.png')
width = pil_im.width
height = pil_im.height
@houssemFat
houssemFat / json.go
Last active Nov 21, 2016
Golang snippets
View json.go
package main
import (
"encoding/json"
"fmt"
)
func main() {
s := `{"text":"I'm a text.","number":1234,"floats":[1.1,2.2,3.3],"innermap":{"foo":1,"bar":2}}`
View dash_engines.html
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/gridstack.js/0.2.6/gridstack.min.css" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"/>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.0/jquery-ui.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.5.0/lodash.min.js"></script>
<script type="text/javascript" src='https://cdnjs.cloudflare.com/ajax/libs/gridstack.js/0.2.6/gridstack.min.js'></script>
<script src="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.js"></script>
</head>
View tips.md

You have not concluded your merge (MERGE_HEAD exists)

Source

Error when pulling with You have not concluded your merge (MERGE_HEAD exists)

git merge --abort reolve confilcts git pull

get a clean copy of ressources

git merge --abort git pull -Xtheirs github master

View commands_flask_app_locally
50 ls
2051 chmod 777 -R Dockerfile
2052 rm Dockerfile~
2053 rm server.py~
2054 ls
2055 docker build flask_app .
2056 docker build .
2057 docker
2058 docker build --h
2059 docker build --help
View Issues.md

lookup address issue

docker-machine ssh

echo "nameserver 8.8.8.8" > /etc/resolv.conf

@houssemFat
houssemFat / installtions.md
Created Jan 25, 2017
rabbitMQ + enable http authentication & authorization with
View installtions.md

Get Http plugin

Download .ez file the rabbit MQ plugin

Move the plugin ez file rabbitmq_auth_backend_http-3.6.x-1b27d722.ez under plugins folder of rabbitMQ server installtion

Plugin enabling

  • To enable http backend plugin rabbitmq-plugins.bat enable rabbitmq_auth_backend_http
  • To enable the SASL mechanism
@houssemFat
houssemFat / command.sh
Created Feb 7, 2017
Running docker with volumes on windows
View command.sh
docker run -d -p 1883:1883 --name=mosquitto
-v //c//Users//houssem.fathallah//data:/var/messageSight/
-v //c//Users//houssem.fathallah//data//mosquito:/etc/mosquitto \
-v //c//Users//houssem.fathallah//data//mosquito.d:/etc/mosquitto.d \
-v //c//Users//houssem.fathallah//var//mosquitto:/var/lib/mosquitto \
-v //c//Users//houssem.fathallah//var//mosquitto/auth-plug.conf:/etc/mosquitto.d/auth-plugin.conf \
sourceperl/mosquitto
We couldn’t find that file to show.
View and
from .env import YowsupEnv
import base64
import hashlib
class AndroidYowsupEnv(YowsupEnv):
_SIGNATURE = "MIIDMjCCAvCgAwIBAgIETCU2pDALBgcqhkjOOAQDBQAwfDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFDASBgNV" \
"BAcTC1NhbnRhIENsYXJhMRYwFAYDVQQKEw1XaGF0c0FwcCBJbmMuMRQwEgYDVQQLEwtFbmdpbmVlcmluZzEUMBIGA1UEAxMLQnJ" \
"pYW4gQWN0b24wHhcNMTAwNjI1MjMwNzE2WhcNNDQwMjE1MjMwNzE2WjB8MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5" \
"pYTEUMBIGA1UEBxMLU2FudGEgQ2xhcmExFjAUBgNVBAoTDVdoYXRzQXBwIEluYy4xFDASBgNVBAsTC0VuZ2luZWVyaW5nMRQwEg" \
You can’t perform that action at this time.