most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
/* | |
Usage | |
----- | |
In your main scss file, add the following three lines. | |
$show-grid: true; | |
$container-id: container; | |
@import "grid"; | |
To hide the grid background and borders, change the first line to |
#!/bin/bash | |
# Follow the steps below to configure Quickstart as a continuous integration appliance, complete with Jenkins, | |
# Selenium Builder, Selenium Server, PHPUnit, and Selenium Zoetrope. The script also configures and runs an | |
# example Jenkins test job for Quickstart's example6.dev site, including Simpletest module testing and | |
# Coder module checks. | |
# | |
# 1. Download Quickstart and follow the installation instructions: | |
# http://drupal.org/project/quickstart | |
# 2. Open a Terminal window (Applications > Accessories > Terminal) and run the following command: |
# This script facilitates obtaining the latest DB data from the production | |
# Drupal 5 site. | |
# The script gets an ordered dump of the D5 database, and commits it to the | |
# [email protected]:mysite_d5.git repository master branch. | |
# We make use of the rebuild.config file, so please make sure that your | |
# settings are correct there! | |
# We also assume that your drush aliases are setup correctly for | |
# @mysite.dev and @mysite_d5.prod. Please check mysite.aliases.drushrc.example, | |
# make sure your @mysite.dev alias is set up correctly, rename the file | |
# to mysite.aliases.drushrc.php and move it into your ~/.drush directory. |
$('#element').on('keypress', function(e) { | |
if(e.which == 13) { | |
// action(); | |
e.preventDefault(); | |
} | |
}); |
<?php | |
#!/usr/bin/env drush | |
// Example rebuild script | |
// local alias | |
$self_record = drush_sitealias_get_record('@self'); | |
$self_name = '@' . $self_record['#name']; |
; dpg ::: http://drupal.org/user/1059226 | |
; Example Short Profile -- hides database configuration page. | |
; | |
; This bears mentioning more than once. See http://drupal.org/node/1153646 | |
name = Short Profile | |
description = A short profile, it removes DB settings page. | |
core = 7.x | |
dependencies[] = block |
$(document).ready(function() { | |
$('input').live('keydown', function(e) { | |
var key = e.charCode ? e.charCode : e.keyCode ? e.keyCode : 0; | |
if(key == 13) { | |
var inputs = $(this).parents("form").eq(0).find(":input:text,textarea:visible"); | |
var idx = inputs.index(this); | |
if (idx == inputs.length - 1) { | |
inputs[0].select() |
// left/right key press | |
$(document).keydown(function(e) { | |
if (e.which == 37) { // left key | |
$('#slideshow').cycle('prev'); | |
} else if (e.which == 39) { // right key | |
$('#slideshow').cycle('next'); | |
} | |
}); |
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |