This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 1 ] | |
NM=`uname -a && date` | |
NAME=`echo $NM | md5sum | cut -f1 -d" "` | |
then | |
ppa_name=`echo "$1" | cut -d":" -f2 -s` | |
if [ -z "$ppa_name" ] | |
then | |
echo "PPA name not found" | |
echo "Utility to add PPA repositories in your debian machine" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Starting | |
# | |
# Start a new feature branch | |
git checkout -b my_feature | |
# Make changes | |
# Add/Commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File System | |
ls — list items in current directory | |
ls -l — list items in current directory and show in long format to see perimissions, size, and modification date | |
ls -a — list all items in current directory, including hidden files | |
ls -F — list all items in current directory and show directories with a slash and executables with a star |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [General/Initial Section] | |
# Update system | |
yum update | |
# Set your timezone | |
timedatectl set-timezone UTC | |
# Check date is set correct | |
date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store | |
application/cache/* | |
!application/cache/index.html | |
!application/cache/.htaccess | |
application/logs/* | |
!application/logs/index.html | |
!application/logs/.htaccess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* REST API Upload using native CI Upload class. | |
* @param userfile - multipart/form-data file | |
* @param submit - must be non-null value. | |
* @return upload data array || error string | |
*/ | |
function upload_post(){ | |
if( ! $this->post('submit')) { | |
$this->response(NULL, 400); | |
} |
OlderNewer