Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Renaud G. obiwankennedy

🎯
Focusing
View GitHub Profile
@obiwankennedy
obiwankennedy / ToGray.sh
Last active Dec 6, 2016
Convert all images (png) to gray scaled images.
View ToGray.sh
for i in *.png; do name=`echo $i | awk -F '.' '{print $1}'`; convert "$i" -colorspace Gray "$name-gray.png"; done
@obiwankennedy
obiwankennedy / CutSilentPartInVideo.py
Last active Feb 18, 2017
Found all videos from directories, then add opening and ending, then remove silent parts.
View CutSilentPartInVideo.py
#!/usr/bin/python
#
# 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:
# http://blog.rolisteam.org
#
# LICENCE: Creative Commons 0 - Public Domain
# I, the author of this script, wave any rights and place this work in the public domain.
View rolisteam_clangformat
BasedOnStyle: LLVM
AccessModifierOffset: '-2'
AlignAfterOpenBracket: 'false'
AlignConsecutiveAssignments: 'false'
AlignOperands: 'true'
@obiwankennedy
obiwankennedy / qmlhighlighter.cpp
Last active Sep 26, 2018
QSyntaxHighlight for QML
View qmlhighlighter.cpp
/***************************************************************************
* Copyright (C) 2014 by Renaud Guezennec *
* http://www.rolisteam.org/ *
* *
* 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, *
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
obiwankennedy / translate.py
Created Mar 29, 2019
Automatic translation of ts file (Qt i18n file) with Yandex
View translate.py
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import urllib.request
import xml.etree.ElementTree as ET
from yandex.Translater import Translater
import time
lang_dest="fr"
View reduce video size
ffmpeg -i input.mp4 -c:v libx265 -crf 28 -c:a aac -strict -2 -b:a 128k output.mp4
@obiwankennedy
obiwankennedy / compileQt.sh
Last active May 27, 2020
Compile qt on linux in opensource without interaction
View compileQt.sh
#!/bin/sh
./configure -debug -opensource -developer-build -confirm-license
You can’t perform that action at this time.