Skip to content

Instantly share code, notes, and snippets.

View pazairfog's full-sized avatar

Anfor pazairfog

  • Axess Open Web Services
  • Toulouse, France
View GitHub Profile
@pazairfog
pazairfog / common.ini
Last active November 10, 2017 16:18
Shared configuration between PHP cli and apache2 mods
[xdebug]
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
# Not safe for production servers
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=false
xdebug.idekey=xdebug-atom
#!/bin/bash -e
SOLR_VERSION="5.5.4"
SOLR_DIR="/opt/solr-"$SOLR_VERSION
mkdir -p $SOLR_DIR
cd $SOLR_DIR
wget http://archive.apache.org/dist/lucene/solr/$SOLR_VERSION/solr-$SOLR_VERSION.tgz
tar xzf solr-$SOLR_VERSION.tgz --strip-components=1
@pazairfog
pazairfog / import.py
Last active June 1, 2017 13:23
python POE parsing stash account
#! /usr/bin/python
import getopt, json, requests, sys, time, urllib2
# Nombre par defaut d'iteration pour recuperer les stashes.
loop = 5
try:
# Le premier argument est toujours le nom du script, on le retire.
opts, args = getopt.getopt(sys.argv[1:], "hl:", ["loop="])
@pazairfog
pazairfog / README.md
Last active July 25, 2018 08:30
Atom IDEish installation, configuration and beyond
@pazairfog
pazairfog / ECK
Last active October 31, 2017 11:18
D7 fast clone node, menu item, scald context...
drush ev '$entity = entity_load_single(ECK_ENTITY_TYPE, ID); $entity->id = $entity->created = NULL; $entity->title = "[TEST] " . $entity->title; entity_save(ECK_ENTITY_TYPE, $entity);'
@pazairfog
pazairfog / .gitconfig
Last active November 10, 2017 20:46
Global git config
[user]
email = whatever@whoever.fr
name = whatever
[alias]
oops = commit --amend
log-me = log --author=whatever --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
log-me-week = !/bin/bash -c 'git log-me --since="1.week"'
me-pull-full = pull -v --recurse-submodules
me-submodule = submodule update --init --recursive
pl-all = !/bin/bash -c 'cd $(git rev-parse --show-toplevel) && git me-pull-full && git fetch -v --tags && git me-submodule && cd -'
@pazairfog
pazairfog / config
Last active May 9, 2023 02:20
Global ZSH config
# Configuration globale
export LANG=fr_FR.UTF-8
# Preferred editor for local and remote sessions
export EDITOR='vim'
# Look in ~/.oh-my-zsh/themes/
ZSH_THEME="kolo"
# Add wisely, as too many plugins slow down shell startup.