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 / 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"
},

How to make Frappe

  1. Add 1-3 teaspoons of coffee and the desired amount of sugar in a high glass. Then cover the mix with water.

  1. Use tha shaker to make foam until it looks nice.

@hootlex
hootlex / export-slack-email-invites.md
Last active November 22, 2017 14:44
How to export all email invites from Slack