Skip to content

Instantly share code, notes, and snippets.

View luismaf's full-sized avatar
😎
Open to work

Luis Ma luismaf

😎
Open to work
View GitHub Profile
@Zodiac1978
Zodiac1978 / .htaccess
Last active December 8, 2024 11:42
Make your Website faster - a safe htaccess way
#
# Sources:
# http://stackoverflow.com/questions/7704624/how-can-i-use-gzip-compression-for-css-and-js-files-on-my-websites
# http://codex.wordpress.org/Output_Compression
# http://www.perun.net/2009/06/06/wordpress-websites-beschleuinigen-4-ein-zwischenergebnis/#comment-61086
# http://www.smashingmagazine.com/smashing-book-1/performance-optimization-for-websites-part-2-of-2/
# http://gtmetrix.com/configure-entity-tags-etags.html
# http://de.slideshare.net/walterebert/die-htaccessrichtignutzenwchh2014
# http://de.slideshare.net/walterebert/mehr-performance-fr-wordpress
# https://andreashecht-blog.de/4183/
@jaywilliams
jaywilliams / sub_category_products.xml
Created December 19, 2013 19:27
A vQmod for OpenCart 1.5.6 to display products in sub-categories.
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id>Display products in sub-categories while browsing a parent category</id>
<version>1.0.0</version>
<vqmver>2.4.0</vqmver>
<author>Jay Williams - [email protected]</author>
<file name="catalog/controller/product/category.php">
<operation>
<search position="after"><![CDATA['filter_category_id' => $category_id,]]></search>
<add><![CDATA[ 'filter_sub_category' => true,]]></add>
@tomvdb
tomvdb / gist:8842542
Created February 6, 2014 11:37
STM32 Toolchain on Ubuntu Instructions
* Install GCC toolchain
tar xjvf gcc-arm-none-eabi-4_7-2013q1-20130313-linux.tar.bz2
sudo mv gcc-arm-none-eabi-4_7-2013q1-20130313-linux /opt/ARM
echo "PATH=$PATH:/opt/ARM/bin" >> ~/.bashrc
source ~/.bashrc
arm-none-eabi-gcc --version
* Build ST Link
@F1LT3R
F1LT3R / self-hosted-email-server.md
Last active June 20, 2023 03:27
Self-Hosted Email Server

#Self-Hosted Email Server

This guide shows you how to set up a self-hosted email server.

##The Stack

Stack Diagram

###At The Core

@WhyNotHugo
WhyNotHugo / PKGBUILD
Last active August 29, 2015 14:13
broadcom-wl-dkms for linux-3.18
# Maintainer: Frank Vanderham <twelve.eighty (at) gmail.>
# Contributor: Hugo Osvaldo Barrera <[email protected]>
pkgname=broadcom-wl-dkms
_pkgname=broadcom-wl
pkgver=6.30.223.248
pkgrel=5
pkgdesc="Broadcom 802.11 Linux STA wireless driver"
url='http://www.broadcom.com/support/802.11/linux_sta.php'
arch=('i686' 'x86_64')
license=('custom')
@Ariki
Ariki / start_libopencm3.sh
Created November 12, 2017 20:26
Start a new libopencm3 based project for Blue Pill STM32F103C8 board
#!/usr/bin/sh
# Start a new libopencm3 based project for Blue Pill STM32F103C8 board.
# Takes project name as a parameter.
EXAMPLES_MASTER=\
"https://raw.githubusercontent.com/libopencm3/libopencm3-examples/master"
mkdir "$1"
cd "$1"
@stek29
stek29 / idevicerestore.sh
Created January 12, 2019 12:22
idevicerestore on linux (Debian-based)
sudo apt update
# sudo apt upgrade
sudo apt install -y libcurl4-openssl-dev libplist-dev libzip-dev openssl libssl-dev libusb-1.0-0-dev libreadline-dev build-essential git make automake libtool pkg-config
git clone https://github.com/libimobiledevice/libirecovery
git clone https://github.com/libimobiledevice/idevicerestore
git clone https://github.com/libimobiledevice/usbmuxd
git clone https://github.com/libimobiledevice/libimobiledevice
git clone https://github.com/libimobiledevice/libusbmuxd
git clone https://github.com/libimobiledevice/libplist