Skip to content

Instantly share code, notes, and snippets.

/**
* Gulp Packages
* https://github.com/cferdinandi/gulp-boilerplate/blob/master/gulpfile.js#L94
*/
// General
var gulp = require('gulp');
var fs = require('fs');
var del = require('del');
var lazypipe = require('lazypipe');
@ilunie
ilunie / BlogController.php
Created October 2, 2015 11:21 — forked from tobysteward/BlogController.php
Laravel AJAX Pagination with JQuery
<?php
class BlogController extends Controller
{
/**
* Posts
*
* @return void
*/
public function showPosts()
@ilunie
ilunie / .htaccess
Created December 11, 2015 03:45
CI: Simple .htaccess using mod_rewrite for CodeIgniter
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
@ilunie
ilunie / csv_to_array.php
Created January 29, 2016 04:29 — forked from jaywilliams/csv_to_array.php
Convert a comma separated file into an associated array.
<?php
/**
* Convert a comma separated file into an associated array.
* The first row should contain the array keys.
*
* Example:
*
* @param string $filename Path to the CSV file
* @param string $delimiter The separator used in the file
* @return array
@ilunie
ilunie / multiple_ssh_setting.md
Created August 17, 2016 02:40 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@ilunie
ilunie / site-maintance.html
Last active November 12, 2022 13:27 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<head>
<title>Site Maintenance</title>
<meta charset="UTF-8">
<meta name="robots" content="noindex, nofollow">
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
print("hello world")
@ilunie
ilunie / README.md
Created October 17, 2017 06:18 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@ilunie
ilunie / gist:57f41b203a1c1348aeb52f9c0f634be7
Created February 18, 2018 10:05 — forked from prime31/gist:5675017
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array
@ilunie
ilunie / ECK-Paragraphs-Blocks-and-Custom-Entities.md
Created September 27, 2018 05:51 — forked from nadavoid/ECK-Paragraphs-Blocks-and-Custom-Entities.md
ECK, Paragraphs, Blocks, and Custom Entities in Drupal 8

ECK, Paragraphs, Blocks, and Custom Entities

ECK

  • best suited for custom relational entities
  • each ECK entity stands on its own
  • does not support translation (yet)
  • Use Inline Entity Form and Inline Entity Form Preview for best authoring experience.

Paragraphs

  • best suited for enhancing content entry on individual entities