Skip to content

Instantly share code, notes, and snippets.

@ElFadiliY
ElFadiliY / elasticsearch.sh
Last active December 31, 2015 22:49
Install ElasticSearch on Ubuntu 13.10
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.2.0.deb
sudo dpkg -i elasticsearch-1.2.0.deb
###########################
# Configuration
###########################
# use 256 term for pretty colors
set -g default-terminal "screen-256color"
# increase scroll-back history
set -g history-limit 5000
@ElFadiliY
ElFadiliY / elfadili-pc.md
Last active November 5, 2015 13:23
Applications and configuration on elfadili-pc's operating system (Ubuntu 14.04 LTS)

#Applications

Install VLC media player

sudo apt-get install vlc browser-plugin-vlc

Enable and install Gufw Firewall UI

sudo ufw enable
sudo ufw status
##################### ElasticSearch Configuration Example #####################
# This file contains an overview of various configuration settings,
# targeted at operations staff. Application developers should
# consult the guide at <http://elasticsearch.org/guide>.
#
# The installation procedure is covered at
# <http://elasticsearch.org/guide/en/elasticsearch/reference/current/setup.html>.
#
# ElasticSearch comes with reasonable defaults for most settings,
@ElFadiliY
ElFadiliY / build.xml
Last active August 29, 2015 14:09
A lovely little Ant task that not only makes one jar out of many (merge), it can also change package names of certain classes in byte-code! Ant Task using jarjar to rebuild jar packages https://code.google.com/p/jarjar
<project name="generate-jarjar">
<property name="jarjarfile" value="elfadili.jar"/>
<path id="classpath">
<pathelement location="jarjar-1.4.jar"/>
<pathelement location="asm-2.2.3.jar"/>
</path>
<taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpathref="classpath"/>
<delete file="${jarjarfile}"/>
<jarjar destfile="${jarjarfile}">
<zipfileset src="xyz.jar"/>
ActiveRecord cheat sheet / EXAMPLES
INSTALL
=======
$ gem install activerecord
in GEMFILE: gem ‘activerecord’
REQUIRE
=======
require ‘active_record’
#!/bin/bash
################################################################################
# Script for Installation: ODOO V8 server on Ubuntu 14.04 LTS
# Author: Yassine El Fadili
#-------------------------------------------------------------------------------
#
# This script will install ODOO Server on
# clean Ubuntu 14.04 Server
#-------------------------------------------------------------------------------
# USAGE:
#!/bin/bash
################################################################################
# Script for installing Odoo V9 on Ubuntu 14.04 LTS
# Author: El Fadili Yassine
# Company: CITEL Technology
#-------------------------------------------------------------------------------
# This script will install Odoo on clean Ubuntu 14.04 server. It can install multiple Odoo instances
# in one Ubuntu because of the different xmlrpc_ports
#-------------------------------------------------------------------------------
# USAGE:
@ElFadiliY
ElFadiliY / silence_install_apk
Created July 31, 2017 00:08 — forked from Jiezhi/silence_install_apk
install apk just in silence
/**
* Don't forget to add <uses-permission android:name="android.permission.INSTALL_PACKAGES" /> in AndroidManifest.xml
* I bind this function with Button
* referenced with http://www.trinea.cn/android/android-install-silent/
* @param view
*/
public void installAPK(View view) {
// assume there is a apk file in /sdcard/ path
String filePath = "/sdcard/RootExplorer_99.apk";
String[] args = {"pm", "install", "-r", filePath};
Start Ups/Business:
Thinking, Fast and Slow by Daniel Kahneman
The Four Steps to the Epiphany by Steve Blank
The Art of the Start: The Time-Tested, Battle-Hardened Guide for Anyone Starting Anything by Guy Kawasaki
Founders at Work: Stories of Startups' Early Days by Jessica Livingston
The Lean Startup: How Today's Entrepreneurs Use Continuous Innovation to Create Radically Successful Businesses by Eric Ries
Rework by 37signals
The E-Myth Revisited: Why Most Small Businesses Don't Work and What to Do About It by Michael Gerber
The Black Swan: Second Edition: The Impact of the Highly Improbable: With a new section: "On Robustness and Fragility" (Incerto) by Nassim Nicholas Taleb
Delivering Happiness: A Path to Profits, Passion, and Purpose by Tony Hsieh