Skip to content

Instantly share code, notes, and snippets.

View llaumgui's full-sized avatar

Guillaume Kulakowski llaumgui

View GitHub Profile
@llaumgui
llaumgui / mulesoft_jcepbe_decrypt.java
Created November 4, 2020 10:28
An example class to decrypt a MuleSoft JCE encrypted PBE text.
import java.util.Arrays;
import java.util.Base64;
import javax.crypto.Cipher;
import javax.crypto.SecretKeyFactory;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.spec.PBEParameterSpec;
import javax.crypto.spec.IvParameterSpec;
@llaumgui
llaumgui / blink_arm.py
Created July 6, 2019 07:54
Arm / disarm my Blink network from shell
@llaumgui
llaumgui / 000-default-80.conf
Created February 21, 2018 20:35
redirect all http queries to https and allow Let's encrypt challenge.
#
# HTTP: Let's encrypt + redirect on HTTPs
#
<VirtualHost _default_:80>
ServerAdmin yorktown@kulakowski.fr
### Let's encrypt
Alias /.well-known/acme-challenge/ /var/www/challenges/
<Directory "/var/www/challenges">
# Allow open access:
@llaumgui
llaumgui / customexec.conf
Last active July 23, 2016 15:06
Bluetooth support in Odroid C2 with Jeedom.
# /etc/systemd/system/bluetooth.service.d/customexec.conf
[Service]
ExecStart=
ExecStart=/usr/lib/bluetooth/bluetoothd --noplugin=sap,pnat
ExecStartPost=/bin/hciconfig hci0 up
@llaumgui
llaumgui / touchpad-toggle.sh
Created October 29, 2015 20:25
Toggle touchpad activation with gsettings.
#!/bin/bash
#
# touchpad-toggle: Toggle touchpad activation with gsettings.
# Copyright (C) 2015 Guillaume Kulakowski <guillaume@kulakowski.fr>
# Version 1.0
#
SCHEMA="org.gnome.desktop.peripherals.touchpad"
KEY="send-events"
#!/bin/sh
# Remove old
rm -rf ~/.local/share/themes/{Arc,Arc-Darker,Arc-Dark}
# Git clone
cd ~/Workspace
git clone https://github.com/horst3180/arc-theme --depth 1 && cd arc-theme
# Make install
@llaumgui
llaumgui / motd-update.cron
Last active April 29, 2022 08:14
Update motd with avalaible package.
#!/bin/bash
#
# CentOS Logo based on https://gist.github.com/Redoubts/6654575
#
# Colors
YELLOW="\e[1;33m"
GREEN="\e[1;32m"
BLUE="\e[1;34m"
PURPLE="\e[1;35m"
@llaumgui
llaumgui / .vimrc
Last active August 29, 2015 14:07
My ~/.vimrc files
" General
set bg=dark
set ts=4
set nocompatible
set ruler
" Colors
set t_Co=256
syntax enable
colorscheme slate
@llaumgui
llaumgui / SamiConfig.php
Created September 3, 2014 11:56
Exemple of configuration from Sami API documentation (https://github.com/fabpot/Sami).
<?php
/*
* This file is a configuration for Sami: an API documentation generator
* https://github.com/fabpot/Sami
*/
use Sami\Sami;
use Sami\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;
@llaumgui
llaumgui / .gitconfig
Created September 3, 2014 11:49
My git configuration.
[user]
email = guillaume@kulakowski.fr
name = Guillaume Kulakowski
[color]
ui = auto
[alias]
st = status
ci = commit