View ToGray.sh
for i in *.png; do name=`echo $i | awk -F '.' '{print $1}'`; convert "$i" -colorspace Gray "$name-gray.png"; done |
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.
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 compileQt.sh
#!/bin/sh | |
./configure -debug -opensource -developer-build -confirm-license |
View Convert bad png
convert image.png -strip image.png |
View rolisteam_clangformat
BasedOnStyle: LLVM | |
AccessModifierOffset: '-2' | |
AlignAfterOpenBracket: 'false' | |
AlignConsecutiveAssignments: 'false' | |
AlignOperands: 'true' |
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 |
View Git prompt
# ~/.bashrc | |
source ~/.git-prompt.sh | |
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\]' | |
___________________________________________________________ | |
# ~/.git-prompt.sh | |
# bash/zsh git prompt support | |
# |