Skip to content

Instantly share code, notes, and snippets.

View jbanety's full-sized avatar

Jean-Baptiste Alleaume jbanety

View GitHub Profile
@jbanety
jbanety / export_gitlab_ci_instance_variables.sh
Created June 2, 2024 19:09
This Bash script exports all CI/CD variables from your GitLab instance, including instance-level, group-level, and project-level variables, and saves them into a backup file.
#!/bin/bash
# Replace with your personal GitLab access token
PRIVATE_TOKEN="YOUR_PRIVATE_TOKEN"
# Replace with the URL of your GitLab instance
GITLAB_URL="https://gitlab.example.com"
# Backup file
BACKUP_FILE="gitlab_ci_cd_variables_backup.txt"
# Function to export instance-level CI/CD variables
@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