Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
# Sublime Text 3 install with Package Control
# http://simonewebdesign.it/install-sublime-text-3-on-linux/
# Run this script with:
# $ curl -L git.io/sublimetext | sh
# Detect the architecture
input {
file {
type => "rodslog"
start_position => beginning
debug => true
sincedb_path => "/root/logstash/.sincedb"
path => [ "/root/logstash/logs/eu/var/log/irods/rodsLog.*" ]
}
}
@Janfy
Janfy / MarkdownCheatsheet.md
Created April 23, 2014 16:39
Markdown Cheatsheet
@Janfy
Janfy / demo_dialog.sh
Created March 26, 2014 17:10
"dialog" linux command demonstration
#!/bin/bash
# Script de présentation de dialog
# demo_dialog.sh copyleft spi.marc 2004
# Source: http://lea-linux.org/documentations/Dev-dialog
# Pour découvrir dialog par la pratique :
# faites tourner ce script, examinez son code.
# Différentes boîtes de dialog sont ici présentées dans
@Janfy
Janfy / gist:6608853
Last active December 23, 2015 08:39
multitail 2 fichiers distants

Merge des 2 fichiers

En prefixant chacune des lignes avec [APSx]

multitail -cS pgih --label "[APS1] " \
	-l 'ssh pgih@sv-t-vtl-sv3sr "tail -f /pgih/server/pf-dev/APS1/jboss-eap-6.1/standalone/log/server.log"' \
	-cS pgih --label "[APS2] " \
	-L 'ssh pgih@sv-t-vtl-sv3jb1 "tail -f /pgih/server/pf-dev/APS2/jboss-eap-6.1/standalone/log/server.log"' 

Affichage splitté des 2 fichiers

@Janfy
Janfy / gist:6544093
Created September 12, 2013 21:33
500 OOPS: vsftpd: refusing to run with writable root inside chroot()
wget http://ftp.us.debian.org/debian/pool/main/v/vsftpd/vsftpd_3.0.2-3_amd64.deb
dpkg -i vsftpd_3.0.2-3_amd64.deb
echo "allow_writeable_chroot=YES" >> /etc/vsftpd.conf
echo "seccomp_sandbox=NO" >> /etc/vsftpd.conf
service vsftpd reload
@Janfy
Janfy / gist:6423313
Last active December 22, 2015 05:19
jboss-cli : reload if server-state == reload-required
if value==reload-required of read-attribute server-state
reload
end-if
@Janfy
Janfy / gist:5867851
Created June 26, 2013 14:33
Re-synchroniser une branche avec origin en abandonnant toute ses modifs et commit
git fetch origin
git reset --hard origin/master
git clean -f -d
@Janfy
Janfy / rsync-pattern.sh
Last active December 17, 2015 13:58
rsync entre 2 répertoires en donnant la liste des fichiers à synchroniser
rsync -rcv --include-from=rsync-pattern.txt --exclude='*' --delete-excluded ~/repertoire1/ ~/repertoire2/