Skip to content

Instantly share code, notes, and snippets.

View lordhasyim's full-sized avatar
🏠
Working from home

ahmadhasyim lordhasyim

🏠
Working from home
View GitHub Profile
@lordhasyim
lordhasyim / ci_pagination_bootstrap.php
Created May 4, 2017 06:56
Codeigniter Pagination with Bootstrap, save this on config/pagination.php
<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Pagination Config
*
* Just applying codeigniter's standard pagination config with twitter
* bootstrap stylings
*
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
@lordhasyim
lordhasyim / hosts
Created May 8, 2017 15:09 — forked from mul14/00_etc-hosts.md
/etc/hosts for Vimeo and Reddit
# ---------------------------------------------------
# Vimeo
# ---------------------------------------------------
104.156.85.217 vimeo.com
23.214.58.223 secure-c.vimeocdn.com
74.113.233.128 developer.vimeo.com
23.235.43.143 i.vimeocdn.com
23.235.43.143 f.vimeocdn.com
80.239.137.98 a.vimeocdn.com
@lordhasyim
lordhasyim / MY_form_helper.php
Created May 19, 2017 16:53 — forked from csasbach/MY_form_helper.php
This is a custom helper file I created for use in CodeIgniter. It generates form elements with semantic and accessible HTML and CSS with the hooks needed to utilize error reporting in CodeIgniter and in jQuery.
<?php
/**
* SEMANTIC AND ACCESSIBLE FORMS HELPER FUNCTIONS
*
* Some more accesible and semantic form helpers. I utilize the default form helpers as
* much as possible to preserve the original syntax.
*
*/
/* FORM OPEN */
@lordhasyim
lordhasyim / Boot-repair
Created May 21, 2017 02:11
fixing dual os windows and linux usingBoot-Repair
sudo apt-add-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair
boot-repair
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
@lordhasyim
lordhasyim / Install_Phpstorm.sh
Created June 5, 2017 02:15 — forked from theodorosploumis/Install_Phpstorm.sh
Update phpstorm on Ubuntu linux.
#!/bin/bash -e
# IMPORTANT. My phpstom installation exists on /opt/phpstorm.
# IMPORTANT. Run with sudo!
# Early Access program: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program
echo -n "Please enter the PhpStorm download url (eg http://download.jetbrains.com/webide/PhpStorm-EAP-141.690.tar.gz): "
read url
# Download file from url
echo "Downloading PhpStorm to ~/Desktop"
@lordhasyim
lordhasyim / steps_to_translate_strings.md
Created July 7, 2017 10:47 — forked from xenon92/steps_to_translate_strings.md
Steps to Translate Resurrection Tools
@lordhasyim
lordhasyim / guidelines.md
Created July 7, 2017 10:48 — forked from xenon92/guidelines.md
Guidelines for Android Source Compilation

Guidelines for Android Source Compilation

In this post, I'll share what "should" be done and what "shouldn't" be done and the reason of this post.

If you want your ROM to succeed, you need to think about 2 types of people.

@lordhasyim
lordhasyim / README.md
Created July 7, 2017 10:48 — forked from xenon92/README.md
Patches to Paranoid Android for Samsung Galaxy Grand Duos GT-i9082

Paranoid Android

Patches (android Kitkat)

####Samsung Galaxy Grand Duos GT-i9082

  • The path of the patch is mentioned in the file name of the patch
  • Patch to "vendor/pa" is redundant now as this commit as been merged in the Paranoid Android Legacy repository upstream
@lordhasyim
lordhasyim / markup
Created July 13, 2017 11:05 — forked from petehouston/markup
[Bootstrap] Text overlay center inside the image
<div class="row" id="box-search">
<div class="thumbnail text-center">
<img src="img/cafe.jpg" alt="" class="img-responsive">
<div class="caption">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab, quisquam?</p>
</div>
</div>
</div>
@lordhasyim
lordhasyim / .gitignore
Last active September 12, 2017 02:41
.gitignore for general
# #######################################################################
# Gitignore
# Add Some Common OS and Code Editor
# #######################################################################
#
# =================================
# Gitignore For Mac
# =================================
#