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
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="red_50">#fde0dc</color>
<color name="red_100">#f9bdbb</color>
<color name="red_200">#f69988</color>
<color name="red_300">#f36c60</color>
<color name="red_400">#e84e40</color>
<color name="red_500">#e51c23</color>
<color name="red_600">#dd191d</color>
<color name="red_700">#d01716</color>
@lordhasyim
lordhasyim / simple-git-flow.sh
Created November 13, 2016 12:53 — forked from bloudermilk/simple-git-flow.sh
A simple git workflow
#
# Starting
#
# Start a new feature branch
git checkout -b my_feature
# Make changes
# Add/Commit
@lordhasyim
lordhasyim / WindowsCommandPromptAsciiArt.txt
Created December 7, 2016 07:30 — forked from mpaxson/WindowsCommandPromptAsciiArt.txt
Windows Command Prompt Ascii Art
:: add this to the cmder/config/user-profile.cmd
::meme intro
:: this is to change starting directory to another drive
::@set USERPROFILE="F:\KettleOfHacks";
::@F:
:: @cd F:\KettleOfHacks\Work
@cls
@echo off
@lordhasyim
lordhasyim / CentOS_7.2_New_WebServer_Configuration.txt
Created January 28, 2017 18:45 — forked from alkavan/CentOS_7.x_(PHP_7.3_Postgres_10.x).md
CentOS 7.2 New Web Server Configuration (DigitalOcean) +EPEL +IUS +PHP +MongoDB +Sentry +PostgreSQL +MariaDB
# [General/Initial Section]
# Update system
yum update
# Set your timezone
timedatectl set-timezone UTC
# Check date is set correct
date
@lordhasyim
lordhasyim / multi-select-dropdown
Created February 8, 2017 16:39 — forked from 131digital/multi-select-dropdown
Codeigniter - Populate multi select dropdown from database
<?php
// put in controller
$vendor_categories = $this->vendor_category_model->get_many_by('vendorid',$id);
// get the category the vendor belongs to
$vendorcat = array();
foreach($vendor_categories as $vendor_category => $value){
$vendorcat[$value->categoryid] = $value->categoryid;
}
//data array for view
@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 / 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.