Skip to content

Instantly share code, notes, and snippets.

View KevinGimbel's full-sized avatar
🤳
GitHub Stories when?

Kevin Gimbel KevinGimbel

🤳
GitHub Stories when?
View GitHub Profile
@davidalexander
davidalexander / gist:1086455
Last active September 7, 2023 07:42
Magento Snippets

Magento Snippets

Download extension manually using pear/mage

Pear for 1.4, mage for 1.5. File downloaded into /downloader/.cache/community/

./pear download magento-community/Shipping_Agent
./mage download community Shipping_Agent

Clear cache/reindex

@noniq
noniq / concat.rb
Created February 5, 2012 17:32
Script for building a single giant compass-all.scss file.
# Usage:
# ruby concat.rb /path-to-compass-gem/frameworks/compass/stylesheets/_compass.scss > compass-all.scss
@seen = []
def concat(file)
File.foreach(file) do |line|
if line =~ /^\s?@import "(.+?)";/
import = $1
unless @seen.include?(import)
@arosenhagen
arosenhagen / magento-code-snippets.md
Last active April 8, 2024 09:21
[magento] - code snippets

Magento Code Snippets

Download extension manually using mage

./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name
@gistwebdev
gistwebdev / vhost
Last active February 3, 2023 05:19
Script to create apache2 virtual hosts
#!/bin/bash
#
# Display usage info
vhost-usage() {
cat <<"USAGE"
Usage: vhost [OPTIONS] <name>
-h|--help this screen
-pub to create the webhost root in ~/www/name/public/
-url to specify a local address, default is http://name.local
@pheraph
pheraph / backup-uberspace.sh
Last active January 24, 2017 19:21
Eine lokale Sicherung eines oder aller uberspace(s) erstellen
#!/bin/sh
#
# Erstellt eine lokale Sicherung von /home/username, /var/www/virtual/username und der Datenbanken des Benutzers
#
# Voraussetzungen:
# Auf dem lokalen Computer sind die uberspaces in ~/.ssh/config wie folgt konfiguriert:
# Host uberspacename
# HostName sternenkonstellation.uberspace.de
# User uberspacename
#
@devster
devster / gist:7710264
Last active December 29, 2015 18:19
Elegant way to create an API URL
<?php
/**
* Elegant way to create an API URL
*
* Usage:
* $this->getResourceUrl('/product/%s/id-%d', 'edit', 13);
* // will produce http://domain.com/product/edit/id-13
*
* // A resource can be an array to embed this method in an other method
@dervondenbergen
dervondenbergen / README.md
Last active August 29, 2015 14:01
WILF search

We Love Icon Fonts search

The search on We Love Icon Fonts is a long requested issue.

To use the search, just drag'n'drop the js file (minfied or unminified) in the bookmarks bar.

You can watch an installation video here: https://vimeo.com/94447449.

@lluchs
lluchs / nginx-uberspace.md
Last active January 3, 2020 18:14
nginx auf dem Uberspace

nginx auf dem Uberspace

Installation

Lade die neueste "mainline"-Version (hier 1.7.9) von http://nginx.org/en/download.html herunter und entpacke sie:

$ wget http://nginx.org/download/nginx-1.7.9.tar.gz 
$ tar xf nginx-1.7.9.tar.gz
@ericelliott
ericelliott / essential-javascript-links.md
Last active May 17, 2024 03:38
Essential JavaScript Links