Skip to content

Instantly share code, notes, and snippets.

Ismail Baaj ibaaj

  • Paris, France
Block or report user

Report or block ibaaj

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
View find.py
# -*- coding: utf-8 -*-
import requests
import json
import csv
from requests.auth import HTTPBasicAuth
from time import strftime
USERNAME = "XXXXXXX" # icloud username
PASSWORD = "XXXXXXX" # icloud pass
@ibaaj
ibaaj / get.py
Created Apr 30, 2017
track flight price drops
View get.py
from google_flight import google_flight_api
from pushbullet import Pushbullet
import datetime
import time
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
g = google_flight_api.GoogleFlight("XXXXXXXXXXXX")
@ibaaj
ibaaj / gist:7e2c6e1af14e23b37f785bcedb0e7ede
Created Apr 11, 2017
foule ffmpeg & image magique avec brou
View gist:7e2c6e1af14e23b37f785bcedb0e7ede
brew install ffmpeg --with-chromaprint --with-fdk-aac --with-fontconfig --with-freetype --with-frei0r --with-game-music-emu --with-libass --with-libbluray --with-libbs2b --with-libcaca --with-libebur128 --with-libgsm --with-libmodplug --with-libsoxr --with-libssh --with-libvidstab --with-libvorbis --with-libvpx --with-opencore-amr --with-openh264 --with-openjpeg --with-openssl --with-opus --with-rtmpdump --with-rubberband --with-schroedinger --with-sdl2 --with-snappy --with-speex --with-tesseract --with-theora --with-tools --with-two-lame --with-wavpack --with-webp --with-x265 --with-xz --with-zeromq --with-zimg
brew install imagemagick --with-fftw --with-fontconfig --with-ghostscript --with-hdri --with-liblqr --with-librsvg --with-libwmf --with-little-cms --with-little-cms2 --with-opencl --with-openexr --with-openjpeg --with-openmp --with-pango --with-perl --with-quantum-depth-16 --with-quantum-depth-32 --with-quantum-depth-8 --with-webp --with-x11 --with-zero-configuration
View ratpNew.sh
#!/bin/zsh
read -d '' query << EOF
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns="http://wsiv.ratp.fr" xmlns:xsd="http://wsiv.ratp.fr/xsd">
<soap:Header/>
<soap:Body>
<getMissionsNext>
<station>
<xsd:id>181</xsd:id>
@ibaaj
ibaaj / query-ratp-realtime.sh
Last active Sep 21, 2017
query-ratp-realtime.sh
View query-ratp-realtime.sh
#!/bin/zsh
read -d '' query << EOF
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns="http://wsiv.ratp.fr" xmlns:xsd="http://wsiv.ratp.fr/xsd">
<soap:Header/>
<soap:Body>
<getStations>
<station>
View awesome-gif.md
View bmlib.c
#include "berlekamp-massey.h"
int
berlekamp_massey(maxlen_t s, byte_t len, maxlen_t * poly, maxlen_t * lambda)
{
maxlen_t q = 1, t, k, i;
byte_t d;
int64_t m = -1;
*poly = 1;
View alias.sh
hex2dec(){
a=$(echo ${1} | tr "a-z" "A-Z");
echo "ibase=16; ${a}"|bc;
}
dec2hex(){
echo "obase=16; $@"|bc
}
dec2bin() {
echo "obase=2; ${1}" | bc -l;
View exo1.gp
default(realprecision, 9000);
t=[28,29,24,25,0,0,7];
k=20
p=751
{
for (i=1,7,
r=t[i]*k + 1;
q= Mod(r^3 -r + 188, 751);
for(j=0,t[i]+1,
@ibaaj
ibaaj / padding.gp
Created Oct 22, 2016
coppersmith_padding.gp
View padding.gp
default(realprecision,9000);
setrand(1);
p=nextprime(random(2^15));
q=nextprime(random(2^15));
N=p*q;
print("N=p*q="N);
P = random(N); \\ le padding
print("padding="P)
e = 3; \\ expo public
You can’t perform that action at this time.