Skip to content

Instantly share code, notes, and snippets.

<?php
// we suppose that sellsyconnect, sellsytools and boot files are created..
/*******Code to create client*******/
//We configure parameters for new client
$create_client_request = array (
'method' => 'Client.create',
@lighta971
lighta971 / gist:5991459c53fabcc50400
Last active December 4, 2015 10:55
My tmux.conf
set-option -g status-utf8 on
# Change key binding
set prefix C-a
unbind-key C-b
bind-key C-a send-prefix
#Powerline integration
#run-shell "powerline-daemon -q"
@lighta971
lighta971 / install_canon_mp230.sh
Created November 8, 2014 14:36
Install CANON PIXMA MP230 linux scanner
#!/bin/sh
cd /temp
//Download libtiff4 - http://packages.ubuntu.com/saucy/libtiff4
wget http://mirrors.kernel.org/ubuntu/pool/universe/t/tiff3/libtiff4_3.9.7-2ubuntu1_amd64.deb
sudo dpkg -i libtiff4_3.9.7-2ubuntu1_amd64.deb
//Download canon's sotfwares - http://www.canon.fr/Support/Consumer_Products/products/Fax__Multifunctionals/InkJet/PIXMA_MP_series/PIXMA_MP230.aspx?type=download&language=EN&os=Linux
@lighta971
lighta971 / filter_tar.sh
Created October 22, 2014 13:07
Tar filtering
find ./www -name "*.php" ! -path "./www/cache/*" | tar -cf wwwBackup.tar.gz -T -
@lighta971
lighta971 / createArticleForm
Created September 21, 2014 00:13
intech java: create article exo
package fr.intechinfo.s5.jee.servletJsp;
import java.io.IOException;
import java.util.Date;
import javax.annotation.Resource;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.PersistenceContext;
import javax.servlet.ServletException;
@lighta971
lighta971 / tmux.conf
Last active August 29, 2015 14:06
Tmux - Workaround to select text when mouse mode is ON
#http://awhan.wordpress.com/2012/04/18/tmux-copy-paste-with-mouse/#comment-465
# Mouse mode
set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
# Toggle mouse on
bind m \
FROM ubuntu:precise
MAINTAINER Aurel <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq && \
apt-get -y install git-core chromium-browser\
build-essential python-setuptools \
python-dev python-pip \
@lighta971
lighta971 / ionic_dockerfile
Last active May 14, 2016 21:53
Ionic cordova android dockerfile
# Android development environment for ubuntu precise (12.04 LTS).
# version 0.0.1
# Start with ubuntu precise (LTS).
FROM ubuntu:12.04
MAINTAINER Aurel <[email protected]>
# Never ask for confirmations
ENV DEBIAN_FRONTEND noninteractive
@lighta971
lighta971 / docker_image_flatten.sh
Created August 8, 2014 21:21
Flatten docker image to reduce size. All meta data will be loose
docker export 7423d238b | docker import - sample:flat
@lighta971
lighta971 / Dockerfile
Created August 8, 2014 19:41
Cordova dockerfile
# Cordova tools for ubuntu precise (12.04 LTS).
# version 0.0.1
FROM ahazem/android:v0.7.6
MAINTAINER peernohell <[email protected]>
# Install jdk7 and uninstall oracle-jdk6
RUN add-apt-repository ppa:webupd8team/java && apt-get update
RUN apt-get -y install oracle-java7-installer && rm -rf /usr/lib/jvm/java-6-oracle