Skip to content

Instantly share code, notes, and snippets.

@fulup-bzh
fulup-bzh / angular-ui-notification.scss
Created January 30, 2015 11:07
SCSS file for alexcrack/angular-ui-notification
/**
* angular-ui-notification - Angular.js service providing simple notifications using Bootstrap 3 styles with css transitions for animating
* @extend %author Alex_Crack
* @extend %version v0.0.2
* @extend %link https://github.com/alexcrack/angular-ui-notification
* @extend %license MIT
*/
$btn-common-primary-color: #191970;
$btn-common-primary-size: 1rem;
@fulup-bzh
fulup-bzh / alsa-test-hctl-find-elem.c
Created March 31, 2015 17:21
Alsa snd_hctl_find_elem function test
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/signal.h>
@fulup-bzh
fulup-bzh / docker-start.sh
Last active May 18, 2017 07:44
Start a Docker container with IP addr deducted from hostname & DNS
#!/bin/bash
# Author: Fulup Ar Foll (iot.bzh)
# Date: July-2015
# Oject: Start a Docker container with IP addr deducted from hostname & DNS
# Syntax: docker-start [brige=br0] [subnet=10.20.1.0] [netmask=24] [addr=auto] [gateway=auto] containerName/ID
# Licence: Any OpenSource Licences you like, until you fix bugs by yourself :)
# Source: https://gist.github.com/fulup-bzh
# Reference: http://blog.oddbit.com/2014/08/11/four-ways-to-connect-a-docker
@fulup-bzh
fulup-bzh / KEBA-Wallbox-UDP-Command.js
Created July 15, 2018 21:15
Simple javascript/node module to Handle KEBA P30 WallBox UDP command
'use strict';
// Author : Fulup Ar Foll
// Date : July-2018
// Licence : What ever please you until you fixe bug by yourself
// Object : Handle KEBA P30 WallBox UDP command
// Reference: https://www.keba.com/web/downloads/e-mobility/KeContact_P20_P30_UDP_ProgrGuide_en.pdf
// Debug : echo -n "report" | socat - UDP:KEBA:7090,bind=:7090,bindtodevice=eth0
// where: KEBA=IP-ADDR eth0 the internet interface when you send/receive data
@fulup-bzh
fulup-bzh / gist:cbca88fc07b3d92cc3e5f3a047ffde7f
Created June 5, 2024 12:41
Minimalist TLS-1.3 decrypting with gnutls
/*
* Minimalist sample to decrypt tls-1.3 with gnutls api
*
* Data input:
* crypt_buffers are extracted with wireshark from hello-tls-1.3.pcapng
* master_secret is extracted from hello-tls-1.3.keylog/CLIENT_TRAFFIC_SECRET_0
* cipher_name is extracted from hello_server message
*
* Compilation: gcc -lgnutls tls-decrypt-1.3.c -o tls-decrypt
* Pcap-trace: wireshark hello-tls-1.3.pcapng -o tls.keylog_file:hello-tls-1.3.keylog