Skip to content

Instantly share code, notes, and snippets.

View ibrahimelhadeg's full-sized avatar
🎯
Focusing

Ibrahim EL HADEG ibrahimelhadeg

🎯
Focusing
View GitHub Profile
@ibrahimelhadeg
ibrahimelhadeg / sublime-install-instructions.md
Created May 20, 2020 16:41
Instructions to install and configure Sublime Text 3

Sublime Setup

The following instructions will get you up and running with Sublime Text 3, supporting packages, and helpful repos.

Install HomeBrew

The first step is installing the HomeBrew package manager.

  1. Open Terminal.
  2. Install HomeBrew by pasting the following text into the terminal prompt.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@ibrahimelhadeg
ibrahimelhadeg / GitConfigHttpProxy.md
Created March 20, 2020 16:09 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@ibrahimelhadeg
ibrahimelhadeg / Git commit editior
Created February 14, 2019 15:50 — forked from S3ak/Git commit editior
How to set git commit editor to sublime
Method 1
git config --global core.editor "'c:/program files/sublime text 3/sublime_text.exe' -w"
Method 2
git config --global core.editor "subl -n -w"
Method 3
$ echo 'alias subl="/cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe"' >> ~/.bashrc
@ibrahimelhadeg
ibrahimelhadeg / fish_shell.md
Created February 14, 2019 14:23 — forked from idleberg/fish_shell.md
Instructions on how to install Fish shell on Mac OS X, including Oh My Fish!. Also includes several useful functions.

Installation

  1. Install fish via Brew
  2. Optionally install Oh My Fish!
  3. Add fish to known shells
  4. Set default shell to fish
brew install fish  
curl -L https://get.oh-my.fish | fish
@ibrahimelhadeg
ibrahimelhadeg / object-to-jaxbelement.java
Created December 20, 2017 10:38 — forked from barbietunnie/object-to-jaxbelement.java
Convert Object to JAXBElement
import javax.xml.bind.JAXBElement;
import javax.xml.namespace.QName;
public class JAXBElementDemo {
public static void main(String[] args) {
//Create a student object
Student student = new Student();
//fill details of the student
student.setName("Robert");
@ibrahimelhadeg
ibrahimelhadeg / gist:b514d7fcc388e09a63978bbc41fccc54
Created May 30, 2017 10:44
SimpleClientHttpRequest - Spring
SimpleClientHttpRequestFactory clientHttpRequestFactory = new SimpleClientHttpRequestFactory();
ClientHttpRequest request = clientHttpRequestFactory.createRequest(new URI("http://localhost:" + context.getEmbeddedServletContainer().getPort() + resourcePath), HttpMethod.GET);
ClientHttpResponse response = request.execute();