Skip to content

Instantly share code, notes, and snippets.

View pepperstreet's full-sized avatar

pepperstreet pepperstreet

View GitHub Profile
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@schmidt1024
schmidt1024 / template-snippets.txt
Last active December 14, 2021 19:52
Template Snippets for Joomla!
# all php files :: disallow direct access of file
# between <?php and ?>
defined('_JEXEC') or die;
# index.php :: define variable with application
# between <?php and ?>
$app = JFactory::getApplication();
# index.php :: define variable with document
# between <?php and ?>
@statico
statico / gist:3172711
Created July 24, 2012 21:15
How to use a PS3 controller on Mac OS X 10.7 (Lion)

How to use a PS3 controller on Mac OS X 10.7 (Lion)

  1. Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.

  2. Reset PS3 controller by inserting paperclip into pinhole near L2 button.

  3. Connect PS3 controller to Mac with USB cable.

  4. Enable Bluetooth.

@schmidt1024
schmidt1024 / media-queries.css
Last active November 1, 2017 15:05
CSS Media Queries - Solo and Bootstrap way
/* Solo Queries
*********************************************/
/* Phones (portrait and landscape) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {}
/* Phones (landscape) */
@media only screen and (min-width: 321px) {}
/* Phones (portrait) */
@tagliala
tagliala / btn-group-radio.css
Last active October 11, 2017 09:00
Pure CSS3 Bootstrap Radio Buttons
.btn-group-radio input[type=radio] {
visibility: hidden;
position: absolute !important;
top: -9999px !important;
left: -9999px !important;
}
.btn-group-radio input[type=radio]:checked + .btn {
color: #333333;
background-color: #e6e6e6;
@2dpi
2dpi / gist:4130110
Created November 22, 2012 09:08
SEBLOD: Importer readme
SEBLOD Importer
========================================
- create/open CSV file (use first row for column titles to make editing easier)
- NB! make sure the following columns exist (id, title, catid)
-- id (joomla core auto increment if not specified)
-- title (if not specified timestamp will be used)
-- catid (set a default category else will be save as uncategorised)
-- OPTIONAL - ADD ANY OTHER ARTICLE COLUMNS
- match existing exclusive columns (i.e. LOCKED -TABLE: cck_store_form_your_content_type - storage [standard - article - field_name])
@2dpi
2dpi / gist:4175357
Created November 30, 2012 11:56
CSS: override inline-style
div[style] {
background: yellow !important;
}
@thomaspark
thomaspark / subnav.css
Last active June 6, 2023 10:19
Subnav for Bootstrap 2
section {
padding-top: 60px;
}
.subnav {
margin-bottom: 60px;
width: 100%;
height: 36px;
background-color: #eeeeee; /* Old browsers */
background-repeat: repeat-x; /* Repeat the gradient */
@brendandixon
brendandixon / twitter-bootstrap-btn-flat
Created January 27, 2013 20:20
Flat button styles for Twitter Bootstrap - conveniently borrowed from https://github.com/twitter/bootstrap/issues/1341
// For IE
.btn-inverse:active,
.btn-inverse.active {
background-color: #080808 \9;
}
// Add 'btn-flat' to your buttons
.btn-flat {
filter:progid:DXImageTransform.Microsoft.Gradient(enabled='false');
@gunjanpatel
gunjanpatel / joomla git.md
Last active August 27, 2021 14:03
work with joomla git using terminal

Clone your forked repo in local.

Using Terminal

  1. For the very first time if you didn't configured remote repository then do it using this command.

     git remote add upstream git@github.com:joomla/joomla-cms.git
    
  2. Fetch changes from remote repository.