Skip to content

Instantly share code, notes, and snippets.


Renaud G. obiwankennedy

View GitHub Profile
View Git prompt
# ~/.bashrc
source ~/
PS1='\[\e[0;32m\]\u\[\e[m\]@\h \[\e[1;34m\]\w\[\e[m\]$(__git_ps1 "[%s]")\[\e[1;32m\]\$\[\e[m\] \[\e[1;37m\]'
# ~/
# bash/zsh git prompt support
View reduce video size
ffmpeg -i input.mp4 -c:v libx265 -crf 28 -c:a aac -strict -2 -b:a 128k output.mp4
obiwankennedy /
Created Mar 29, 2019
Automatic translation of ts file (Qt i18n file) with Yandex
# -*- coding: utf-8 -*-
import urllib.request
import xml.etree.ElementTree as ET
from yandex.Translater import Translater
import time
View rolisteam_clangformat
BasedOnStyle: LLVM
AccessModifierOffset: '-2'
AlignAfterOpenBracket: 'false'
AlignConsecutiveAssignments: 'false'
AlignOperands: 'true'
obiwankennedy /
Last active May 27, 2020
Compile qt on linux in opensource without interaction
./configure -debug -opensource -developer-build -confirm-license
obiwankennedy /
Last active Feb 18, 2017
Found all videos from directories, then add opening and ending, then remove silent parts.
# This Python script adds opening and ending on Roleplaying game videos then it cuts silent parts.
# Silent parts lasts 1 seconds at least of full silence.
# For more details, see this blog post:
# LICENCE: Creative Commons 0 - Public Domain
# I, the author of this script, wave any rights and place this work in the public domain.
View diceResult.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
obiwankennedy / qmlhighlighter.cpp
Last active Sep 26, 2018
QSyntaxHighlight for QML
View qmlhighlighter.cpp
* Copyright (C) 2014 by Renaud Guezennec *
* *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
obiwankennedy /
Last active Dec 6, 2016
Convert all images (png) to gray scaled images.
for i in *.png; do name=`echo $i | awk -F '.' '{print $1}'`; convert "$i" -colorspace Gray "$name-gray.png"; done