Skip to content

Instantly share code, notes, and snippets.

View banditkroot's full-sized avatar

Boutard Florent banditkroot

  • France
View GitHub Profile
@banditkroot
banditkroot / xchat popup
Created May 25, 2014 17:53
Add Twitch commands for xchat userlist, copy/past in popup.conf
NAME SEP
CMD
NAME SUB
CMD Twitch
NAME SUB
CMD Subscribers
NAME ON
@banditkroot
banditkroot / frenchberet.pl
Last active August 29, 2015 14:02
Automatisation script, for the frenchberet marathon
use strict;
use warnings;
use Xchat qw(:all);
my @words = ("!runner", "!dons", "!planning", "!now", "!screen", "!war");
my $i = 0;
register('FrenchBerets', '1.0', 'Automatisation des commandes du frenchberet', \&unload);
prnt("\cC08FrenchBeret chargé !");
@banditkroot
banditkroot / whotwitch.pl
Last active August 29, 2015 14:02
Xchat perl script who give Twitch's user information in irc with !whotwitch twitcherusername
use strict;
use warnings;
use Xchat qw(:all);
use JSON qw(decode_json);
use Try::Tiny;
my $version = "0.21";
my $channel = "#channel";
my ($json, $decode, $user, $name, $type, $bio, $cree, $maj);
@banditkroot
banditkroot / gtkrc-2.0
Created July 15, 2014 14:59
My gtkrc file theme for Pidgin.
style "purplerc_style"
{
font_name = "Monospace 9"
base[NORMAL]="#000000"
text[NORMAL]="#FFFFFF"
GtkIMHtml::hyperlink-color="#007FFF"
GtkWidget::cursor-color="#60AFFE"
GtkWidget::secondary-cursor-color="#A4D3EE"
}
style "my-blist" {
@banditkroot
banditkroot / livestreamer_aide_fr.md
Last active August 29, 2015 14:04
Comment bien faire son fichier de configuration pour livestreamer et Twitch

##Rappel : Livestreamer est un logiciel permettant de visionner des streams Twitch, Hitbox, Dailymotion, etc sans passer par un navigateur et flash mais par le lecteur de votre choix, comme vlc.

Veuillez télécharger et installer Livestreamer.

##Utilisation : Livestreamer est très simple d'utilisation, il suffit d'ouvrir une invite de commande sous Windows, un terminal sous Linux et d'y entrer la commande suivante :

livestreamer twitch.tv/nomdelachaine best

Ici le stream sera lancé par défaut via vlc dans la meilleur qualité, vous pouvez sélectionner les qualités medium ou worst à la place de best (uniquement pour les streams avec partenariat sur Twitch).

@banditkroot
banditkroot / Opera 32 Linux html5.md
Last active May 8, 2020 19:08
Lire les vidéo x264/aac avec le html5 sous Opera 32 Linux et Ubuntu

Les vidéos sur les sites en html5, tel que Vine ou Youtube ne fonctionnent plus sous les dernières versions d'Opera.

Tout d'abord dans votre terminal, taper :

sudo apt-get update
sudo apt-get install chromium-codecs-ffmpeg-extra

Ceci installera la libraire ffmpeg de Chromium, navigateur duquel Opera est développé.

sudo cp /usr/lib/chromium-browser/libs/libffmpeg.so /usr/lib/x86_64-linux-gnu/opera/lib_extra/

@banditkroot
banditkroot / mednafen.sh
Created September 29, 2016 21:12
Petit lanceur pour l'émulateur mednafen.
#!/bin/bash
fichier=`zenity --file-selection --file-filter=""*.zip" "*.cue"" --title="Mednafen"`
mednafen "$fichier"
@banditkroot
banditkroot / cb_cpu.py
Last active January 14, 2017 00:52
CPU load with Codebug tether
#!/usr/bin/python3
import codebug_tether
import psutil
import time
cb = codebug_tether.CodeBug('/dev/ttyACM0')
def setcol(x):
if x == 1:
@banditkroot
banditkroot / bt_car.py
Created March 18, 2017 22:31
Pocket Chip bluetooth RC car
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import bluetooth
import pygame
import sys
#Préparation de l'écran et de pygame
size = width, height = 480, 272
screen = pygame.display.set_mode(size)
@banditkroot
banditkroot / config
Created November 15, 2017 00:39
My Newsbeuter Solarized dark 256 colors
color listnormal color241 default
color listfocus color235 color136
color listnormal_unread color37 default
color listfocus_unread color234 color136
color background color37 default
color info color241 color235
color article default default
highlight article "^(Feed):.*$" yellow default
highlight article "^(Titee):.*$" blue default
highlight article "https?://[^ ]+" red default