Skip to content

Instantly share code, notes, and snippets.

Tim Murtaugh murtaugh

Block or report user

Report or block murtaugh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@compermisos
compermisos / strong-passwords.php
Last active Sep 3, 2019 — forked from tylerhall/strong-passwords.php
A user friendly, strong password generator PHP function.
View strong-passwords.php
#!/usr/bin/php
<?PHP
// Generates a strong password of N length containing at least one lower case letter,
// one uppercase letter, one digit, and one special character. The remaining characters
// in the password are chosen at random from those four sets.
//
// The available characters in each set are user friendly - there are no ambiguous
// characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option,
// makes it much easier for users to manually type or speak their passwords.
//
@jed
jed / uniqlo_needs_u.md
Last active Aug 29, 2015
UNIQLO NEEDS U!
View uniqlo_needs_u.md

UNIQLO logo

tl;dr: The [UNIQLO USA][] e-commerce team is looking for a design-oriented developer skilled in the arts of modern markup and style, but also comfortable with some PHP and JavaScript.


In this position, you will:

  • Create end-to-end responsive mockups of UNIQLO landing pages for upcoming product lines.
  • Work in-house with the visuals team to design experiences and assets that scale well across device sizes.
@pauloelias
pauloelias / ExpressionEngine "Edit This" Link
Last active Dec 28, 2017
ExpressionEngine "Edit Entry" link. Place this in your channel entries output to provide a direct link to edit the entry in the control panel.
View ExpressionEngine "Edit This" Link
@litzinger
litzinger / gist:3360372
Created Aug 15, 2012
server name as global variable
View gist:3360372
/*
Add this to your config.php file
*/
$default_global_vars = array(
'global:domain_name' => $_SERVER['SERVER_NAME']
);
// Make this global, then add our default_global_vars to the config variables here
global $assign_to_config;
@joshellington
joshellington / sftp-ubuntu.md
Created Mar 28, 2012
Basic tutorial for creating a SFTP-only user on Ubuntu 9.04 and greater
View sftp-ubuntu.md

Adding SFTP-only user to Ubuntu Server

To add a SFTP-only user, you'll need to make sure your SSH config settings are correct, add a new user/group and set permissions for your new user. For step-by-step directions, see below. Omit sudo if you're logged in as root.

Directions

  1. Edit /etc/ssh/sshd_config and make sure to add the following at the end of the file:

     Match group filetransfer
     	ChrootDirectory %h
    
@josue
josue / MAMP-DOCK-INVISIBLE.sh
Created Mar 27, 2012
Hide or show the MAMP Pro dock icon.
View MAMP-DOCK-INVISIBLE.sh
#!/bin/bash
# Place this script in dir: /usr/bin
# Change permissions: sudo chmod +x /usr/bin/MAMP-DOCK-INVISIBLE
#
# Ensure the MAMP 'Info.plist' file has the following entry:
# <key>LSUIElement</key>
# <string dock-visible="1">NO</string>
#
# Usage:
@jlong
jlong / jquery.autogrow.js
Last active Jun 28, 2016
Autogrow Textareas in jQuery
View jquery.autogrow.js
/*
* jquery.autogrow.js
*
* A plugin written for UserVoice that makes it easy to create textareas
* that automatically resize to fit their contents.
*
* Based on Scott Moonen's original code for Prototype.js:
*
* <http://scottmoonen.com/2008/07/08/unobtrusive-javascript-expandable-textareas/>
*
@paulirish
paulirish / data-markdown.user.js
Last active Sep 8, 2019
*[data-markdown] - use markdown, sometimes, in your HTML
View data-markdown.user.js
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.
@ocean90
ocean90 / box-shadow.html
Last active Oct 8, 2019
CSS3 Box Shadow, only top/right/bottom/left and all
View box-shadow.html
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;
@tylerhall
tylerhall / strong-passwords.php
Created Aug 12, 2010
A user friendly, strong password generator PHP function.
View strong-passwords.php
<?PHP
// Generates a strong password of N length containing at least one lower case letter,
// one uppercase letter, one digit, and one special character. The remaining characters
// in the password are chosen at random from those four sets.
//
// The available characters in each set are user friendly - there are no ambiguous
// characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option,
// makes it much easier for users to manually type or speak their passwords.
//
// Note: the $add_dashes option will increase the length of the password by
You can’t perform that action at this time.