Robert Annett

  • Favourites
Illustration of a bird flying.
  • Git Completion with Terminal/iTerm output theme

    Install Git Completion: Save the git-completion.bash file in your home directory: https://github.com/git/git/blob/master/contrib/completion/git-completion.bash Installation Open your .bash_profile nano ~/.bash_profile Paste the following at the top of the file, make sure not to overwrite any other settings you may have put in the file. ###### GIT COMPLETION – START ###### parse_git_branch() { git branch 2> /dev/null | […]

    January 4, 2020
  • Regex for Alphanumeric Only – No Spaces, dashes or Underlines

    Regex for A-Z, 0-9 and limited to 0-32 characters Pattern: /^[a-zA-Z0-9]{0,32}$/ Usage if (preg_match(‘/^[a-zA-Z0-9]{0,32}$/’, $mystring)) { return true; }  

    August 23, 2019
  • Redirect all Traffic to HTTPS

    In the .htaccess file add: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]  

    July 5, 2019
  • Import large database files to MySQL using Terminal with MAMP

    /Applications/MAMP/Library/bin/mysql –host=localhost -uroot -proot DBNAME < /Users/robertannett/Downloads/DBFILENAME.sql  

    December 19, 2018
  • PayPal WooCommerce return URL

    Under Website Selling Preferences turn on Auto Return and the url for WooCommerce should be: https://yourdomain.com/checkout/order-received/?utm_nooverride=1  

    November 21, 2018
  • Replace the Blank Line in Contact form 7 Select List

    function my_wpcf7_dropdown_form($html) { $text = ‘Your Replacement text here’; $html = str_replace(‘—‘, ” . $text . ”, $html); return $html; } add_filter(‘wpcf7_form_elements’, ‘my_wpcf7_dropdown_form’);  

    July 16, 2018
  • Interesting Studios & Agencies

    A list of interesting studios, agencies & creatives. Ireland McCadden Hurson Paperjam Design Sort Design AV Browne Group Harty Design We Are Duo Slater Design Workgroup Aad Walker Communication Principle DesignWorks In The Company of Huskies Red Dog CI Studio Bloom Pale Blue Dot Part Two Brand Consultancies Frost Design SuperUnion Pentagram Wolff Olins venturethree […]

    June 15, 2018
  • Creative Resources

    An evolving directory of visual reference. I’d recommend putting all the links into an rss reader like feedly. Very easy to flick through quickly. General Creativity Creative Review It’s Nice That Design Week FormFiftyFive Designspiration PRINT.PM InspoFinds TheFoxIsBlack Grain Edit Design Taxi Fast Company Wired The Strange Attractor Branding Brand New BPAndO The Brand Identity […]

    June 5, 2018
  • Typography Resources

    Typography Resources & Tools: Type Detail –  A collection of lots of  different typographic resources Buttericks Practical Typography – Guide to typography Typography Supply – An inventory of Typographic Tools Good Type Foundries Letters From Sweden Swiss Typefaces Colophon Klim  Radim Pesko Commercial Type A2-Type F37 Foundry Dalton Maag Lineto The Designers Foundry  

    March 5, 2018
  • Custom WordPress Excerpt

    <?php echo wp_trim_words( get_the_excerpt(), 50, ‘…’ ); ?>

    February 16, 2018
1 2 3 4
Next Page→

Robert Annett

Proudly powered by WordPress