Skip to content

Instantly share code, notes, and snippets.

View tuxity's full-sized avatar

Kévin tuxity

  • Earth
  • 21:36 (UTC +01:00)
View GitHub Profile
@tuxity
tuxity / .emacs
Last active September 27, 2015 13:17
Emacs 24.3 options
;; Remove menu bar
(menu-bar-mode -1)
;; Line highlight
(global-hl-line-mode t)
(custom-set-faces '(highlight ((t (:weight bold)))))
;; Line number
(global-linum-mode t)
(setq linum-format "%d ")
@tuxity
tuxity / youtube_url.tcl
Created March 6, 2012 12:40
Display video name with youtube logo when there is a youtube link.
bind pubm -|- "*youtube.*watch*v=*" youtubesurl
proc youtubesurl {nick host hand chan text} {
set youtubelogo "\002\00301,00You\00300,04Tube\002\017"
set textf "\002\017"
set youtubecheck [regexp -all -nocase {(v=[\d\w-]{11})} $text youtubeid]
if {$youtubeid != ""} {
set youtubesite www.youtube.com
set youtubeurl "/watch?$youtubeid"
if {[catch {set youtubesock [socket -async $youtubesite 80]} sockerr]} {
@tuxity
tuxity / save_wow_db.sh
Created June 12, 2012 10:12
Save WoW databases
#!/bin/bash
# TODO:
# - Handle antifreeze detection
# - Handle transfer of backup on external server
####################### CONFIG #######################
MYSQLHOST="127.0.0.1"
MYSQLUSER="root"
MYSQLPASS=""
MYSQLDBAUTH="auth"
MYSQLDBCHAR="characters"
@tuxity
tuxity / gitfilterbranch.sh
Created September 17, 2012 13:42
Script to rewrite broken history of TrinityCore
#!/bin/sh
git filter-branch -f --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_AUTHOR_NAME" = "[email protected]>" ]
@tuxity
tuxity / check_siret.php
Created July 21, 2013 12:34
Search into website societe.com if a SIRET exists or not. Other solutions exists like with http://ec.europa.eu/taxation_customs/index_fr.htm
<?php
/*
* Search into website societe.com if a SIRET exists or not
*/
function SIRETExists($checkSIRET)
{
$checkRCS = substr($checkSIRET, 0, 9);
$retURL = @file_get_contents("http://www.societe.com/cgi-bin/recherche?rncs=".$checkRCS);
if (empty($retURL))
@tuxity
tuxity / slap.scpt
Last active January 1, 2016 14:38
Backport Linkinus script to Textual - http://www.codeux.com/textual/wiki/Writing-Scripts.wiki
-- Script Name: Slap
-- Version: 1.6.2
-- Description: Slap script executes a /me action that will highlight and humiliate the subject
-- Author: Nikolas 'Okeanos' Grottendieck
on textualcmd(parameter, destinationChannel)
-- setup
-- linebreak character
set nl to ASCII character 10
1/
Install : https://github.com/davromaniak/scriptomaniak/blob/master/pbuilderrc
ARCH="amd64" DIST="jessie" pbuilder create --othermirror "deb http://mirrors.xbmc.org/test-builds/apt/debian stable/" --extrapackages "wget libfuse2 libgcrypt11 udev autopoint"
2/
ARCH="amd64" DIST="jessie" pbuilder --login --save-after-exec --debootstrap qemu-debootstrap
diff --git a/tools/Linux/packaging/mk-debian-package.sh b/tools/Linux/packaging/mk-debian-package.sh
index 5fd2efc..d4f5f5d 100755
--- a/tools/Linux/packaging/mk-debian-package.sh
+++ b/tools/Linux/packaging/mk-debian-package.sh
@@ -151,9 +151,9 @@ function buildDebianPackages {
}
function uploadPkg {
- PKG="${PBUILDER_BASE}/${dist}-${arch}/result/${DEST/-/_}-${TAGREV}_${arch}.changes"
+ PKG="${PBUILDER_BASE}/${dist}/${arch}/result/${DEST/-/_}-${TAGREV}_${arch}.changes"
<?php
// Put your Betaserie account informations
define("API_KEY", "");
define("LOGIN", "");
define("PASSWORD", "");
// END OF CONFIGURATION
{
"volumes": null,
"id": "/mariadb/node",
"cmd": null,
"args": [
"--binlog-format=row",
"--wsrep_on",
"--wsrep_cluster_name",
"fathosting_wsrep_cluster",
"--wsrep_provider",