Skip to content

Instantly share code, notes, and snippets.

View kelixlabs's full-sized avatar

Wahyu Kecambah Linux kelixlabs

View GitHub Profile
/**
* author Remy Sharp
* url http://remysharp.com/tag/marquee
*/
require(['jquery'], function ($) {
$.fn.marquee = function (klass) {
var newMarquee = [],
last = this.length;
/**
* author Remy Sharp
* url http://remysharp.com/tag/marquee
*/
(function ($) {
$.fn.marquee = function (klass) {
var newMarquee = [],
last = this.length;
@kelixlabs
kelixlabs / vhost.conf
Last active August 29, 2015 13:58
Just my virtual host configuration for apache2.6
<VirtualHost *>
ServerAdmin webmaster@localhost
SetEnv APPLICATION_ENV "development"
DocumentRoot /sata1/part1/website/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /sata1/part1/website/www/>
@kelixlabs
kelixlabs / .htaccess
Last active August 29, 2015 14:00
my htaccess that work with laravel4
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteBase /
# Redirect Trailing Slashes...
<?php
/**
* An helper file for Laravel 4, to provide autocomplete information to your IDE
* Generated for Laravel 4.2.16 on 2014-12-24.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
<?php
/**
* An helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.0.16 on 2015-03-16.
*
* @author Barry vd. Heuvel <[email protected]>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
@kelixlabs
kelixlabs / index.html
Created April 19, 2015 00:08
Default Apache2 index.html
<html>
<head>
<title>Apache default page</title>
</head>
<body>
<h1>It works!</h1>
<p>This is default page.</p>
</body>
</html>
@kelixlabs
kelixlabs / Multiple PHP versions on Archlinux.md
Created September 29, 2015 06:07 — forked from petarov/Multiple PHP versions on Archlinux.md
Multiple PHP versions on Archlinux

This describes the steps required to configure multiple PHP versions on your development system, if you have issue using the AUR package. Normally one may install the AUR package on a custom path, .e.g, /usr/local/php, but if you are like me having some issues with that you might want to try a custom compile.

Pay attention to step 6) as this is where any required extensions are enabled. For this setup we generally need pdo and mysql extensions.


  1. Download PHP version 5.3.13 (or any version that you are interested in) from http://php.net/releases/

  2. Download the php53 AUR package from https://aur.archlinux.org/packages/php53/

@kelixlabs
kelixlabs / database.php
Created November 13, 2015 02:17
Laravel 4.2 PDO persistent connection
<?php
return array(
/* other settings removed for brevity */
'connections' => array(
'mysql' => array(
'driver' => 'mysql',
@kelixlabs
kelixlabs / fixplymouth
Last active March 15, 2022 20:30
SCRIPT TO FIX THE UBUNTU PLYMOUTH FOR PROPRIETARY NVIDIA AND ATI GRAPHICS DRIVERS
#!/bin/bash
# ----------------------------------
# Author: D0rkye
# Homepage: http://d0rkye.zsenialis.com/
# Most code probably by kyleabaker: http://kyleabaker.com/2010/07/11/how-to-fix-your-ubuntu-boot-screen/
# Script via http://www.webupd8.org/2010/10/script-to-fix-ubuntu-plymouth-for.html
# ----------------------------------
sudo apt install v86d hwinfo -y
sudo hwinfo --framebuffer
echo "---------------------------------------------------------------"