Skip to content

Instantly share code, notes, and snippets.

View hootlex's full-sized avatar

Alex Kyriakidis hootlex

View GitHub Profile
@hootlex
hootlex / install.sh
Last active August 29, 2015 14:19 — forked from stayallive/install.sh
Install PHP 5.5.24 on Plesk 11.5 and 12 (CentOS 6)
#!/bin/bash
# Make sure you are up to date
yum -y update && yum -y install wget
# Install EPEL repository
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# Get us a clean working directory
mkdir /php
@hootlex
hootlex / install.sh
Last active August 29, 2015 14:19 — forked from stayallive/install.sh
Install PHP 5.6.8 on Plesk 11.5 & 12 (CentOS 6)
#!/bin/bash
# Make sure you are up to date
yum -y update && yum -y install wget
# Install EPEL repository
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
# Get us a clean working directory
mkdir /php
@hootlex
hootlex / laravellocal.md
Last active May 3, 2024 08:06
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@hootlex
hootlex / gist:1bd760788ad4b4eee28d
Last active January 15, 2016 16:45
jQuery Request to test api
var token = '';


$.ajax({
  method: 'post',
  url: "",
  dataType: 'jsonp',
  data: {
 
@hootlex
hootlex / dummy1.json
Created May 27, 2016 23:03
vue-paginator dummy jsons
{
"nested" : {
"current_page": 1,
"last_page": 3,
"next_page_url": "/responses/dummy2.json",
"prev_page_url": null,
"data": [
{
"id": 1,
"plot": "Anakin, you’re breaking my heart! And you’re going down a path I cannot follow!",
@hootlex
hootlex / animals1.json
Last active May 31, 2016 16:22
animals
{
"current_page": 1,
"last_page": 3,
"next_page_url": "/animals2.json",
"prev_page_url": null,
"data": [
{
"id": 1,
"name": "Crocodile"
},
@hootlex
hootlex / 0_reuse_code.js
Created June 14, 2016 21:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@hootlex
hootlex / pagination object API example.md
Created June 15, 2016 16:41
pagination object API example
    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $posts = Post::paginate(20);
@hootlex
hootlex / Common-Currency.json
Created August 5, 2016 02:41 — forked from ksafranski/Common-Currency.json
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@hootlex
hootlex / Component.vue
Created December 8, 2016 00:47 — forked from nickbasile/Component.vue
How to use a namespaced action in a Vue.js component
<template>
<div>
<button @click="increment">Increment</button>
</div>
</template>
<script>
import { mapActions } from 'vuex'
export default{
methods: {