Skip to content

Instantly share code, notes, and snippets.

View jbanety's full-sized avatar

Jean-Baptiste Alleaume jbanety

View GitHub Profile
@jbanety
jbanety / create_bootable_sierra_usb_stick.sh
Created June 24, 2020 08:04
Create a Sierra bootable USB Stick without createinstallmedia
#/bin/bash
VOLUME_NAME=CLEF
DMG_PATH=/Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg
hdiutil attach ${DMG_PATH} -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil convert /Volumes/install_app/BaseSystem.dmg -format UDSP -o /tmp/Sierra
hdiutil resize -size 8g /tmp/Sierra.sparseimage
hdiutil attach /tmp/Sierra.sparseimage -noverify -nobrowse -mountpoint /Volumes/install_build
rm /Volumes/install_build/System/Installation/Packages
cp -rp /Volumes/install_app/Packages /Volumes/install_build/System/Installation/
@jbanety
jbanety / Pentesting blog sources
Last active March 8, 2018 06:59 — forked from eyeskiller/Pentesting blog sources
Some of the blogs on Pentesting by some of the best researchers
http://pentestmonkey.net/blog
http://jeremiahgrossman.blogspot.com
http://www.darknet.org.uk
http://spylogic.net
http://taosecurity.blogspot.com
http://www.room362.com
http://blog.sipvicious.org
http://blog.portswigger.net
http://blog.c22.cc
http://carnal0wnage.blogspot.com
@jbanety
jbanety / fr.yml
Last active January 31, 2018 17:27
fr.yml
# TRANSLATOR(s): Martin Letellier, Jean-Baptiste Alleaume
fr:
language_name: "Français"
root: &root "Accueil"
how_can_we_help: "Support ETD Solutions"
browse_topics: "Parcourir"
support_team: "Equipe Support"
nothing_here: "Rien à voir ici !"
google-site-verification: googledbd823a99be2ad9e.html
@jbanety
jbanety / .htaccess
Created February 21, 2017 10:08
Fake sitemap.xml
## Mod_rewrite in use.
RewriteEngine On
# Sitemap dynamique
RewriteRule sitemap.xml sitemap.php [L]
@jbanety
jbanety / sitemap.php
Created February 21, 2017 10:06
Fake sitemap.xml
<?php
header('Content-Type: text/xml; charset=utf-8');
echo file_get_contents("http://[WEBSITEURL]/index.php?option=com_osmap&view=xml&id=1");
@jbanety
jbanety / boum.css
Last active February 8, 2017 17:09
h2:before {
display: block;
position: absolute;
left: -1050px;
top: 50%;
background-color: #ecc873;
height: 1px;
width: 1000px;
margin-top: -0.5px;
content: " ";
@jbanety
jbanety / create_labels.sh
Last active December 8, 2016 17:43 — forked from omegahm/create_labels.sh
Create Gtihub labels from Bash
#!/usr/bin/env bash
###
# Label definitions
###
declare -A LABELS
# Plateforme
LABELS["framework"]="BFD4F2"
LABELS["app"]="BFD4F2"
@jbanety
jbanety / build_memcache_php7_mamp.sh
Created August 25, 2016 15:19
Build Memcache PHP7 Ext
brew install pkg-config libmemcached
git clone https://github.com/php-memcached-dev/php-memcached.git
cd php-memcached/
git checkout php7
/Applications/MAMP/bin/php/php7.0.8/bin/phpize
./configure --disable-memcached-sasl --with-libmemcached-dir=/usr/local/opt/libmemcached
make
make install
echo "extension=memcached.so" >> /Applications/MAMP/bin/php/php7.0.8/conf/php.ini
@jbanety
jbanety / build_pcntl.sh
Last active February 6, 2024 02:50
(Updated) Build PCNTL ext for MAMP PHP 7.4.2
#!/bin/bash
PHP_VERSION=7.4.2
# Command lines tools
xcode-select --install
# Install dependencies
brew install wget autoconf openssl lzlib curl imap-uw readline postgresql gettext libxslt libiconv bison pkg-config krb5 bzip2 openldap tidy-html5
# Dirs