Skip to content

Instantly share code, notes, and snippets.

View pgrimaud's full-sized avatar
:shipit:
BORED AS FUCK

Pierre Grimaud pgrimaud

:shipit:
BORED AS FUCK
View GitHub Profile
@pgrimaud
pgrimaud / auction.json
Created April 22, 2022 12:33
auction.json
{
"id": 45,
"type": "english",
"status": "active",
"transferId": "693110490",
"quantity": "1888279210411577156",
"decimals": 18,
"tokenType": "GOG",
"asset": {
"createdAt": "2022-04-22T11:04:26+00:00",
@pgrimaud
pgrimaud / auctions.json
Last active April 22, 2022 12:32
auctions.json
{
"result": [
{
"id": 41,
"type": "english",
"status": "expired",
"transferId": "478530471",
"quantity": "1085960303663499411",
"decimals": 18,
"tokenType": "USDC",
@pgrimaud
pgrimaud / main.py
Last active September 24, 2021 16:14
Random numbers
numbers = [328,156,938,903,708,435,420,770,439,162,574,601,625,632,627,349,62,587,518,405,621,682,40,835,36,70,830,768,622,187,984,213,475,167,100,875,945,85,97,392,791,658,800,674,269,378,882,322,324,531,227,660,99,843,170,954,670,332,128,345,356,280,396,900,104,215,643,579,285,234,855,789,91,569,975,549,527,548,473,18,612,709,537,781,74,538,878,628,996,681,525,437,558,343,184,81,98,646,63,888,504,458,44,490,60,390,330,782,147,131,287,255,77,483,616,831,281,599,872,71,535,937,606,90,367,836,83,366,121,635,930,211,603,369,45,732,694,261,655,380,220,551,656,816,961,23,20,698,276,745,1000,297,570,556,809,318,226,247,725,182,914,560,942,676,542,350,513,990,973,840,196,691,9,153,6,896,714,355,368,228,931,739,593,776,351,283,941,183,617,786,607,710,145,668,881,750,404,993,586,382,102,19,177,623,526,123,948,57,916,462,774,803,982,833,976,939,362,1,697,901,837,305,726,260,429,692,927,242,389,647,523,767,190,35,497,545,181,883,662,137,417,540,3,315,342,264,363,754,101,985,105,520,321,756,50,686,428,822,790,294,921,54
@pgrimaud
pgrimaud / index.php
Last active January 26, 2021 16:00
Mini API
<?php
# Lancer le projet rapidement : php -S 127.0.0.1:8000
# Features
# - Login via API
# - Requête HTTP de type POST
# - /login
# - récupérer la liste des comptes via API
# - Requête HTTP de type GET
@pgrimaud
pgrimaud / id_rsa.pub
Created November 12, 2020 14:06
id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDwvDbAPbzoFktb2p1Y8d15V4rJE4kZhu8WTjRF8BWmWT7xxkiqLEkxhdd6KsFfR0ggsVHPSdXv2FjKMfH5oDFTYXWemxunGXGxc7MCu08WRfGSmamhof/Z45mmqH2MrGPXKhKeFVUaIoK1OxjCtNpjRRm5jij4MYXpqNPJOnbhMNhWj1feChO3Tz8ElQEt+eWcZFEkV7FQpn+wq0W5PrfD1YsWK60Thuy1LrMxWT2P1NrGzMtRPteitGlbbYRCboTwekChPTHH3aQnBkThT3lFZnGDWLSspD3LzzhVMrT9EN2G7A1oERFKrQ5AWWwrVsM6hgrE1MCepQZYS5l92UZv pgrimaud@nilzen
@pgrimaud
pgrimaud / karma.conf.js
Created September 29, 2020 22:10
Karma custom Launchers
customLaunchers: {
ChromeHeadlessCI: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
}
@pgrimaud
pgrimaud / pdo.php
Last active March 20, 2023 15:25
Test file PDO
<?php
$pdo = new PDO('mysql:host=iim_mysql', 'root', 'root');
$databases = $pdo->query('SHOW DATABASES')->fetch(PDO::FETCH_ASSOC);
print_r($databases);
@pgrimaud
pgrimaud / httpd-vhosts.conf
Last active March 20, 2023 15:14
config/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "/usr/local/apache2/htdocs"
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://iim_php:9000/var/www/html/$1
</VirtualHost>
@pgrimaud
pgrimaud / Dockerfile
Last active March 20, 2023 14:39
Dockerfile Apache
FROM httpd:2.4
RUN echo 'LoadModule proxy_module modules/mod_proxy.so' >> /usr/local/apache2/conf/httpd.conf
RUN echo 'LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so' >> /usr/local/apache2/conf/httpd.conf
RUN echo 'Include conf/extra/httpd-vhosts.conf' >> /usr/local/apache2/conf/httpd.conf
@pgrimaud
pgrimaud / encrypt.php
Last active December 30, 2023 10:35
Instagram enc_password generator
<?php
$data = file_get_contents('https://www.instagram.com/data/shared_data/');
$json = json_decode($data);
$password = 'password'; //fuck-itdoesntwork;
$publicKey = '8dd9aad29d9a614c338cff479f850d3ec57c525c33b3f702ab65e9e057fc087e';// $json->encryption->public_key;
$keyId = 154; //$json->encryption->key_id;
$version = 10; //$json->encryption->version;